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="inside-submitbox">
<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
<p>
<select name='comment_status' id='comment_status'>
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
</select>
<p><strong><?php _e('Approval Status') ?></strong></p>
<p id='comment-status-radio'>
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label>
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label>
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
</p>
<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="inside-submitbox">
<div class="insidebox"><strong><label for='comment_status'><?php _e('This comment is') ?></label></strong><br />
<select name='comment_status' id='comment_status'>
<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
</select>
<div class="insidebox">
<div id='comment-status-radio'>
<p><strong><?php _e('This comment is') ?></strong></p>
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label><br />
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label><br />
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
</div>
</div>
<div class="insidebox" id="deletebutton">

View File

@ -292,7 +292,7 @@ textarea.all-options, input.all-options {
padding: 0;
}
#emaildiv input, #uridiv input {
#emaildiv input, #uridiv input, .stuffbox #name {
width: 94%;
}
@ -1138,6 +1138,19 @@ table.form-table td .updated {
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 {
margin-left: 10px;
font-size: 12px;