Ignore:
Timestamp:
Feb 2, 2012, 12:03:35 AM (12 years ago)
Author:
plg
Message:

feature 2561: redesign on album administration screen.

  • only one form on the screen and several tabs
  • simpler URL pattern : page=album-123-properties / page=album-123-sort_order / page=album-123-permissions
  • action to associate all photos of an album to another (new) virtual album was removed. This can be easily done with the new Batch Manager
  • notification by email on an album still has to be moved on a new dedicated tab
  • action icons (jump to album, manage photos, manage sub-albums, delete album...) replaced by plain text links
File:
1 edited

Legend:

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

    r12887 r13013  
    1 
    2 {include file='include/autosize.inc.tpl'}
    3 {include file='include/resize.inc.tpl'}
    4 
    51<div class="titrePage">
    6   <h2>{'Edit album'|@translate}</h2>
     2  <h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> &#8250; {'Edit album'|@translate} {$TABSHEET_TITLE}</h2>
    73</div>
    8 
    9 <h3>{$CATEGORIES_NAV}</h3>
    10 
    11 <ul class="categoryActions">
    12   {if cat_admin_access($CAT_ID)}
    13   <li><a href="{$U_JUMPTO}" title="{'jump to album'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" alt="{'jump to album'|@translate}"></a></li>
    14   {/if}
    15   {if isset($U_MANAGE_ELEMENTS) }
    16   <li><a href="{$U_MANAGE_ELEMENTS}" title="{'manage album photos'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" alt="{'Photos'|@translate}"></a></li>
    17   {/if}
    18   <li><a href="{$U_MANAGE_RANKS}" title="{'Manage photo ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" alt="{'ranks'|@translate}"></a></li>
    19   <li><a href="{$U_CHILDREN}" title="{'manage sub-albums'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_children.png" alt="{'sub-albums'|@translate}"></a></li>
    20   {if isset($U_MANAGE_PERMISSIONS) }
    21   <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'Edit album permissions'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_permissions.png" alt="{'Permissions'|@translate}"></a></li>
    22   {/if}
    23   {if isset($U_SYNC) }
    24   <li><a href="{$U_SYNC}" title="{'Synchronize'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/synchronize.png" alt="{'Synchronize'|@translate}"></a></li>
    25   {/if}
    26   {if isset($U_DELETE) }
    27   <li><a href="{$U_DELETE}" title="{'delete album'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_delete.png" alt="{'delete album'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li>
    28   {/if}
    29 </ul>
    304
    315<form action="{$F_ACTION}" method="POST" id="catModify">
     
    337<fieldset>
    348  <legend>{'Informations'|@translate}</legend>
    35   <table>
    369
    37     {if isset($CAT_FULL_DIR) }
     10  <table style="width:100%">
    3811    <tr>
    39       <td><strong>{'Directory'|@translate}</strong></td>
    40       <td class="row1">{$CAT_FULL_DIR}</td>
    41     </tr>
    42     {/if}
    43    
    44     <tr>
    45       <td><strong>{'Name'|@translate}</strong></td>
    46       <td>
    47         <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60">
     12      <td style="width:1%;padding-right:10px;text-align:center;">
     13{if isset($representant) }
     14  {if isset($representant.picture) }
     15        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" style="border:2px solid #ddd"></a>
     16  {else}
     17        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" alt="{'Random photo'|@translate}">
     18  {/if}
     19
     20  {if $representant.ALLOW_SET_RANDOM }
     21        <p style="text-align:center;"><input class="submit" type="submit" name="set_random_representant" value="Refresh" title="{'Find a new representant by random'|@translate}"></p>
     22  {/if}
     23
     24  {if isset($representant.ALLOW_DELETE) }
     25        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
     26  {/if}
     27{/if}
    4828      </td>
    49     </tr>
    50     <tr>
    51       <td><strong>{'Description'|@translate}</strong></td>
    52       <td>
    53         <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
    54       </td>
    55     </tr>
    56   </table>
    57 </fieldset>
    5829
    59 {if isset($move_cat_options) }
    60 <fieldset id="move">
    61   <legend>{'Move'|@translate}</legend>
    62   {'Parent album'|@translate}
    63   <select class="categoryDropDown" name="parent">
    64     <option value="0">------------</option>
    65     {html_options options=$move_cat_options selected=$move_cat_options_selected }
    66   </select>
    67 </fieldset>
     30      <td style="vertical-align:top;border-left:2px solid #ddd;padding-left:10px;">
     31<p>{$INTRO}</p>
     32<ul style="padding-left:15px;">
     33{if cat_admin_access($CAT_ID)}
     34  <li><a href="{$U_JUMPTO}">{'jump to album'|@translate} →</a></li>
    6835{/if}
    6936
    70 <fieldset id="options">
    71   <legend>{'Options'|@translate}</legend>
    72   <table>
    73     <tr>
    74       <td><strong>{'Access type'|@translate}</strong>
    75       <td>
    76         {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
    77       </td>
    78     </tr>
    79     <tr>
    80       <td><strong>{'Lock'|@translate}</strong>
    81       <td>
    82         {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
    83       </td>
    84     </tr>
    85   {if isset($CAT_COMMENTABLE)}
    86     <tr>
    87       <td><strong>{'Comments'|@translate}</strong>
    88       <td>
    89         {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
    90       </td>
    91     </tr>
    92   {/if}
    93   </table>
    94 </fieldset>
    95 
    96 <p style="text-align:center;">
    97   <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
    98   <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
    99 </p>
    100 
    101 {if isset($representant) }
    102 <fieldset id="representant">
    103   <legend>{'Representant'|@translate}</legend>
    104   <table>
    105     <tr>
    106       <td align="center">
    107         {if isset($representant.picture) }
    108         <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt=""></a>
    109         {else}
    110         <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" alt="{'Random photo'|@translate}">
    111         {/if}
    112       </td>
    113       <td>
    114         {if $representant.ALLOW_SET_RANDOM }
    115         <p><input class="submit" type="submit" name="set_random_representant" value="{'Find a new representant by random'|@translate}"></p>
    116         {/if}
    117 
    118         {if isset($representant.ALLOW_DELETE) }
    119         <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
    120         {/if}
    121       </td>
    122     </tr>
    123   </table>
    124 </fieldset>
     37{if isset($U_MANAGE_ELEMENTS) }
     38  <li><a href="{$U_MANAGE_ELEMENTS}">{'manage album photos'|@translate}</a></li>
    12539{/if}
    12640
    127 </form>
     41  <li><a href="{$U_CHILDREN}">{'manage sub-albums'|@translate}</a></li>
    12842
    129 <form action="{$F_ACTION}" method="POST" id="links">
     43{if isset($U_SYNC) }
     44  <li><a href="{$U_SYNC}">{'Synchronize'|@translate}</a> ({'Directory'|@translate} = {$CAT_FULL_DIR})</li>
     45{/if}
    13046
    131 <fieldset id="linkAllNew">
    132   <legend>{'Link all album photos to a new album'|@translate}</legend>
     47{if isset($U_DELETE) }
     48  <li><a href="{$U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete album'|@translate}</a></li>
     49{/if}
    13350
    134   <table>
    135     <tr>
    136       <td>{'Virtual album name'|@translate}</td>
    137       <td><input type="text" class="large" name="virtual_name"></td>
    138     </tr>
    139 
    140     <tr>
    141       <td>{'Parent album'|@translate}</td>
    142       <td>
    143         <select class="categoryDropDown" name="parent">
    144           <option value="0">------------</option>
    145           {html_options options=$create_new_parent_options }
    146         </select>
     51</ul>
    14752      </td>
    14853    </tr>
    14954  </table>
    15055
     56</fieldset>
     57
     58<fieldset>
     59  <legend>{'Properties'|@translate}</legend>
    15160  <p>
    152     <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd">
    153     <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
     61    <strong>{'Name'|@translate}</strong>
     62    <br>
     63    <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60">
    15464  </p>
    15565
     66  <p>
     67    <strong>{'Description'|@translate}</strong>
     68    <br>
     69    <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
     70  </p>
     71
     72{if isset($move_cat_options) }
     73  <p>
     74    <strong>{'Parent album'|@translate}</strong>
     75    <br>
     76    <select class="categoryDropDown" name="parent">
     77      <option value="0">------------</option>
     78      {html_options options=$move_cat_options selected=$move_cat_options_selected }
     79    </select>
     80  </p>
     81{/if}
     82
     83  <p>
     84    <strong>{'Access type'|@translate}</strong>
     85    <br>
     86    {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
     87  </p>
     88
     89  <p>
     90    <strong>{'Lock'|@translate}</strong>
     91    <br>
     92    {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
     93  </p>
     94
     95  {if isset($CAT_COMMENTABLE)}
     96  <p>
     97    <strong>{'Comments'|@translate}</strong>
     98    <br>
     99    {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
     100  </p>
     101  {/if}
     102
     103  <p style="margin:0">
     104    <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="submit">
     105  </p>
    156106</fieldset>
    157107
    158 <fieldset id="linkAllExist">
    159   <legend>{'Link all album photos to some existing albums'|@translate}</legend>
    160 
    161   <table>
    162     <tr>
    163       <td>{'Albums'|@translate}</td>
    164       <td>
    165         <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
    166           {html_options options=$category_destination_options }
    167         </select>
    168       </td>
    169     </tr>
    170   </table>
    171 
    172   <p>
    173     <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations">
    174     <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
    175   </p>
    176 
    177 </fieldset>
    178 
    179 {if isset($group_mail_options)}
    180 <fieldset id="emailCatInfo">
    181   <legend>{'Send an information email to group members'|@translate}</legend>
    182 
    183   <table>
    184     <tr>
    185       <td><strong>{'Group'|@translate}</strong></td>
    186       <td>
    187         <select name="group">
    188           {html_options options=$group_mail_options}
    189         </select>
    190       </td>
    191     </tr>
    192     <tr>
    193       <td><strong>{'Mail content'|@translate}</strong></td>
    194       <td>
    195         <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
    196       </td>
    197     </tr>
    198 
    199   </table>
    200 
    201   <p>
    202     <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail">
    203     <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
    204   </p>
    205 
    206 </fieldset>
    207 {/if}
    208 
    209108</form>
Note: See TracChangeset for help on using the changeset viewer.