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

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

feature 2108 added: user upload removed from core. It will come back as a
"new generation" user upload in the Community plugin.

  • Property svn:eol-style set to LF
File size: 7.4 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 elements'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}"></a></li>
17  <li><a href="{$U_MANAGE_RANKS}" title="{'manage image ranks'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/ranks.png" class="button" alt="{'ranks'|@translate}"></a></li>
18  {/if}
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_DELETE) }
24  <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>
25  {/if}
26</ul>
27
28<form action="{$F_ACTION}" method="POST" id="catModify">
29
30<fieldset>
31  <legend>{'Informations'|@translate}</legend>
32  <table>
33
34    {if isset($CAT_FULL_DIR) }
35    <tr>
36      <td><strong>{'Directory'|@translate}</strong></td>
37      <td class="row1">{$CAT_FULL_DIR}</td>
38    </tr>
39    {/if}
40   
41    <tr>
42      <td><strong>{'Name'|@translate}</strong></td>
43      <td>
44        <input type="text" class="large" name="name" value="{$CAT_NAME}" maxlength="60">
45      </td>
46    </tr>
47    <tr>
48      <td><strong>{'Description'|@translate}</strong></td>
49      <td>
50        <textarea cols="50" rows="5" name="comment" id="comment" class="description">{$CAT_COMMENT}</textarea>
51      </td>
52    </tr>
53  </table>
54</fieldset>
55
56{if isset($move_cat_options) }
57<fieldset id="move">
58  <legend>{'Move'|@translate}</legend>
59  {'Parent album'|@translate}
60  <select class="categoryDropDown" name="parent">
61    <option value="0">------------</option>
62    {html_options options=$move_cat_options selected=$move_cat_options_selected }
63  </select>
64</fieldset>
65{/if}
66
67<fieldset id="options">
68  <legend>{'Options'|@translate}</legend>
69  <table>
70    <tr>
71      <td><strong>{'Access type'|@translate}</strong>
72      <td>
73        {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS}
74      </td>
75    </tr>
76    <tr>
77      <td><strong>{'Lock'|@translate}</strong>
78      <td>
79        {html_radios name='visible' values='true,false'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE}
80      </td>
81    </tr>
82    <tr>
83      <td><strong>{'Comments'|@translate}</strong>
84      <td>
85        {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE}
86      </td>
87    </tr>
88  </table>
89</fieldset>
90
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 image 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
111<p style="text-align:center;">
112  <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit">
113  <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
114</p>
115
116{if isset($representant) }
117<fieldset id="representant">
118  <legend>{'Representant'|@translate}</legend>
119  <table>
120    <tr>
121      <td align="center">
122        {if isset($representant.picture) }
123        <a href="{$representant.picture.URL}"><img src="{$representant.picture.SRC}" alt="" class="miniature"></a>
124        {else}
125        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/category_representant_random.png" class="button" alt="{'Random picture'|@translate}" class="miniature">
126        {/if}
127      </td>
128      <td>
129        {if $representant.ALLOW_SET_RANDOM }
130        <p><input class="submit" type="submit" name="set_random_representant" value="{'Find a new representant by random'|@translate}"></p>
131        {/if}
132
133        {if isset($representant.ALLOW_DELETE) }
134        <p><input class="submit" type="submit" name="delete_representant" value="{'Delete Representant'|@translate}"></p>
135        {/if}
136      </td>
137    </tr>
138  </table>
139</fieldset>
140{/if}
141
142</form>
143
144<form action="{$F_ACTION}" method="POST" id="links">
145
146<fieldset id="linkAllNew">
147  <legend>{'Link all album elements to a new album'|@translate}</legend>
148
149  <table>
150    <tr>
151      <td>{'Virtual album name'|@translate}</td>
152      <td><input type="text" class="large" name="virtual_name"></td>
153    </tr>
154
155    <tr>
156      <td>{'Parent album'|@translate}</td>
157      <td>
158        <select class="categoryDropDown" name="parent">
159          <option value="0">------------</option>
160          {html_options options=$create_new_parent_options }
161        </select>
162      </td>
163    </tr>
164  </table>
165
166  <p>
167    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd">
168    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
169  </p>
170
171</fieldset>
172
173<fieldset id="linkAllExist">
174  <legend>{'Link all album elements to some existing albums'|@translate}</legend>
175
176  <table>
177    <tr>
178      <td>{'Albums'|@translate}</td>
179      <td>
180        <select class="categoryList" name="destinations[]" multiple="multiple" size="5">
181          {html_options options=$category_destination_options }
182        </select>
183      </td>
184    </tr>
185  </table>
186
187  <p>
188    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitDestinations">
189    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
190  </p>
191
192</fieldset>
193
194{if isset($group_mail_options)}
195<fieldset id="emailCatInfo">
196  <legend>{'Send an information email to group members'|@translate}</legend>
197
198  <table>
199    <tr>
200      <td><strong>{'Group'|@translate}</strong></td>
201      <td>
202        <select name="group">
203          {html_options options=$group_mail_options}
204        </select>
205      </td>
206    </tr>
207    <tr>
208      <td><strong>{'Mail content'|@translate}</strong></td>
209      <td>
210        <textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
211      </td>
212    </tr>
213
214  </table>
215
216  <p>
217    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitEmail">
218    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
219  </p>
220
221</fieldset>
222{/if}
223
224</form>
Note: See TracBrowser for help on using the repository browser.