Changeset 6727

Show
Ignore:
Timestamp:
02/05/08 07:45:40 (7 months ago)
Author:
ryan
Message:

Add beginnings of bulk tag delete. see #5684

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-tags.php

    r6726 r6727  
    6868 
    6969wp_enqueue_script( 'admin-tags' ); 
     70wp_enqueue_script('admin-forms'); 
     71 
    7072require_once ('admin-header.php'); 
    7173 
     
    8284 
    8385<div class="wrap"> 
     86 
     87<form id="tags-filter" action="" method="get"> 
    8488<?php if ( current_user_can('manage_categories') ) : ?> 
    8589    <h2><?php printf(__('Tags (<a href="%s">add new</a>)'), '#addtag') ?> </h2> 
     
    8791    <h2><?php _e('Tags') ?> </h2> 
    8892<?php endif; ?> 
     93    <p id="tag-search"> 
     94        <input type="text" id="tag-search-input" name="s" value="<?php echo attribute_escape( stripslashes( $_GET[ 's' ]) ); ?>" /> 
     95        <input type="submit" value="<?php _e( 'Search Tags' ); ?>" /> 
     96    </p> 
     97</form> 
    8998 
    90 <form name="searchform" id="searchform" action="" method="get"> 
    91     <input type="text" name="s" id="s" value="<?php echo attribute_escape( stripslashes( $_GET[ 's' ]) ); ?>" size="17" /> 
    92     <input type="submit" id="post-query-submit" value="<?php _e('Search Tags'); ?>" class="button" /> 
    93 </form> 
    9499<br style="clear:both;" /> 
    95100 
    96  
     101<form name="deletetags" id="deletetags" action="" method="post"> 
     102<?php wp_nonce_field('bulk-tags'); ?> 
    97103<table class="widefat"> 
    98104    <thead> 
    99105    <tr> 
     106        <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('deletetags'));" /></th> 
    100107        <th scope="col" style="text-align: center"><?php _e('ID') ?></th> 
    101108        <th scope="col"><?php _e('Name') ?></th> 
     
    116123    </tbody> 
    117124</table> 
     125</form> 
    118126<?php 
    119127 
  • trunk/wp-admin/includes/template.php

    r6726 r6727  
    243243        $out = ''; 
    244244        $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>'; 
     245        $out .= '<td style="text-align: center"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></td>'; 
    245246        $out .= '<th scope="row">' . $tag->term_id . '</th>'; 
    246247 
  • trunk/wp-admin/wp-admin.css

    r6713 r6727  
    13901390} 
    13911391 
     1392/* pasitioning etc. */ 
     1393form#tags-filter { 
     1394        position: relative; 
     1395} 
     1396 
     1397p#tag-search { 
     1398        position: absolute; 
     1399        right: 0; 
     1400        top: 0; 
     1401        margin: 0; 
     1402} 
     1403 
     1404 
    13921405/* Global classes */ 
    13931406.wp-hidden-children .wp-hidden-child { display: none; }