Ignore:
Timestamp:
Feb 2, 2011, 10:35:48 AM (13 years ago)
Author:
plg
Message:

bug 2172 fixed: the "sort order" options are removed from the album administration main page.

bug 2173 fixed: rename "manual order" into "automatic order" and "by rank" into "manual order"

bug 2174 fixed: only show the automatic order options when it's relevant

new icon for the "manage photo order" screen

hide the numeric rank below the thumbnail (it is confusing for users)

tell users that you can drag'n drop to reorder photos

bug fixed: the "apply to sub-albums" options for photo orders was not working

Location:
trunk/admin/themes/default/template
Files:
2 edited

Legend:

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

    r8727 r9051  
    1515  {if isset($U_MANAGE_ELEMENTS) }
    1616  <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage album photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'Photos'|@translate}"></a></li>
     17  {/if}
    1718  <li><a href="{$U_MANAGE_RANKS}" title="{'manage photo ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}"></a></li>
    18   {/if}
    1919  <li><a href="{$U_CHILDREN}" title="{'manage sub-albums'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_children.png" class="button" alt="{'sub-albums'|@translate}"></a></li>
    2020  {if isset($U_MANAGE_PERMISSIONS) }
     
    8989</fieldset>
    9090
    91 <fieldset id="image_order">
    92   <legend>{'Sort order'|@translate}</legend>
    93   <input type="checkbox" name="image_order_default" id="image_order_default" {$IMG_ORDER_DEFAULT}>
    94   <label for="image_order_default">{'Use the default photo sort order (defined in the configuration file)'|@translate}</label>
    95   <br>
    96   <input type="checkbox" name="image_order_subcats" id="image_order_subcats">
    97   <label for="image_order_subcats">{'Apply to sub-albums'|@translate}</label>
    98   <br>
    99  
    100   {foreach from=$image_orders item=order}
    101     <select name="order_field_{$order.ID}">
    102       {html_options options=$image_order_field_options selected=$order.FIELD }
    103     </select>
    104     <select name="order_direction_{$order.ID}">
    105       {html_options options=$image_order_direction_options selected=$order.DIRECTION }
    106     </select><br>
    107   {/foreach}
    108  
    109 </fieldset>
    110 
    11191<p style="text-align:center;">
    11292  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
  • trunk/admin/themes/default/template/element_set_ranks.tpl

    r9039 r9051  
    3737<h3>{$CATEGORIES_NAV}</h3>
    3838
     39<form action="{$F_ACTION}" method="post">
    3940{if !empty($thumbnails)}
    40 <form action="{$F_ACTION}" method="post">
    4141  <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"></p>
    4242  <fieldset>
    43     <legend>{'Edit ranks'|@translate}</legend>
     43    <legend>{'Manual order'|@translate}</legend>
    4444    {if !empty($thumbnails)}
     45    <p>{'Drag to re-order'|@translate}</p>
    4546    <ul class="thumbnails">
    4647      {foreach from=$thumbnails item=thumbnail}
     
    5152          </div>
    5253        </div>
    53         <input type="text" name="rank_of_image[{$thumbnail.ID}]" value="{$thumbnail.RANK}">
     54        <input type="text" name="rank_of_image[{$thumbnail.ID}]" value="{$thumbnail.RANK}" style="display:none">
    5455      </li>
    5556      {/foreach}
     
    5758    {/if}
    5859  </fieldset>
     60{/if}
    5961
    6062  <fieldset>
     
    6668    <p class="field">
    6769      <input type="radio" name="image_order_choice" id="image_order_rank" value="rank"{if $image_order_choice=='rank'} checked="checked"{/if}>
    68       <label for="image_order_rank">{'By rank'|@translate}</label>
     70      <label for="image_order_rank">{'manual order'|@translate}</label>
    6971    </p>
    7072    <p class="field">
    7173      <input type="radio" name="image_order_choice" id="image_order_user_define" value="user_define"{if $image_order_choice=='user_define'} checked="checked"{/if}>
    72       <label for="image_order_user_define">{'Manual order'|@translate}</label>
     74      <label for="image_order_user_define">{'automatic order'|@translate}</label>
    7375      <div id="image_order_user_define_options">
    7476      {foreach from=$image_orders item=order}
     
    8486      </div>
    8587  </fieldset>
    86   <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"></p>
     88  <p>
     89    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
     90
     91    <label>
     92      <input type="checkbox" name="image_order_subcats" id="image_order_subcats">
     93      {'Apply to sub-albums'|@translate}
     94    </label>
     95  </p>
    8796</form>
    88 
    89 
    90 {else}
    91 <div class="infos"><p>{'No photo in this album'|@translate}</p></div>
    92 {/if}
Note: See TracChangeset for help on using the changeset viewer.