source: extensions/GuestBook/admin/template/config.tpl @ 26065

Last change on this file since 26065 was 26065, checked in by mistic100, 7 years ago

update for Piwigo 2.6 + code clean

File size: 2.2 KB
Line 
1{combine_css path=$GUESTBOOK_PATH|cat:'template/style.css'}
2
3{footer_script}
4$('input[name="comments_validation"]').on('change', function() {
5    $('#email_admin_on_comment_validation').toggle($(this).is(':checked'));
6})
7.trigger('change');
8
9$('input[name="guest_can_view"]').on('change', function() {
10    $('#guest_can_add').toggle($(this).is(':checked'));
11})
12.trigger('change');
13{/footer_script}
14
15
16<div class="titrePage">
17  <h2>GuestBook</h2>
18</div>
19
20<form method="post" action="" class="properties">
21<fieldset id="commentsConf">
22  <legend></legend>
23  <ul>
24    <li>
25      <label>
26        <b>{'Number of comments per page'|translate}</b>
27        <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$nb_comment_page}">
28      </label>
29    </li>
30
31    <li>
32      <label>
33        <input type="checkbox" name="activate_rating" {if ($activate_rating)}checked="checked"{/if}>
34        <b>{'Activate rating'|translate}</b>
35      </label>
36    </li>
37
38    <li>
39      <label>
40        <input type="checkbox" name="comments_validation" {if ($comments_validation)}checked="checked"{/if}>
41        <b>{'Validation'|translate}</b>
42      </label>
43    </li>
44
45    <li>
46      <strong>{'Notify administrators when a comment is'|translate}</strong>
47
48      <label>
49        <input type="checkbox" name="email_admin_on_comment" {if ($email_admin_on_comment)}checked="checked"{/if}> {'added'|translate}
50      </label>
51
52      <label id="email_admin_on_comment_validation">
53        <input type="checkbox" name="email_admin_on_comment_validation" {if ($email_admin_on_comment_validation)}checked="checked"{/if}> {'pending validation'|translate}
54      </label>
55    </li>
56   
57    <li>
58      <strong>{'Guests (not registered) permissions :'|translate}</strong>
59
60      <label>
61        <input type="checkbox" name="guest_can_view" {if ($guest_can_view)}checked="checked"{/if}> {'view comments'|translate}
62      </label>
63
64      <label id="guest_can_add">
65        <input type="checkbox" name="guest_can_add" {if ($guest_can_add)}checked="checked"{/if}> {'add comment'|translate}
66      </label>
67    </li>
68  </ul>
69</fieldset>
70
71  <p class="formButtons">
72                <input type="submit" name="submit" value="{'Save Settings'|translate}">
73        </p>
74</form>
Note: See TracBrowser for help on using the repository browser.