Ignore:
Timestamp:
Oct 14, 2013, 6:35:28 PM (11 years ago)
Author:
mistic100
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/admin/template/config.tpl

    r15948 r24889  
    11{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}
    214
    315<div class="titrePage">
     
    3042    </li>
    3143
    32     <li id="notifyAdmin">
     44    <li>
    3345      <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>
    3450
    3551      <label id="email_admin_on_comment_validation">
    3652        <input type="checkbox" name="email_admin_on_comment_validation" {if ($email_admin_on_comment_validation)}checked="checked"{/if}> {'pending validation'|@translate}
    3753      </label>
     54    </li>
     55   
     56    <li>
     57      <strong>{'Guests (not registered) permissions :'|@translate}</strong>
    3858
    3959      <label>
    40         <input type="checkbox" name="email_admin_on_comment" {if ($email_admin_on_comment)}checked="checked"{/if}> {'added'|@translate}
     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}
    4165      </label>
    4266    </li>
Note: See TracChangeset for help on using the changeset viewer.