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

merge-r17765 from trunk to branch 2.4 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
  • branches/2.4/admin/themes/default/template/tags.tpl

    r12032 r17766  
    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}
     
    7272    <label>
    7373      {'New tag'|@translate}
    74       <input type="text" name="add_tag" size="30">
     74      <input type="text" name="add_tag" size="50">
    7575    </label>
    7676   
     
    8080  <fieldset>
    8181    <legend>{'Tag selection'|@translate}</legend>
    82    
    83     {$TAG_SELECTION}
     82{html_style}
     83.showInfo{ldelim}position:static; display:inline-block; text-indent:6px}
     84{/html_style}
     85{footer_script}{literal}
     86jQuery('.showInfo').tipTip({
     87    'delay' : 0,
     88    'fadeIn' : 200,
     89    'fadeOut' : 200,
     90    'maxWidth':'300px',
     91    'keepAlive':true,
     92    'activation':'click'
     93  });
     94{/literal}{/footer_script}
     95<ul class="tagSelection">
     96{foreach from=$all_tags item=tag}
     97        <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}
     98                <a class="showInfo" title="{$smarty.capture.showInfo|@htmlspecialchars}">i</a>
     99                <label>
     100                        <input type="checkbox" name="tags[]" value="{$tag.id}"> {$tag.name}
     101                </label>
     102        </li>
     103{/foreach}
     104</ul>
    84105
    85106    <p>
Note: See TracChangeset for help on using the changeset viewer.