WordPress.org

Make WordPress Core

Changeset 9099


Ignore:
Timestamp:
10/08/2008 05:24:25 AM (13 years ago)
Author:
azaozz
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r9032 r9099  
    3131<div class="inside-submitbox">
    3232
    33 <p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
    34 <p>
    35 <select name='comment_status' id='comment_status'>
    36 <option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
    37 <option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
    38 <option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
    39 </select>
     33<p><strong><?php _e('Approval Status') ?></strong></p>
     34<p id='comment-status-radio'>
     35<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label>
     36<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label>
     37<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
    4038</p>
    4139
     
    7371<div class="inside-submitbox">
    7472
    75 <div class="insidebox"><strong><label for='comment_status'><?php _e('This comment is') ?></label></strong><br />
    76 <select name='comment_status' id='comment_status'>
    77 <option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
    78 <option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Awaiting Moderation') ?></option>
    79 <option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
    80 </select>
     73<div class="insidebox">
     74<div id='comment-status-radio'>
     75<p><strong><?php _e('This comment is') ?></strong></p>
     76<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label><br />
     77<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label><br />
     78<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>
     79</div>
    8180</div>
    8281
  • trunk/wp-admin/wp-admin.css

    r9098 r9099  
    293293}
    294294
    295 #emaildiv input, #uridiv input {
     295#emaildiv input, #uridiv input, .stuffbox #name {
    296296    width: 94%;
    297297}
     
    11371137    padding: 0;
    11381138    margin: 0;
     1139}
     1140
     1141#comment-status-radio p {
     1142    margin: 3px 0 5px;
     1143}
     1144
     1145#comment-status-radio input {
     1146    margin: 2px 3px 5px 0;
     1147    vertical-align: middle;
     1148}
     1149
     1150#comment-status-radio label {
     1151    padding: 5px 0;
    11391152}
    11401153
Note: See TracChangeset for help on using the changeset viewer.