<#include "/admin/util/editor/editor.html" />
#i18n{module.workflow.appointment.task_notify_appointment_config.title} <#if notify_admin> <@formGroup labelFor='id_admin_user' labelKey='#i18n{module.workflow.appointment.task_notify_admin_appointment_config.label_admin_user}' helpKey='#i18n{module.workflow.appointment.task_notify_admin_appointment_config.label_admin_user_comment}'> <#if (config.idAdminUser)??> <#assign default_value = config.idAdminUser?string> <#else> <#assign default_value = ''> <@select items=list_admin_users name='id_admin_user' default_value=default_value /> <#if !notify_admin> <@formGroup labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_send_sms}'> <@checkBox labelFor='send_sms' name='send_sms' id='send_sms' params='onClick="javascript:doSendSmsCheck( );"' value='true' checked=config?exists&&config.isSms />
<@formGroup labelFor='send_ical_notif' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_send_ical_notif}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_send_ical_notif_comment}'> <@checkBox labelFor='send_ical_notif' name='send_ical_notif' id='send_ical_notif' params='onClick="javascript:$(\'#ical\').toggle();"' value='true' checked=config?exists&&config.sendICalNotif />
<@formGroup helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_create_notif_comment}'> <@radioButton orientation='horizontal' labelFor='create_notif' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_create}' name='create_notif' value='true' checked=!(config?exists) || config.createNotif /> <@radioButton orientation='horizontal' labelFor='create_notif' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_remove}' name='create_notif' value='false' checked=config?exists && !(config.createNotif) /> <@formGroup id='location' labelFor='location' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_location}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_location_comment}'> <@input type='text' name='location' value='${(config.location)!}' maxlength=255 />
<@formGroup labelFor='sender_name' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_sender_name}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_sender_name_comment}' mandatory=true> <#if config?exists && config.senderName?has_content><#assign inputValue = config.senderName /><#else><#assign inputValue=default_sender_name /> <@input type='text' name='sender_name' id='' value=inputValue maxlength=255 /> <@formGroup labelFor='sender_email' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_sender_email}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_sender_name_comment}' mandatory=true> <#if config?exists && config.senderEmail?has_content><#assign inputValue = config.senderEmail /><#else><#assign inputValue = default_sender_name /> <@input type='text' name='sender_email' id='' value=inputValue maxlength=255 /> <@formGroup labelFor='recipients_cc' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_recipients_cc}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_recipients_cc_comment}'> <@input type='text' name='recipients_cc' id='' value='${(config.recipientsCc)!}' maxlength=255 /> <@formGroup labelFor='recipients_bcc' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_recipients_bcc}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_recipients_bcc_comment}'> <@input type='text' name='recipients_bcc' id='' value='${(config.recipientsBcc)!}' maxlength=255 /> <@formGroup labelFor='suject' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_subject}' mandatory=true> <@input type='text' name='subject' id='' value='${(config.subject)!}' maxlength=255 /> <@formGroup labelFor='status' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_action}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_action_comment}'> <#if (config.idActionCancel)??> <#assign default_value = config.idActionCancel?string> <#else> <#assign default_value = ''> <@select name='id_action_cancel' items=list_actions default_value=default_value /> <#if notify_admin> <@formGroup labelFor='id_action_validate' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_action_validate}' helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_action_validate_comment}'> <#if (config.idActionValidate)??> <#assign default_value = config.idActionValidate?string> <#else> <#assign default_value = ''> <@select name='id_action_validate' items=list_actions default_value=default_value /> <@formGroup labelFor='message' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_message}' mandatory=true> <@input type='textarea' richtext=notify_admin||!config?exists||!config.isSms id='message' name='message' rows=20 cols=90>${(config.message)!}

#i18n{module.workflow.appointment.task_notify_appointment_config.label_message_comment} :

<@initEditor /> <#if !config?exists || !config.sendICalNotif> <#if !notify_admin>