[15940] | 1 | {combine_css path=$GUESTBOOK_PATH|@cat:'template/style.css'} |
---|
| 2 | |
---|
[24889] | 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 | |
---|
[15940] | 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> |
---|
[15948] | 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> |
---|
[15940] | 39 | <input type="checkbox" name="comments_validation" {if ($comments_validation)}checked="checked"{/if}> |
---|
| 40 | <b>{'Validation'|@translate}</b> |
---|
| 41 | </label> |
---|
| 42 | </li> |
---|
| 43 | |
---|
[24889] | 44 | <li> |
---|
[15940] | 45 | <strong>{'Notify administrators when a comment is'|@translate}</strong> |
---|
| 46 | |
---|
[24889] | 47 | <label> |
---|
| 48 | <input type="checkbox" name="email_admin_on_comment" {if ($email_admin_on_comment)}checked="checked"{/if}> {'added'|@translate} |
---|
| 49 | </label> |
---|
| 50 | |
---|
[15940] | 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> |
---|
[24889] | 54 | </li> |
---|
| 55 | |
---|
| 56 | <li> |
---|
| 57 | <strong>{'Guests (not registered) permissions :'|@translate}</strong> |
---|
[15940] | 58 | |
---|
| 59 | <label> |
---|
[24889] | 60 | <input type="checkbox" name="guest_can_view" {if ($guest_can_view)}checked="checked"{/if}> {'view comments'|@translate} |
---|
[15940] | 61 | </label> |
---|
[24889] | 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> |
---|
[15940] | 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> |
---|