Comment status on edit comment page: change drop-down to radio buttons

git-svn-id: http://svn.automattic.com/wordpress/trunk@9099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-10-08 05:24:25 +00:00
parent 6288b2b867
commit aac340be40
2 changed files with 26 additions and 14 deletions

View File

@ -30,13 +30,11 @@ function comment_submit_meta_box($comment) { // not used, but keeping for a bit
<div class="submitbox" id="submitcomment"> <div class="submitbox" id="submitcomment">
<div class="inside-submitbox"> <div class="inside-submitbox">
<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p> <p><strong><?php _e('Approval Status') ?></strong></p>
<p> <p id='comment-status-radio'>
<select name='comment_status' id='comment_status'> <label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label>
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option> <label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label>
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option> <label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
</select>
</p> </p>
<div class="insidebox" id="deletebutton"> <div class="insidebox" id="deletebutton">
@ -72,12 +70,13 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date);
<div class="submitbox" id="submitcomment"> <div class="submitbox" id="submitcomment">
<div class="inside-submitbox"> <div class="inside-submitbox">
<div class="insidebox"><strong><label for='comment_status'><?php _e('This comment is') ?></label></strong><br /> <div class="insidebox">
<select name='comment_status' id='comment_status'> <div id='comment-status-radio'>
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option> <p><strong><?php _e('This comment is') ?></strong></p>
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option> <label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label><br />
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option> <label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label><br />
</select> <label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
</div>
</div> </div>
<div class="insidebox" id="deletebutton"> <div class="insidebox" id="deletebutton">

View File

@ -292,7 +292,7 @@ textarea.all-options, input.all-options {
padding: 0; padding: 0;
} }
#emaildiv input, #uridiv input { #emaildiv input, #uridiv input, .stuffbox #name {
width: 94%; width: 94%;
} }
@ -1138,6 +1138,19 @@ table.form-table td .updated {
margin: 0; margin: 0;
} }
#comment-status-radio p {
margin: 3px 0 5px;
}
#comment-status-radio input {
margin: 2px 3px 5px 0;
vertical-align: middle;
}
#comment-status-radio label {
padding: 5px 0;
}
#tagchecklist { #tagchecklist {
margin-left: 10px; margin-left: 10px;
font-size: 12px; font-size: 12px;