source: trunk/admin/themes/default/template/configuration.tpl @ 10122

Last change on this file since 10122 was 10122, checked in by mistic100, 10 years ago

bug:2152 no special parameter for updated comment validation

  • Property svn:eol-style set to LF
File size: 13.1 KB
Line 
1
2{include file='include/autosize.inc.tpl'}
3
4<div class="titrePage">
5  <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2>
6</div>
7
8{if !isset($default)}
9<form method="post" action="{$F_ACTION}" class="properties">
10{/if}
11<div id="configContent">
12{if isset($main)}
13<fieldset id="mainConf">
14  <legend></legend>
15  <ul>
16    <li>
17      <span class="property">
18        <label for="gallery_title">{'Gallery title'|@translate}</label>
19      </span>
20      <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}">
21    </li>
22
23    <li>
24      <span class="property">
25        <label for="page_banner">{'Page banner'|@translate}</label>
26      </span>
27      <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea>
28    </li>
29
30    <li>
31      <span class="property">
32        <label for="gallery_url">{'Gallery URL'|@translate}</label>
33      </span>
34      <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{$main.CONF_GALLERY_URL}">
35    </li>
36  </ul>
37</fieldset>
38
39<fieldset id="mainConfCheck">
40  <legend></legend>
41  <ul>
42    <li>
43      <label>
44        <span class="property">{'Lock gallery'|@translate}</span>
45        <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if}>
46      </label>
47    </li>
48
49    <li>
50      <label>
51        <span class="property">{'Allow rating'|@translate}</span>
52        <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}>
53      </label>
54    </li>
55
56    <li>
57      <label>
58        <span class="property">{'Rating by guests'|@translate}</span>
59        <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}>
60      </label>
61    </li>
62
63    <li>
64      <label>
65        <span class="property">{'Allow user registration'|@translate}</span>
66        <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}>
67      </label>
68    </li>
69
70    <li>
71      <label>
72        <span class="property">{'Allow user customization'|@translate}</span>
73        <input type="checkbox" name="allow_user_customization" {if ($main.allow_user_customization)}checked="checked"{/if}>
74      </label>
75    </li>
76
77    <li>
78      <label>
79        <span class="property">{'Mail address is obligatory for all users'|@translate}</span>
80        <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}>
81      </label>
82    </li>
83
84    <li>
85      <label>
86        <span class="property">{'Email admins when a new user registers'|@translate}</span>
87        <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}>
88      </label>
89    </li>
90
91    <li>
92      <label>
93        <span class="property">
94          {'Week starts on'|@translate}
95          {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}
96        </span>
97      </label>
98    </li>
99  </ul>
100</fieldset>
101{/if}
102
103{if isset($history)}
104<fieldset id="historyConf">
105  <legend></legend>
106  <ul>
107      <li>
108        <label><span class="property">{'Save page visits by guests'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if}></label>
109      </li>
110
111      <li>
112        <label><span class="property">{'Save page visits by users'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if}></label>
113      </li>
114
115      <li>
116        <label><span class="property">{'Save page visits by administrators'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if}></label>
117      </li>
118  </ul>
119</fieldset>
120{/if}
121
122{if isset($comments)}
123<fieldset id="commentsConf">
124  <legend></legend>
125  <ul>
126    <li>
127      <label>
128        <span class="property">{'Comments for all'|@translate}</span>
129        <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}>
130      </label>
131    </li>
132
133    <li>
134      <span class="property">
135        <label for="nb_comment_page">{'Number of comments per page'|@translate}</label>
136      </span>
137      <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}">
138    </li>
139
140    <li>
141      <label>
142        <span class="property">{'Validation'|@translate}</span>
143        <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}>
144      </label>
145    </li>
146
147    <li>
148      <label>
149        <span class="property">{'Email admins when a valid comment is entered'|@translate}</span>
150        <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}>
151      </label>
152    </li>
153
154    <li>
155      <label>
156        <span class="property">{'Email admins when a comment requires validation'|@translate}</span>
157        <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}>
158      </label>
159    </li>
160
161    <li>
162      <label>
163        <span class="property">{'Allow users to edit their own comments'|@translate}</span>
164        <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
165      </label>
166    </li>
167    <li>
168      <label>
169        <span class="property">{'Allow users to delete their own comments'|@translate}</span>
170        <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}>
171      </label>
172    </li>
173    <li>
174      <label>
175        <span class="property">{'Email administrators when a comment is modified'|@translate}</span>
176        <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}>
177      </label>
178    </li>
179    <li>
180      <label>
181        <span class="property">{'Email administrators when a comment is deleted'|@translate}</span>
182        <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}>
183      </label>
184    </li>
185
186  </ul>
187</fieldset>
188{/if}
189
190</div> <!-- configContent -->
191
192{if isset($default)}
193{$PROFILE_CONTENT}
194{/if}
195
196{if isset($display)}
197<fieldset id="indexDisplayConf">
198  <legend>{'Main Page'|@translate}</legend>
199  <ul>
200    <li>
201      <label>
202        <span class="property">{'display only recently posted photos'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
203        <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}>
204      </label>
205    </li>
206
207    <li>
208      <label>
209        <span class="property">{'Sort order'|@translate|@string_format:$pwg->l10n('Activate field "%s"')}</span>
210        <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}>
211      </label>
212    </li>
213
214    <li>
215      <label>
216        <span class="property">{'display all photos in all sub-albums'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
217        <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}>
218      </label>
219    </li>
220
221    <li>
222      <label>
223        <span class="property">{'display a calendar by posted date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
224        <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}>
225      </label>
226    </li>
227
228    <li>
229      <label>
230        <span class="property">{'display a calendar by creation date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
231        <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}>
232      </label>
233    </li>
234
235    <li>
236      <label>
237        <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
238        <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}>
239      </label>
240    </li>
241  </ul>
242</fieldset>
243
244<fieldset id="pictureDisplayConf">
245  <legend>{'Photo Page'|@translate}</legend>
246  <ul>
247    <li>
248      <label>
249        <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
250        <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}>
251      </label>
252    </li>
253
254    <li>
255      <label>
256        <span class="property">{'Show file metadata'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
257        <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}>
258      </label>
259    </li>
260
261    <li>
262      <label>
263        <span class="property">{'download this file'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
264        <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}>
265      </label>
266    </li>
267
268    <li>
269      <label>
270        <span class="property">{'add this photo to your favorites'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
271        <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}>
272      </label>
273    </li>
274
275    <li>
276      <label>
277        <span class="property">{'Activate Navigation Bar'|@translate}</span>
278        <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}>
279      </label>
280    </li>
281
282    <li>
283      <label>
284        <span class="property">{'Activate Navigation Thumbnails'|@translate}</span>
285        <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}>
286      </label>
287    </li>
288  </ul>
289</fieldset>
290
291<fieldset id="pictureInfoConf">
292  <legend>{'Photo Properties'|@translate}</legend>
293  <ul>
294    <li>
295      <label>
296        <span class="property">{'Author'|@translate}</span>
297        <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}>
298      </label>
299    </li>
300
301    <li>
302      <label>
303        <span class="property">{'Created on'|@translate}</span>
304        <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}>
305      </label>
306    </li>
307
308    <li>
309      <label>
310        <span class="property">{'Posted on'|@translate}</span>
311        <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}>
312      </label>
313    </li>
314
315    <li>
316      <label>
317        <span class="property">{'Dimensions'|@translate}</span>
318        <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}>
319      </label>
320    </li>
321
322    <li>
323      <label>
324        <span class="property">{'File'|@translate}</span>
325        <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}>
326      </label>
327    </li>
328
329    <li>
330      <label>
331        <span class="property">{'Filesize'|@translate}</span>
332        <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}>
333      </label>
334    </li>
335
336    <li>
337      <label>
338        <span class="property">{'Tags'|@translate}</span>
339        <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}>
340      </label>
341    </li>
342
343    <li>
344      <label>
345        <span class="property">{'Albums'|@translate}</span>
346        <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}>
347      </label>
348    </li>
349
350    <li>
351      <label>
352        <span class="property">{'Visits'|@translate}</span>
353        <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}>
354      </label>
355    </li>
356
357    <li>
358      <label>
359        <span class="property">{'Average rate'|@translate}</span>
360        <input type="checkbox" name="picture_informations[average_rate]" {if ($display.picture_informations.average_rate)}checked="checked"{/if}>
361      </label>
362    </li>
363
364    <li>
365      <label>
366        <span class="property">{'Who can see this photo?'|@translate} ({'available for administrators only'|@translate})</span>
367        <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}>
368      </label>
369    </li>
370  </ul>
371</fieldset>
372{/if}
373
374{if !isset($default)}
375  <p>
376    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
377    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
378  </p>
379</form>
380{/if}
Note: See TracBrowser for help on using the repository browser.