Ignore:
Timestamp:
Sep 5, 2012, 10:38:30 PM (12 years ago)
Author:
rvelices
Message:

feature 2737: improve tag administration screen
show for every tag

  • the number of photos
  • link to public index page
  • link to batch manager edit

add an event for extended description multi language strings (used for autocompletion and shown in the tag admin screen) instead of hard coded in the core [lang=..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/tags.tpl

    r16526 r17765  
    4141      <tr>
    4242        <td>{$tag.NAME}</td>
    43         <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}" size="30"></td>
     43        <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}" size="50"></td>
    4444      </tr>
    4545      {/foreach}
     
    6565      <tr>
    6666        <td>{$tag.NAME}</td>
    67         <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}" size="30"></td>
     67        <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}" size="50"></td>
    6868      </tr>
    6969      {/foreach}
     
    9696    <label>
    9797      {'New tag'|@translate}
    98       <input type="text" name="add_tag" size="30">
     98      <input type="text" name="add_tag" size="50">
    9999    </label>
    100100   
     
    104104  <fieldset>
    105105    <legend>{'Tag selection'|@translate}</legend>
    106    
    107     {$TAG_SELECTION}
     106{html_style}
     107.showInfo{ldelim}position:static; display:inline-block; text-indent:6px}
     108{/html_style}
     109{footer_script}{literal}
     110jQuery('.showInfo').tipTip({
     111    'delay' : 0,
     112    'fadeIn' : 200,
     113    'fadeOut' : 200,
     114    'maxWidth':'300px',
     115    'keepAlive':true,
     116    'activation':'click'
     117  });
     118{/literal}{/footer_script}
     119<ul class="tagSelection">
     120{foreach from=$all_tags item=tag}
     121        <li>{capture name='showInfo'}<b>{$tag.name}</b><br>{$pwg->l10n_dec('%d photo', '%d photos', $tag.counter)} <a href="{$tag.U_VIEW}">{'View'|@translate}</a> <a href="{$tag.U_EDIT}">{'Edit'|@translate}</a>{if !empty($tag.alt_names)}<br>{$tag.alt_names}{/if}{/capture}
     122                <a class="showInfo" title="{$smarty.capture.showInfo|@htmlspecialchars}">i</a>
     123                <label>
     124                        <input type="checkbox" name="tags[]" value="{$tag.id}"> {$tag.name}
     125                </label>
     126        </li>
     127{/foreach}
     128</ul>
    108129
    109130    <p>
Note: See TracChangeset for help on using the changeset viewer.