{footer_script} {literal} $(document).ready(function() { $(".grp_action").hide(); $("input.group_selection").click(function() { var nbSelected = 0; nbSelected = $("input.group_selection").filter(':checked').length; if (nbSelected == 0) { $("#permitAction").hide(); $("#forbidAction").show(); } else { $("#permitAction").show(); $("#forbidAction").hide(); } $("p[group_id="+$(this).attr("value")+"]").each(function () { $(this).toggle(); }); if (nbSelected<2) { $("#two_to_select").show(); $("#two_atleast").hide(); } else { $("#two_to_select").hide(); $("#two_atleast").show(); } }); $("[id^=action_]").hide(); $("select[name=selectAction]").change(function () { $("[id^=action_]").hide(); $("#action_"+$(this).attr("value")).show(); if ($(this).val() != -1) { $("#applyActionBlock").show(); } else { $("#applyActionBlock").hide(); } }); }); {/literal} {/footer_script}

{'Group management'|@translate}

{'Add group'|@translate}
{if not empty($groups)} {foreach from=$groups item=group name=group_loop} {/foreach} {/if}
{'Group name'|@translate} {'Members'|@translate} {'Actions'|@translate}
{$group.NAME}{$group.IS_DEFAULT} {$group.MEMBERS} {'Permissions'|@translate} {'Delete'|@translate} {'Toggle \'default group\' property'|@translate}
{'Action'|@translate}
{'No group selected, no action possible.'|@translate}