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

Last change on this file since 24889 was 24889, checked in by mistic100, 11 years ago

use my plugin architecture, add options to hide the page for guests, fix admin links in mails

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