<#include "/admin/plugins/workflow/modules/appointment/include/task_notify_appointment_commons.html"/> <#include "/admin/util/editor/editor.html" /> <#assign sms = !notify_admin && config?exists && config.isSms /> <#assign ical = config?exists && config.sendICalNotif /> <@row> <@columns sm=8> <#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 /> <#else> <@formGroup> <@checkBox orientation='switch' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_send_sms}' name='send_sms' id='send_sms' value='true' checked=sms /> <@div id='ical-block' params=sms?then('hidden', '')> <@formGroup helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_send_ical_notif_comment}'> <@checkBox orientation='switch' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_send_ical_notif}' name='send_ical_notif' id='send_ical_notif' value='true' checked=ical /> <@div id='ical' params=ical?then('', 'hidden')> <@formGroup helpKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_create_notif_comment}'> <@radioButton orientation='horizontal' id='create_notif_true' labelFor='create_notif_true' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_create}' name='create_notif' value='true' checked=!(config?exists) || config.createNotif /> <@radioButton orientation='horizontal' id='create_notif_false' labelFor='create_notif_false' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_remove}' name='create_notif' value='false' checked=config?exists && !(config.createNotif) /> <@formGroup 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' id='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='sender_name' 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_email_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='sender_email' 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='recipients_cc' 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='recipients_bcc' value='${(config.recipientsBcc)!}' maxlength=255 /> <@formGroup labelFor='subject' labelKey='#i18n{module.workflow.appointment.task_notify_appointment_config.label_subject}' mandatory=true> <@input type='text' name='subject' id='subject' value='${(config.subject)!}' maxlength=255 /> <@formGroup labelFor='id_action_cancel' 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 name='message' id='message' type='textarea' richtext=!sms rows=15>${(config.message)!} <@columns sm=4> <@marker_descriptions /> <#if !sms><@initEditor />