Ignore:
Timestamp:
Nov 15, 2011, 12:58:10 PM (13 years ago)
Author:
plg
Message:

merge r12629 from branch 2.3 to trunk

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
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r12474 r12630  
    484484        <label><input type="checkbox" name="filter_category_recursive" {if isset($filter.category_recursive)}checked="checked"{/if}> {'include child albums'|@translate}</label>
    485485      </li>
    486                         <li id="filter_tags" {if !isset($filter.tags)}style="display:none"{/if}>
    487                                 <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
    488                                 <input type="checkbox" name="filter_tags_use" class="useFilterCheckbox" {if isset($filter.tags)}checked="checked"{/if}>
    489                                 {'Tags'|@translate}
    490                                 <select id="tagsFilter" name="filter_tags">
    491                                         {foreach from=$filter_tags item=tag}
    492                                         <option value="{$tag.id}">{$tag.name}</option>
    493                                         {/foreach}
    494                                 </select>
    495                         </li>
     486      <li id="filter_tags" {if !isset($filter.tags)}style="display:none"{/if}>
     487        <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
     488        <input type="checkbox" name="filter_tags_use" class="useFilterCheckbox" {if isset($filter.tags)}checked="checked"{/if}>
     489        {'Tags'|@translate}
     490        <select id="tagsFilter" name="filter_tags">
     491          {foreach from=$filter_tags item=tag}
     492          <option value="{$tag.id}">{$tag.name}</option>
     493          {/foreach}
     494        </select>
     495        <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>
     496        <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>
     497      </li>
    496498      <li id="filter_level" {if !isset($filter.level)}style="display:none"{/if}>
    497499        <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
Note: See TracChangeset for help on using the changeset viewer.