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

Last change on this file since 12825 was 12681, checked in by rvelices, 13 years ago

language cleanup (exact duplicates or almost same duplicate - capital/lower case first letter ...)

  • Property svn:eol-style set to LF
File size: 14.9 KB
RevLine 
[2614]1
[2641]2{include file='include/autosize.inc.tpl'}
[2614]3
[2531]4<div class="titrePage">
[5021]5  <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2>
[2531]6</div>
7
[3215]8{if !isset($default)}
[2531]9<form method="post" action="{$F_ACTION}" class="properties">
[3215]10{/if}
[5284]11<div id="configContent">
[2531]12{if isset($main)}
13<fieldset id="mainConf">
[3185]14  <legend></legend>
[2531]15  <ul>
16    <li>
17      <span class="property">
18        <label for="gallery_title">{'Gallery title'|@translate}</label>
19      </span>
[3185]20      <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}">
[2531]21    </li>
22
23    <li>
24      <span class="property">
25        <label for="page_banner">{'Page banner'|@translate}</label>
26      </span>
[3185]27      <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea>
[2531]28    </li>
29  </ul>
30</fieldset>
31
32<fieldset id="mainConfCheck">
[3185]33  <legend></legend>
[2531]34  <ul>
35    <li>
36      <label>
37        <span class="property">{'Lock gallery'|@translate}</span>
[3185]38        <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if}>
[2531]39      </label>
40    </li>
41
42    <li>
43      <label>
[5453]44        <span class="property">{'Allow rating'|@translate}</span>
[3185]45        <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}>
[2531]46      </label>
47    </li>
48
49    <li>
50      <label>
51        <span class="property">{'Rating by guests'|@translate}</span>
[3185]52        <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}>
[2531]53      </label>
54    </li>
55
56    <li>
57      <label>
58        <span class="property">{'Allow user registration'|@translate}</span>
[3185]59        <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}>
[2531]60      </label>
61    </li>
62
63    <li>
64      <label>
[5328]65        <span class="property">{'Allow user customization'|@translate}</span>
66        <input type="checkbox" name="allow_user_customization" {if ($main.allow_user_customization)}checked="checked"{/if}>
67      </label>
68    </li>
69
70    <li>
71      <label>
[5021]72        <span class="property">{'Mail address is obligatory for all users'|@translate}</span>
[3185]73        <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}>
[2531]74      </label>
75    </li>
76
77    <li>
78      <label>
[5021]79        <span class="property">{'Email admins when a new user registers'|@translate}</span>
[3185]80        <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}>
[2531]81      </label>
82    </li>
[8626]83
84    <li>
[11279]85      &nbsp;
86      <span class="property">
87        {'Week starts on'|@translate}
88        {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}
89      </span>
[8626]90    </li>
[11279]91   
[11589]92    <li>
[11279]93      &nbsp;
94      <span class="property">
95        {'Default photos order'|@translate}
[11587]96       
97        {foreach from=$main.order_by item=order}
[11588]98        <span class="filter {if $ORDER_BY_IS_CUSTOM}transparent{/if}">         
[11587]99          <select name="order_by_field[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}>
100            {html_options options=$main.order_field_options selected=$order.FIELD }
101          </select>
102          <select name="order_by_direction[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}>
103            {html_options options=$main.order_direction_options selected=$order.DIRECTION }
104          </select> 
[11588]105          <a class="removeFilter">{'delete'|@translate}</a>
[11587]106        </span>
107        {/foreach}
108       
109        {if !$ORDER_BY_IS_CUSTOM}
[11588]110          <a class="addFilter">{'Add a criteria'|@translate}</a>
[11587]111        {else}
112          <span class="order_by_is_custom">{'You can\'t define a default photo order because you have a custom setting in your local configuration.'|@translate}</span>
113        {/if}
[11279]114      </span>
115    </li>
116   
[11587]117{if !$ORDER_BY_IS_CUSTOM}
[11279]118{footer_script require='jquery'}{literal}
119jQuery(document).ready(function () {
[11587]120  $('.addFilter').click(function() {
121    rel = $(this).attr('rel');
122    $(this).prev('span.filter').clone().insertBefore($(this));
123    $(this).prev('span.filter').children('select[name="order_by_field[]"]').val('');
124    $(this).prev('span.filter').children('select[name="order_by_direction[]"]').val('ASC');
125     
126    $(".removeFilter").click(function () {
127      $(this).parent('span.filter').remove();
128    });
[11279]129  });
[11587]130 
131  $(".removeFilter").click(function () {
132    $(this).parent('span.filter').remove();
[11279]133  });
134});
135{/literal}{/footer_script}
[11587]136{/if}
[2531]137  </ul>
138</fieldset>
139{/if}
140
141{if isset($history)}
142<fieldset id="historyConf">
[3215]143  <legend></legend>
[2531]144  <ul>
145      <li>
[5021]146        <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>
[2531]147      </li>
148
149      <li>
[5021]150        <label><span class="property">{'Save page visits by users'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if}></label>
[2531]151      </li>
152
153      <li>
[5021]154        <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>
[2531]155      </li>
156  </ul>
157</fieldset>
158{/if}
159
160{if isset($comments)}
161<fieldset id="commentsConf">
[3215]162  <legend></legend>
[2531]163  <ul>
164    <li>
165      <label>
166        <span class="property">{'Comments for all'|@translate}</span>
[3185]167        <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}>
[2531]168      </label>
169    </li>
170
171    <li>
172      <span class="property">
173        <label for="nb_comment_page">{'Number of comments per page'|@translate}</label>
174      </span>
[3185]175      <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}">
[2531]176    </li>
177
178    <li>
179      <label>
180        <span class="property">{'Validation'|@translate}</span>
[3185]181        <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}>
[2531]182      </label>
183    </li>
184
185    <li>
186      <label>
[5021]187        <span class="property">{'Email admins when a valid comment is entered'|@translate}</span>
[3185]188        <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}>
[2531]189      </label>
190    </li>
191
192    <li>
193      <label>
[5021]194        <span class="property">{'Email admins when a comment requires validation'|@translate}</span>
[3185]195        <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}>
[2531]196      </label>
197    </li>
[3445]198
199    <li>
200      <label>
[8723]201        <span class="property">{'Allow users to edit their own comments'|@translate}</span>
[3445]202        <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
203      </label>
204    </li>
205    <li>
206      <label>
[8723]207        <span class="property">{'Allow users to delete their own comments'|@translate}</span>
[3445]208        <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}>
209      </label>
210    </li>
211    <li>
212      <label>
213        <span class="property">{'Email administrators when a comment is modified'|@translate}</span>
214        <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}>
215      </label>
216    </li>
217    <li>
218      <label>
219        <span class="property">{'Email administrators when a comment is deleted'|@translate}</span>
220        <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}>
221      </label>
222    </li>
223
[2531]224  </ul>
225</fieldset>
226{/if}
227
[5284]228</div> <!-- configContent -->
229
[2531]230{if isset($default)}
231{$PROFILE_CONTENT}
232{/if}
233
[5293]234{if isset($display)}
235<fieldset id="indexDisplayConf">
236  <legend>{'Main Page'|@translate}</legend>
237  <ul>
238    <li>
239      <label>
[8665]240        <span class="property">{'display only recently posted photos'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5293]241        <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}>
242      </label>
[11285]243    </li>   
244   
245    <li>
246      <label>
247        <span class="property">{'Activate icon "new" next to albums and pictures'|@translate}</span>
248        <input type="checkbox" name="index_new_icon" {if ($display.index_new_icon)}checked="checked"{/if}>
249      </label>
[5293]250    </li>
251
252    <li>
253      <label>
[5298]254        <span class="property">{'Sort order'|@translate|@string_format:$pwg->l10n('Activate field "%s"')}</span>
[5293]255        <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}>
256      </label>
257    </li>
258
259    <li>
260      <label>
[8711]261        <span class="property">{'display all photos in all sub-albums'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5293]262        <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}>
263      </label>
264    </li>
265
266    <li>
267      <label>
[5298]268        <span class="property">{'display a calendar by posted date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5293]269        <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}>
270      </label>
271    </li>
272
273    <li>
274      <label>
[5298]275        <span class="property">{'display a calendar by creation date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5293]276        <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}>
277      </label>
278    </li>
279
280    <li>
281      <label>
[5298]282        <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5293]283        <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}>
284      </label>
285    </li>
286  </ul>
287</fieldset>
288
289<fieldset id="pictureDisplayConf">
290  <legend>{'Photo Page'|@translate}</legend>
291  <ul>
292    <li>
293      <label>
[5298]294        <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
295        <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}>
[5293]296      </label>
297    </li>
298
299    <li>
300      <label>
[5298]301        <span class="property">{'Show file metadata'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
302        <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}>
[5293]303      </label>
304    </li>
305
306    <li>
307      <label>
[12681]308        <span class="property">{'Download this file'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5618]309        <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}>
310      </label>
311    </li>
312
313    <li>
314      <label>
[8665]315        <span class="property">{'add this photo to your favorites'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span>
[5293]316        <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}>
317      </label>
318    </li>
319
320    <li>
321      <label>
[5298]322        <span class="property">{'Activate Navigation Bar'|@translate}</span>
[5293]323        <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}>
324      </label>
325    </li>
326
327    <li>
328      <label>
[5298]329        <span class="property">{'Activate Navigation Thumbnails'|@translate}</span>
[5293]330        <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}>
331      </label>
332    </li>
[10812]333   
334    <li>
335      <label>
336        <span class="property">{'Show menubar'|@translate}</span>
337        <input type="checkbox" name="picture_menu" {if ($display.picture_menu)}checked="checked"{/if}>
338      </label>
339    </li>
[5293]340  </ul>
341</fieldset>
[5304]342
343<fieldset id="pictureInfoConf">
344  <legend>{'Photo Properties'|@translate}</legend>
345  <ul>
346    <li>
347      <label>
348        <span class="property">{'Author'|@translate}</span>
349        <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}>
350      </label>
351    </li>
352
353    <li>
354      <label>
355        <span class="property">{'Created on'|@translate}</span>
356        <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}>
357      </label>
358    </li>
359
360    <li>
361      <label>
362        <span class="property">{'Posted on'|@translate}</span>
363        <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}>
364      </label>
365    </li>
366
367    <li>
368      <label>
369        <span class="property">{'Dimensions'|@translate}</span>
370        <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}>
371      </label>
372    </li>
373
374    <li>
375      <label>
376        <span class="property">{'File'|@translate}</span>
377        <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}>
378      </label>
379    </li>
380
381    <li>
382      <label>
383        <span class="property">{'Filesize'|@translate}</span>
384        <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}>
385      </label>
386    </li>
387
388    <li>
389      <label>
390        <span class="property">{'Tags'|@translate}</span>
391        <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}>
392      </label>
393    </li>
394
395    <li>
396      <label>
[6993]397        <span class="property">{'Albums'|@translate}</span>
[5304]398        <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}>
399      </label>
400    </li>
401
402    <li>
403      <label>
404        <span class="property">{'Visits'|@translate}</span>
405        <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}>
406      </label>
407    </li>
408
409    <li>
410      <label>
[11827]411        <span class="property">{'Rating score'|@translate}</span>
[11893]412        <input type="checkbox" name="picture_informations[rating_score]" {if ($display.picture_informations.rating_score)}checked="checked"{/if}>
[5304]413      </label>
414    </li>
415
416    <li>
417      <label>
[6025]418        <span class="property">{'Who can see this photo?'|@translate} ({'available for administrators only'|@translate})</span>
[5304]419        <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}>
420      </label>
421    </li>
422  </ul>
423</fieldset>
[5293]424{/if}
425
[2531]426{if !isset($default)}
427  <p>
[8128]428    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
[2531]429    <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
430  </p>
[3215]431</form>
[2531]432{/if}
Note: See TracBrowser for help on using the repository browser.