<#setting number_format = "#"/> <#import "macros/group_macros.ftl" as lib>
<#if (quotas.size() > 0)> <#assign count = 0/> <#list quotas as q> <#assign count = count + 1/>
${I18n.getMessage("AdminAttachments.quotaTitle")}
${I18n.getMessage("AdminAttachments.quotaDescription")} ${I18n.getMessage("AdminAttachments.quotaFilesize")}
${I18n.getMessage("AdminAttachments.quotaDescription")} ${I18n.getMessage("AdminAttachments.quotaFilesize")} ${I18n.getMessage("AdminAttachments.quotaDelete")}
 

<#macro quotaCombo n quotaId>
<#assign row = 1/> <#assign counter = 0/> <#list groups as g> <#assign x = selectedList.clear()/> <#if groupQuotas.get(g.id)?exists> <#assign x = selectedList.add(g.id)/> <#if row == 2><#assign row = 1/> <#assign row = row + 1/> <#assign counter = counter + 1/>
${I18n.getMessage("AdminAttachments.groupPermission")}
${I18n.getMessage("AdminAttachments.groupName")} ${I18n.getMessage("AdminAttachments.quotaType")}
<@lib.selectFieldGroups "group_" + counter, groups, 0, false, selectedList/> <@quotaCombo counter, groupQuotas.get(g.id)?default(0)/>