From 9159bdfd067b829a4445bec781fdefc506fab3b1 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 11 Nov 2013 11:49:27 +0000 Subject: feature 2890: small changes to the new design of group manager. Tab (with icon), javascript open for "add group" form, use a "link style" for "Permissions" on each album, add icon for "Permissions" link, use same colors for "selected" items as for photos batch manager or comments manager, replace "-" by "·" and make it less visible (softer color) for user separator. git-svn-id: http://piwigo.org/svn/trunk@25449 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/group_list.tpl | 41 ++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/group_list.tpl b/admin/themes/default/template/group_list.tpl index 1c1d20c9e..726cb2c33 100644 --- a/admin/themes/default/template/group_list.tpl +++ b/admin/themes/default/template/group_list.tpl @@ -1,6 +1,20 @@ {footer_script} {literal} $(document).ready(function() { + /** + * Add group + */ + jQuery("#addGroup").click(function() { + jQuery("#addGroupForm").toggle(); + jQuery("input[name=groupname]").focus(); + return false; + }); + + jQuery("#addGroupClose").click(function() { + jQuery("#addGroupForm").hide(); + return false; + }); + $('.groups input').change(function () { $(this).parent('p').toggleClass('group_select'); }); $(".grp_action").hide(); $("input.group_selection").click(function() { @@ -51,18 +65,29 @@ $(document).ready(function() {

{'Group management'|@translate}

-
+

+ {'Add group'|translate} +

+ +
{'Add group'|@translate} - - - - - - + +

+ {'Group name'|translate}
+ +

+ +

+ + {'Cancel'|@translate} +

+ +
+
@@ -72,7 +97,7 @@ $(document).ready(function() {
  • {if $group.MEMBERS>0}{$group.MEMBERS}
    {$group.L_MEMBERS}{else}{$group.MEMBERS}{/if}

    - {'Manage Permissions'|@translate} + {'Permissions'|translate}
  • {/foreach} {/if} -- cgit v1.2.3