{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(speed) { if ($("#ecard_granted_groups_users").prop('checked') == true || $("#ecard_denied_groups_users").prop('checked') == true) { jQuery("#ecard_authorized_groups_users_options").show(speed); } else { jQuery("#ecard_authorized_groups_users_options").hide(speed); } } function checkGrantedDenied() { if ($("#ecard_granted_groups_users").prop('checked') == true) { $("#nb_users_selected_indirect_granted").css("display", "inline"); $("#nb_users_selected_indirect_denied").css("display", "none"); } else if ($("#ecard_denied_groups_users").prop('checked') == true) { $("#nb_users_selected_indirect_denied").css("display", "inline"); $("#nb_users_selected_indirect_granted").css("display", "none"); } } checkGrantedDenied(); checkStatusOptions(); jQuery("#ecard_authorized_groups_users").change(function() { checkGrantedDenied(); checkStatusOptions("fast"); }); 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} {footer_script} {literal} $(document).ready(function(){ if ($("#ecard_selected_cats").prop('checked') == true) { $("#ecard_selected_cats_options").css("display","block"); } else { $("#ecard_selected_cats_options").css("display","none"); } if ($("#ecard_user_cats").prop('checked') == true) { $("#ecard_user_cats_options").css("display","block"); } else { $("#ecard_user_cats_options").css("display","none"); } $("#ECardAdminPermissions").click(function(){ if ($("#ecard_selected_cats").prop('checked') == true) { $("#ecard_selected_cats_options").show("fast"); } else { $("#ecard_selected_cats_options").hide("fast"); } if ($("#ecard_user_cats").prop('checked') == true) { $("#ecard_user_cats_options").show("fast"); } else { $("#ecard_user_cats_options").hide("fast"); } }); }); {/literal} {/footer_script}

{'piwecard_plugin'|@translate}

{'piwecard_permissions_cat'|@translate}
{$DOUBLE_SELECT}
{'piwecard_permissions_groups_users'|@translate}
{'Groups and users'|@translate}
{if count($groups) > 0}
{'Groups'|@translate}
{else} {'There is no group in this gallery.'|@translate} {'Group management'|@translate} {/if}
{'Users'|@translate}
{if isset($nb_users_selected_indirect)}
{'%u users have automatic permission because they belong to a granted group.'|@translate|@sprintf:$nb_users_selected_indirect} {'piwecard_authorized_groups_users_denied'|@translate|@sprintf:$nb_users_selected_indirect} {'show details'|@translate}
{/if}