#i18n{announce.duplicate_category.pageTitle}

<@fieldInputText i18nLabelKey='announce.category.label' inputName='category_label' mandatory=true value='' maxlength=255 i18nHelpBlockKey='' /> <@fieldInputCombo items=list_sectors i18nLabelKey='announce.category.sector' inputName='category_sector_id' mandatory=true value=category.idSector?string /> <@fieldInputCombo items=list_announces_validation i18nLabelKey='announce.category.announcesValidation' inputName='category_announces_validation' mandatory=true value=category.announcesValidation?string i18nHelpBlockKey='announce.globalParameterHelp' /> <@fieldInputCombo items=mailing_list_list i18nLabelKey='announce.category.mailingList' inputName='mailing_list_id' value=category.idMailingList?string i18nHelpBlockKey='announce.category.mailingList.helper' /> <@fieldInputCheckBox i18nLabelKey='announce.category.displayPrice' inputName='display_price' value="true" checked=category.displayPrice i18nHelpBlockKey='announce.category.displayPrice.helper' /> <@fieldInputCheckBox i18nLabelKey='announce.category.priceMandatory' inputName='price_mandatory' value="true" checked=category.priceMandatory i18nHelpBlockKey='announce.category.priceMandatory.helper' /> <#if isCaptchaEnabled?? && isCaptchaEnabled> <@fieldInputCheckBox i18nLabelKey='announce.category.displayCaptcha' inputName='display_captcha' value="true" checked=category.displayCaptcha /> <#if listWorkflows??> <@fieldInputCombo items=listWorkflows i18nLabelKey='announce.create_category.labelWorkflow' value=category.idWorkflow?string inputName="id_workflow" />
 #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>
<@comboWithParams name="id_type" default_value="-1" additionalParameters="class=\"form-control input-xs\"" items=entry_type_list />
<#if entry_group_list?has_content>
<@comboWithParams name="id_entry_group" default_value="" additionalParameters="class=\"form-control input-xs\"" items=entry_group_list />
<#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 >