From 6ade4bc91b19e2ed9c5c9d1c406744b6da18e91d Mon Sep 17 00:00:00 2001
From: plegall
Date: Sat, 17 Mar 2012 14:07:28 +0000
Subject: feature 2594: l10n on new strings of the "Album Permissions" screen.
Details about "indirect permissions".
git-svn-id: http://piwigo.org/svn/trunk@13593 68402e56-0260-453c-a942-63ccdbb3a9ee
---
admin/themes/default/template/cat_perm.tpl | 32 ++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
(limited to 'admin/themes/default')
diff --git a/admin/themes/default/template/cat_perm.tpl b/admin/themes/default/template/cat_perm.tpl
index 728669894..718c7ba47 100644
--- a/admin/themes/default/template/cat_perm.tpl
+++ b/admin/themes/default/template/cat_perm.tpl
@@ -18,6 +18,20 @@ jQuery(document).ready(function() {
jQuery("#selectStatus").change(function() {
checkStatusOptions();
});
+
+ jQuery("#indirectPermissionsDetailsShow").click(function(){
+ jQuery("#indirectPermissionsDetailsShow").hide();
+ jQuery("#indirectPermissionsDetailsHide").show();
+ jQuery("#indirectPermissionsDetails").show();
+ return false;
+ });
+
+ jQuery("#indirectPermissionsDetailsHide").click(function(){
+ jQuery("#indirectPermissionsDetailsShow").show();
+ jQuery("#indirectPermissionsDetailsHide").hide();
+ jQuery("#indirectPermissionsDetails").hide();
+ return false;
+ });
});
{/literal}{/footer_script}
@@ -41,11 +55,15 @@ jQuery(document).ready(function() {
{'Groups and users'|@translate}
+{if count($groups) > 0}
{'Permission granted for groups'|@translate}
{html_options options=$groups selected=$groups_selected}
+{else}
+ {'There is no group in this gallery.'|@translate} {'Group management'|@translate}
+{/if}
@@ -56,6 +74,20 @@ jQuery(document).ready(function() {
+{if isset($nb_users_granted_indirect)}
+
+ {'%u users have automatic permission because they belong to a granted group.'|@translate|@sprintf:$nb_users_granted_indirect}
+ {'hide details'|@translate}
+ {'show details'|@translate}
+
+
+ {foreach from=$user_granted_indirect_groups item=group_details}
+ {$group_details.group_name} : {$group_details.group_users}
+ {/foreach}
+
+
+{/if}
+
{*
{'Groups'|@translate}
--
cgit v1.2.3