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

Last change on this file since 12887 was 12887, checked in by mistic100, 12 years ago

feature:2549 Allow to disable comments for everybody

  • Property svn:eol-style set to LF
File size: 6.7 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" 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>
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  {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>
125{/if}
126
127</form>
128
129<form action="{$F_ACTION}" method="POST" id="links">
130
131<fieldset id="linkAllNew">
132  <legend>{'Link all album photos to a new album'|@translate}</legend>
133
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>
147      </td>
148    </tr>
149  </table>
150
151  <p>
152    <input class="submit" type="submit" value="{'Submit'|@translate}" name="submitAdd">
153    <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset">
154  </p>
155
156</fieldset>
157
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
209</form>
Note: See TracBrowser for help on using the repository browser.