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

Last change on this file since 11222 was 11041, checked in by plg, 14 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
Line 
1
2{include file='include/autosize.inc.tpl'}
3{include file='include/resize.inc.tpl'}
4
5<div class="titrePage">
6  <h2>{'Edit album'|@translate}</h2>
7</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" class="button" 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" class="button" 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" class="button" 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" class="button" 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" class="button" 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" class="button" 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" class="button" alt="{'delete album'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li>
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>
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">
48      </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>
58
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>
68{/if}
69
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    <tr>
86      <td><strong>{'Comments'|@translate}</strong>
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;">
95  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
96  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
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) }
106        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature"></a>
107        {else}
108        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" class="button" alt="{'Random photo'|@translate}" class="miniature">
109        {/if}
110      </td>
111      <td>
112        {if $representant.ALLOW_SET_RANDOM }
113        <p><input class="submit" type="submit" name="set_random_representant" value="{'Find a new representant by random'|@translate}"></p>
114        {/if}
115
116        {if isset($representant.ALLOW_DELETE) }
117        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
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">
130  <legend>{'Link all album photos to a new album'|@translate}</legend>
131
132  <table>
133    <tr>
134      <td>{'Virtual album name'|@translate}</td>
135      <td><input type="text" class="large" name="virtual_name"></td>
136    </tr>
137
138    <tr>
139      <td>{'Parent album'|@translate}</td>
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>
150    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd">
151    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
152  </p>
153
154</fieldset>
155
156<fieldset id="linkAllExist">
157  <legend>{'Link all album photos to some existing albums'|@translate}</legend>
158
159  <table>
160    <tr>
161      <td>{'Albums'|@translate}</td>
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>
171    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations">
172    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
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>
191      <td><strong>{'Mail content'|@translate}</strong></td>
192      <td>
193        <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
194      </td>
195    </tr>
196
197  </table>
198
199  <p>
200    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail">
201    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
202  </p>
203
204</fieldset>
205{/if}
206
207</form>
Note: See TracBrowser for help on using the repository browser.