From b09c66fdc3aedc5d09a8b082facbf58f5b5e0478 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 17 Mar 2012 00:47:17 +0000 Subject: feature 2594: redesign on album permission screen. The choice "public/private" is not on the "properties" tab anymore. Simpler ergonomy to select grant users and groups. git-svn-id: http://piwigo.org/svn/trunk@13580 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/cat_perm.tpl | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'admin/themes/default/template/cat_perm.tpl') diff --git a/admin/themes/default/template/cat_perm.tpl b/admin/themes/default/template/cat_perm.tpl index c44d918ae..728669894 100644 --- a/admin/themes/default/template/cat_perm.tpl +++ b/admin/themes/default/template/cat_perm.tpl @@ -1,9 +1,62 @@ +{combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} +{combine_css path="themes/default/js/plugins/chosen.css"} + +{footer_script}{literal} +jQuery(document).ready(function() { + jQuery(".chzn-select").chosen(); + + function checkStatusOptions() { + if (jQuery("input[name=status]:checked").val() == "private") { + jQuery("#privateOptions, #applytoSubAction").show(); + } + else { + jQuery("#privateOptions, #applytoSubAction").hide(); + } + } + + checkStatusOptions(); + jQuery("#selectStatus").change(function() { + checkStatusOptions(); + }); +}); +{/literal}{/footer_script} +

{$CATEGORIES_NAV} › {'Edit album'|@translate} {$TABSHEET_TITLE}

+
+ {'Access type'|@translate} + +

+ +
+ +

+
+ +
+ {'Groups and users'|@translate} + +

+ {'Permission granted for groups'|@translate} +
+ +

+ +

+ {'Permission granted for users'|@translate} +
+ +

+ +{*

{'Groups'|@translate}

@@ -60,6 +113,13 @@
+*} +
+ +

+ + +

-- cgit v1.2.3