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_modify.tpl | 6 --- admin/themes/default/template/cat_perm.tpl | 60 ++++++++++++++++++++++++++++ admin/themes/default/theme.css | 5 --- 3 files changed, 60 insertions(+), 11 deletions(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/cat_modify.tpl b/admin/themes/default/template/cat_modify.tpl index 31a9e6ef9..47272ec3e 100644 --- a/admin/themes/default/template/cat_modify.tpl +++ b/admin/themes/default/template/cat_modify.tpl @@ -80,12 +80,6 @@

{/if} -

- {'Access type'|@translate} -
- {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS} -

-

{'Lock'|@translate}
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 @@
+*} +
+ +

+ + +

diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index c669d8e21..006a56d8a 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -244,11 +244,6 @@ TABLE.doubleSelect SELECT.categoryList { width: 100%; max-width: 100%; overflow-x: auto; } -FORM#categoryPermissions LI { - display:inline; - white-space: nowrap; -} - .statBar { height: 10px; background-color: #ff7700; -- cgit v1.2.3