{literal} {/literal} {footer_script}{literal} $(document).ready(function() { $("select[name=who]").change(function () { $("[name^=who_]").hide(); $("[name=who_"+$(this).attr("value")+"]").show(); }); function checkWhereOptions() { var recursive = $("input[name=recursive]"); var create = $("input[name=create_subcategories]"); if ($("select[name=category] option:selected").val() == 0) { $(recursive).attr("disabled", true); $(recursive).attr('checked', true); } else { $(recursive).removeAttr("disabled"); } if (!$(recursive).is(':checked')) { $(create).attr('checked', false); $(create).attr("disabled", true); } else { $(create).removeAttr("disabled"); } } checkWhereOptions(); $("select[name=category]").change(function() { checkWhereOptions(); }); $("input[name=recursive]").change(function() { checkWhereOptions(); }); $("#displayForm").click(function() { $("[name=add_permission]").show(); $(this).hide(); return false; }); }); {/literal}{/footer_script}

{'Upload Permissions'|@translate} - {'Community'|@translate}

{if not isset($edit)} {'Add a permission'|@translate} {/if}
{if isset($edit)}{'Edit a permission'|@translate}{else}{'Add a permission'|@translate}{/if}

{'Who?'|@translate}

{'Where?'|@translate}


{'Which level of trust?'|@translate}

{if isset($edit)} {/if}

{'Cancel'|@translate}

{if not empty($permissions)} {foreach from=$permissions item=permission name=permission_loop} {/foreach} {/if}
{'Who?'|@translate} {'Where?'|@translate} {'Options'|@translate} {'Actions'|@translate}
{$permission.WHO} {$permission.WHERE} {$permission.TRUST} {if $permission.RECURSIVE} , {'sub-albums'|@translate} {/if} {if $permission.CREATE_SUBCATEGORIES} , {'sub-albums creation'|@translate} {/if} {'edit'|@translate} {'delete'|@translate}