Ignore:
Timestamp:
Nov 15, 2011, 12:48:37 PM (12 years ago)
Author:
plg
Message:

bug 2506 fixed: Batch Manager does not take permissions into account when
filtering on tags

feature 2507 added: Batch Manager can filter on "all tags" or "any tag"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/admin/themes/default/template/batch_manager_global.tpl

    r12476 r12629  
    481481        <label><input type="checkbox" name="filter_category_recursive" {if isset($filter.category_recursive)}checked="checked"{/if}> {'include child albums'|@translate}</label>
    482482      </li>
    483                         <li id="filter_tags" {if !isset($filter.tags)}style="display:none"{/if}>
    484                                 <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
    485                                 <input type="checkbox" name="filter_tags_use" class="useFilterCheckbox" {if isset($filter.tags)}checked="checked"{/if}>
    486                                 {'Tags'|@translate}
    487                                 <select id="tagsFilter" name="filter_tags">
    488                                         {foreach from=$filter_tags item=tag}
    489                                         <option value="{$tag.id}">{$tag.name}</option>
    490                                         {/foreach}
    491                                 </select>
    492                         </li>
     483      <li id="filter_tags" {if !isset($filter.tags)}style="display:none"{/if}>
     484        <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
     485        <input type="checkbox" name="filter_tags_use" class="useFilterCheckbox" {if isset($filter.tags)}checked="checked"{/if}>
     486        {'Tags'|@translate}
     487        <select id="tagsFilter" name="filter_tags">
     488          {foreach from=$filter_tags item=tag}
     489          <option value="{$tag.id}">{$tag.name}</option>
     490          {/foreach}
     491        </select>
     492        <label><span><input type="radio" name="tag_mode" value="AND" {if !isset($filter.tag_mode) or $filter.tag_mode eq 'AND'}checked="checked"{/if}> {'All tags'|@translate}</span></label>
     493        <label><span><input type="radio" name="tag_mode" value="OR" {if isset($filter.tag_mode) and $filter.tag_mode eq 'OR'}checked="checked"{/if}> {'Any tag'|@translate}</span></label>
     494      </li>
    493495      <li id="filter_level" {if !isset($filter.level)}style="display:none"{/if}>
    494496        <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
Note: See TracChangeset for help on using the changeset viewer.