source: trunk/admin/themes/default/template/cat_modify.tpl @ 11041

Last change on this file since 11041 was 11041, checked in by plg, 13 years ago

merge r11040 from branch 2.2 to trunk

bug 1786 fixed: ability to prefilter the synchronize screen with a specific
album by clicking on the new "Synchronize" icon on album admin page or album
admin list.

This is not the solution proposed by Gotcha (ie a treeview to select the album
on the synchronize screen) but it solves the same problem.

  • Property svn:eol-style set to LF
File size: 6.8 KB
RevLine 
[2614]1
[2641]2{include file='include/autosize.inc.tpl'}
[2718]3{include file='include/resize.inc.tpl'}
[2614]4
[2531]5<div class="titrePage">
[6993]6  <h2>{'Edit album'|@translate}</h2>
[2531]7</div>
8
9<h3>{$CATEGORIES_NAV}</h3>
10
11<ul class="categoryActions">
[2777]12  {if cat_admin_access($CAT_ID)}
[6988]13  <li><a href="{$U_JUMPTO}" title="{'jump to album'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to album'|@translate}"></a></li>
[2777]14  {/if}
[2531]15  {if isset($U_MANAGE_ELEMENTS) }
[8727]16  <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>
[9051]17  {/if}
[8682]18  <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>
[7024]19  <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>
[2531]20  {if isset($U_MANAGE_PERMISSIONS) }
[6988]21  <li><a href="{$U_MANAGE_PERMISSIONS}" title="{'edit album permissions'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_permissions.png" class="button" alt="{'Permissions'|@translate}"></a></li>
[2531]22  {/if}
[11041]23  {if isset($U_SYNC) }
24  <li><a href="{$U_SYNC}" title="{'Synchronize'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/synchronize.png" class="button" alt="{'Synchronize'|@translate}"></a></li>
25  {/if}
[2531]26  {if isset($U_DELETE) }
[6988]27  <li><a href="{$U_DELETE}" title="{'delete album'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete album'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li>
[2531]28  {/if}
29</ul>
30
31<form action="{$F_ACTION}" method="POST" id="catModify">
32
33<fieldset>
34  <legend>{'Informations'|@translate}</legend>
35  <table>
36
37    {if isset($CAT_FULL_DIR) }
38    <tr>
[5021]39      <td><strong>{'Directory'|@translate}</strong></td>
[2531]40      <td class="row1">{$CAT_FULL_DIR}</td>
41    </tr>
42    {/if}
43   
44    <tr>
45      <td><strong>{'Name'|@translate}</strong></td>
46      <td>
[3185]47        <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60">
[2531]48      </td>
49    </tr>
50    <tr>
51      <td><strong>{'Description'|@translate}</strong></td>
52      <td>
[2674]53        <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
[2531]54      </td>
55    </tr>
56  </table>
57</fieldset>
58
59{if isset($move_cat_options) }
60<fieldset id="move">
61  <legend>{'Move'|@translate}</legend>
[6969]62  {'Parent album'|@translate}
[2531]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>
68{/if}
69
70<fieldset id="options">
71  <legend>{'Options'|@translate}</legend>
72  <table>
73    <tr>
[5021]74      <td><strong>{'Access type'|@translate}</strong>
[2531]75      <td>
76        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
77      </td>
78    </tr>
79    <tr>
[5021]80      <td><strong>{'Lock'|@translate}</strong>
[2531]81      <td>
82        {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
83      </td>
84    </tr>
85    <tr>
[5021]86      <td><strong>{'Comments'|@translate}</strong>
[2531]87      <td>
88        {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
89      </td>
90    </tr>
91  </table>
92</fieldset>
93
94<p style="text-align:center;">
[8128]95  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
[3185]96  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
[2531]97</p>
98
99{if isset($representant) }
100<fieldset id="representant">
101  <legend>{'Representant'|@translate}</legend>
102  <table>
103    <tr>
104      <td align="center">
105        {if isset($representant.picture) }
[3185]106        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature"></a>
[2531]107        {else}
[8727]108        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" class="button" alt="{'Random photo'|@translate}" class="miniature">
[2531]109        {/if}
110      </td>
111      <td>
112        {if $representant.ALLOW_SET_RANDOM }
[8128]113        <p><input class="submit" type="submit" name="set_random_representant" value="{'Find a new representant by random'|@translate}"></p>
[2531]114        {/if}
115
116        {if isset($representant.ALLOW_DELETE) }
[3185]117        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
[2531]118        {/if}
119      </td>
120    </tr>
121  </table>
122</fieldset>
123{/if}
124
125</form>
126
127<form action="{$F_ACTION}" method="POST" id="links">
128
129<fieldset id="linkAllNew">
[8723]130  <legend>{'Link all album photos to a new album'|@translate}</legend>
[2531]131
132  <table>
133    <tr>
[6969]134      <td>{'Virtual album name'|@translate}</td>
[2761]135      <td><input type="text" class="large" name="virtual_name"></td>
[2531]136    </tr>
137
138    <tr>
[6969]139      <td>{'Parent album'|@translate}</td>
[2531]140      <td>
141        <select class="categoryDropDown" name="parent">
142          <option value="0">------------</option>
143          {html_options options=$create_new_parent_options }
144        </select>
145      </td>
146    </tr>
147  </table>
148
149  <p>
[8128]150    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd">
[3185]151    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
[2531]152  </p>
153
154</fieldset>
155
156<fieldset id="linkAllExist">
[8723]157  <legend>{'Link all album photos to some existing albums'|@translate}</legend>
[2531]158
159  <table>
160    <tr>
[6993]161      <td>{'Albums'|@translate}</td>
[2531]162      <td>
163        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
164          {html_options options=$category_destination_options }
165        </select>
166      </td>
167    </tr>
168  </table>
169
170  <p>
[8128]171    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations">
[3185]172    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
[2531]173  </p>
174
175</fieldset>
176
177{if isset($group_mail_options)}
178<fieldset id="emailCatInfo">
179  <legend>{'Send an information email to group members'|@translate}</legend>
180
181  <table>
182    <tr>
183      <td><strong>{'Group'|@translate}</strong></td>
184      <td>
185        <select name="group">
186          {html_options options=$group_mail_options}
187        </select>
188      </td>
189    </tr>
190    <tr>
[5021]191      <td><strong>{'Mail content'|@translate}</strong></td>
[2531]192      <td>
[2674]193        <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
[2531]194      </td>
195    </tr>
196
197  </table>
198
199  <p>
[8128]200    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail">
[3185]201    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
[2531]202  </p>
203
204</fieldset>
205{/if}
206
207</form>
Note: See TracBrowser for help on using the repository browser.