From d03e85cfb5c684ab865463e19eb7a4254bb9e574 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 31 Jan 2012 15:19:09 +0000 Subject: feature 2559: minor redesign on configuration screens * hide "rate_anonymous" when "rate" is deactivated * hide "email_admin_on_new_user" when "allow_user_registration" is deactivated * move history settings on main tab * turn the 3 lines for history into a single line with 3 checkboxes * for comments, turn the "notify admin" settings into a single line with 4 checkboxes TODO: remove obsolete language keys git-svn-id: http://piwigo.org/svn/trunk@13004 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/configuration.tpl | 292 +++++++++++++++--------- 1 file changed, 183 insertions(+), 109 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index ea4e32fab..f880bea05 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -14,78 +14,106 @@ - -
- - -
{/if} -{if isset($history)} -
- -
{/if} @@ -176,8 +204,8 @@ jQuery(document).ready(function () { @@ -185,71 +213,66 @@ jQuery(document).ready(function () { {footer_script}{literal} @@ -261,12 +284,61 @@ jQuery(document).ready(function(){ jQuery("#comments_param_warp").hide(); } }); + + /* notify on validation checkbox */ + if (jQuery('input[name="comments_validation"]').is(':checked')) { + jQuery('#email_admin_on_comment_validation').show(); + } + else { + jQuery('#email_admin_on_comment_validation').hide(); + } + + jQuery('input[name="comments_validation"]').change(function(){ + if ($(this).is(':checked')) { + jQuery('#email_admin_on_comment_validation').show(); + } + else { + jQuery('#email_admin_on_comment_validation').hide(); + } + }); + + /* notify on edition checkbox */ + if (jQuery('input[name="user_can_edit_comment"]').is(':checked')) { + jQuery('#email_admin_on_comment_edition').show(); + } + else { + jQuery('#email_admin_on_comment_edition').hide(); + } + + jQuery('input[name="user_can_edit_comment"]').change(function(){ + if ($(this).is(':checked')) { + jQuery('#email_admin_on_comment_edition').show(); + } + else { + jQuery('#email_admin_on_comment_edition').hide(); + } + }); + + /* notify on deletion checkbox */ + if (jQuery('input[name="user_can_delete_comment"]').is(':checked')) { + jQuery('#email_admin_on_comment_deletion').show(); + } + else { + jQuery('#email_admin_on_comment_deletion').hide(); + } + + jQuery('input[name="user_can_delete_comment"]').change(function(){ + if ($(this).is(':checked')) { + jQuery('#email_admin_on_comment_deletion').show(); + } + else { + jQuery('#email_admin_on_comment_deletion').hide(); + } + }); }); {/literal}{/footer_script} {/if} - - {if isset($sizes)} {footer_script}{literal} @@ -313,60 +385,56 @@ jQuery(document).ready(function(){ {/if} -{if isset($default)} -{$PROFILE_CONTENT} -{/if} - {if isset($display)}
{'Main Page'|@translate} @@ -377,50 +445,50 @@ jQuery(document).ready(function(){ @@ -431,78 +499,78 @@ jQuery(document).ready(function(){ @@ -516,3 +584,9 @@ jQuery(document).ready(function(){

{/if} + + + +{if isset($default)} +{$PROFILE_CONTENT} +{/if} -- cgit v1.2.3