<#macro comboOrder max_order current_order> <@row> <@columns> <@box> <@boxHeader title='#i18n{crm.modify_demand_type.pageTitle}' /> <@boxBody> <@tform method='post' name='modify_demand_type' id='modify_demand_type' action='jsp/admin/plugins/crm/DoModifyDemandType.jsp'> <@input type='hidden' name='id_demand_type' value='${demand_type.idDemandType!}' /> <@formGroup labelFor='demand_type_label' labelKey='#i18n{crm.modify_demand_type.labelLabel}' mandatory=true> <@input type='text' name='demand_type_label' maxlength=255 value='${demand_type.label!}' /> <@formGroup labelFor='url_resource' labelKey='#i18n{crm.modify_demand_type.labelUrlResource}' mandatory=true> <@input type='text' name='url_resource' maxlength=255 value='${demand_type.urlResource!}' /> <@formGroup labelFor='url_info' labelKey='#i18n{crm.modify_demand_type.labelUrlInfo}' > <@input type='text' name='url_info' maxlength=255 value='${demand_type.urlInfo!}' /> <@formGroup labelFor='url_contact' labelKey='#i18n{crm.modify_demand_type.labelUrlContact}' > <@input type='text' name='url_contact' maxlength=255 value='${demand_type.urlContact!}' /> <@formGroup labelFor='order' labelKey='#i18n{crm.modify_demand_type.labelOrder}' > <@comboOrder max_order=max_order current_order=demand_type.order /> <@formGroup labelFor='category_id_category' labelKey='#i18n{crm.modify_demand_type.labelCategory}' > <@select name="category_id_category" default_value=demand_type.idCategory?string items=categories_list /> <@formGroup labelFor='date_begin' labelKey='#i18n{crm.manage_demand_types.columnDateBegin}'> <@inputGroup> <#assign dtBegin><#if demand_type.dateBegin??>${demand_type.dateBegin?date} <@input type='date' name='date_begin' id='date_begin' value=dtBegin format='d/m/Y' /> <@inputGroupItem type='text'> <@icon style='calendar' /> <@formGroup labelFor='date_end' labelKey='#i18n{crm.manage_demand_types.columnDateEnd}'> <@inputGroup> <#assign dtEnd><#if demand_type.dateEnd??>${demand_type.dateEnd?date} <@input type='date' name='date_end' id='date_end' value=dtEnd format='d/m/Y' /> <@inputGroupItem type='text'> <@icon style='calendar' /> <@formGroup labelFor='workgroup_key' labelKey='#i18n{crm.modify_demand_type.labelWorkgroup}' helpKey='#i18n{crm.modify_demand_type.labelWorkgroupComment}'> <@select name='workgroup_key' default_value=demand_type.workgroup?string items=user_workgroup_list /> <#if role_list??> <@formGroup labelFor='role_key' labelKey='#i18n{crm.modify_demand_type.labelRole}' helpKey='#i18n{crm.modify_demand_type.labelRoleComment}'> <@select name='role_key' default_value=demand_type.role?string items=role_list /> <@formGroup labelFor='target' labelKey='#i18n{crm.modify_demand_type.labelTarget}' helpKey='#i18n{crm.modify_demand_type.labelTargetComment}'> <@select name='target' default_value=demand_type.target.id?string items=targets_list /> <@formGroup labelFor='url_delete' labelKey='#i18n{crm.modify_demand_type.labelUrlDelete}' helpKey='#i18n{crm.modify_demand_type.labelUrlDeleteComment}'> <@inputGroup> <@input type='text' name='url_delete' id='url_delete' maxlength=255 value='${demand_type.urlDelete!}' /> <@inputGroupItem type='text'> <@icon style='link' /> <@formGroup labelKey=' '> <#assign isChecked><#if demand_type.includeIdCrmUser>true<#else>false <@checkBox orientation='switch' name='include_id_crm_user' labelKey='#i18n{crm.modify_demand_type.labelIncludeIdCrmUser}' checked=isChecked?boolean params='#i18n{crm.modify_demand_type.labelIncludeIdCrmUserComment}' /> <#assign isChecked><#if demand_type.needAuthentication>true<#else>false <@checkBox orientation='switch' name='need_authentication' labelKey='#i18n{crm.modify_demand_type.labelNeedAuthentication}' checked=isChecked?boolean params='#i18n{crm.modify_demand_type.labelNeedAuthenticationComment}' /> <#assign isChecked><#if demand_type.needValidation>true<#else>false <@checkBox orientation='switch' name='need_validation' labelKey='#i18n{crm.modify_demand_type.labelNeedValidation}' checked=isChecked?boolean params='#i18n{crm.modify_demand_type.labelNeedValidationComment}' /> <@formGroup> <@button type='submit' name='#i18n{crm.modify_demand_type.buttonModify}' title='#i18n{crm.modify_demand_type.buttonModify}' buttonIcon='check' /> <@aButton href='jsp/admin/plugins/crm/ManageDemandTypes.jsp' title='#i18n{crm.modify_category.buttonCancel}' buttonIcon='close' color='default' />