{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).prop("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).prop("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}
{$group.NAME}{$group.IS_DEFAULT} {if $group.MEMBERS>0}{$group.MEMBERS}
{$group.L_MEMBERS}{else}{$group.MEMBERS}{/if}
{'Action'|@translate}
{'No group selected, no action possible.'|@translate}