<#assign idForm = -1> <#assign idQuestionDate = -1> <#assign idStateAfterDeadline = -1> <#assign nbDaysToDate = 0> <#assign nIndex = 1> <#if config?exists> <#assign idForm = config.idForm> <#assign idQuestionDate = config.idQuestionDate> <#assign idStateAfterDeadline = config.idStateAfterDeadline> <#assign nbDaysToDate = config.nbDaysToDate> <@fieldSet legend='#i18n{module.workflow.alertforms.task_alert_config.title}'> <@formGroup labelFor='idForm' labelKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_form}' mandatory=true> <@inputGroup> <@select name='idForm' items=list_forms default_value='${idForm}' /> <@inputGroupItem> <@button type='submit' name='apply' value='apply' buttonIcon='check' title='#i18n{module.workflow.alertforms.task_alert_config.label_apply}' hideTitle=['all'] /> <#if retrieval_types?? && retrieval_types?has_content> <@formGroup labelFor='idRetrievalType' labelKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_retrieval_type}' mandatory=true> <#list retrieval_types as retrieval_type> <@radioButton labelFor='idRetrievalType_${nIndex}' labelKey='${retrieval_type.getTitle( locale )}' orientation='inline' name='idRetrievalType' id='idRetrievalType_${nIndex}' value='${retrieval_type.idType!}' checked=(config?? && retrieval_type.idType = config.idRetrievalType) />   <#assign nIndex=nIndex+1> <#if config?? && config.idRetrievalType = 1 && list_questions_date?? > <@formGroup labelFor='positionEntryFormDate' labelKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_entry_form_date}' helpKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_entry_form_date_comment}' mandatory=true> <@select name='idQuestionDate' items=list_questions_date default_value='${idQuestionDate}' /> <#if list_states?exists> <@formGroup labelFor='idStateAfterDeadline' labelKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_id_state_after_deadline}' helpKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_id_state_after_deadline_comment}' mandatory=true> <@select name='idStateAfterDeadline' items=list_states default_value='${idStateAfterDeadline}' /> <@formGroup labelFor='nbDaysToDate' labelKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_nb_days_to_date}' helpKey='#i18n{module.workflow.alertforms.task_alert_config.label_task_nb_days_to_date_comment}' mandatory=true> <@input type='text' name='nbDaysToDate' maxlength=3 value='${nbDaysToDate}' />