#i18n{announce.modify_category.pageTitle}

<@formGroup labelKey='#i18n{announce.category.label}' helpKey='#i18n{announce.category.label}' mandatory=true > <@input name='category_label' type='text' value=category.label maxlength=50 /> <@formGroup labelKey='#i18n{announce.category.sector}' mandatory=true > <@select name='category_sector_id' items=list_sectors default_value=category.idSector?string /> <@formGroup labelKey='#i18n{announce.category.announcesValidation}' mandatory=true > <@select name='category_announces_validation' items=list_announces_validation default_value=category.announcesValidation?string /> <@formGroup labelKey='#i18n{announce.category.mailingList}' helpKey='#i18n{announce.category.mailingList.helper}'> <@select name='mailing_list_id' items=mailing_list_list default_value=category.idMailingList?string /> <@formGroup helpKey='#i18n{announce.category.displayPrice.helper}' > <@checkBox name='display_price' value="true" checked=category.displayPrice labelKey='#i18n{announce.category.displayPrice}' /> <@formGroup helpKey='#i18n{announce.category.priceMandatory.helper}' > <@checkBox name='price_mandatory' value="true" checked=category.priceMandatory labelKey='#i18n{announce.category.priceMandatory}' /> <#if isCaptchaEnabled?? && isCaptchaEnabled> <@formGroup > <@checkBox name='display_captcha' value="true" checked=category.displayCaptcha labelKey='#i18n{announce.category.displayCaptcha}' /> <#if listWorkflows??> <@formGroup labelKey='#i18n{announce.create_category.labelWorkflow}' > <@select name='id_workflow' items=listWorkflows default_value=category.idWorkflow?string />
 #i18n{portal.util.labelCancel}

#i18n{announce.modify_category.defaultEntries}

#i18n{announce.modify_category.entry_list.labelTitle} #i18n{announce.modify_category.entry_list.labelType}
#i18n{announce.modify_category.defaultEntries.entryTitle} #i18n{announce.entryType.text.title}
#i18n{announce.modify_category.defaultEntries.entryDescription} #i18n{announce.entryType.textArea.title}

#i18n{announce.modify_category.entry_list.adminTitle}

<#if entry_type_list?has_content>
<@select name="id_type" items=entry_type_list default_value="-1" params="class=\"form-control input-xs\"" />
<#if entry_group_list?has_content>
<@select name="id_entry_group" items=entry_group_list default_value="" params="class=\"form-control input-xs\"" />
<#list entry_list as entry> <#if entry.entryType.group> <#assign lastGroup = entry> <#if entry.parent?exists> <#else>
#i18n{announce.createEntry.manageField.rowTitle} #i18n{announce.modifyField.manageConditionalQuestion.rowType} #i18n{announce.createEntry.manageField.rowOrder} #i18n{announce.createEntry.manageField.rowActions} 
<#if !entry.entryType.group> <#if entry.entryType.group> ${entry.title} <#elseif entry.parent?exists> <#if entry.entryType.comment> ${entry.comment} <#else> ${entry.title} <#elseif entry.entryType.myLuteceUser> ${entry.title} <#else> <#if entry.entryType.comment> ${entry.comment} <#else> ${entry.title} <#if !entry.entryType.group> ${entry.entryType.title} <#if entry.numberConditionalQuestion!=0> ${entry.numberConditionalQuestion}
<@comboOrders name="order_id_${entry.idEntry}" default_value=entry.position idParent=entry.parent.idEntry />
<@comboOrders name="order_id_${entry.idEntry}" default_value=entry.position idParent=0 />
<#if !entry.entryType.myLuteceUser> <#if entry.parent?exists> <#if !entry.entryType.group && !entry.entryType.myLuteceUser>  
<#macro comboOrders name default_value idParent >