Comment status on edit comment page: change drop-down to radio buttons
git-svn-id: https://develop.svn.wordpress.org/trunk@9099 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8dd896218b
commit
b82dc680c5
@ -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">
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user