<#include "/admin/util/editor/editor.html" /> <#assign sender_name = default_sender_name> <#assign subject = ""> <#assign message = ""> <#assign position_entry_directory_id_demand = -1> <#assign position_entry_directory_user_guid = -1> <#assign send_notification = true> <#assign id_directory = -1> <#assign status_text = ""> <#if config?exists> <#assign sender_name = config.senderName> <#assign subject = config.subject> <#assign message = config.message> <#assign position_entry_directory_id_demand = config.positionEntryDirectoryIdDemand> <#assign position_entry_directory_user_guid = config.positionEntryDirectoryUserGuid> <#assign id_directory = config.idDirectory> <#assign status_text = config.statusText> <#assign send_notification = config.sendNotification>

#i18n{module.workflow.notifycrm.task_notify_crm_config.title}


<@combo name="id_directory" items=list_directories default_value=id_directory />

<#if list_entries_id_demand?exists>

<@combo name="position_entry_directory_id_demand" items=list_entries_id_demand default_value=position_entry_directory_id_demand /> 
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_task_entry_directory_id_demand_comment}

<#if list_entries_user_guid?exists && is_user_attribute_ws_active>

<@combo name="position_entry_directory_user_guid" items=list_entries_user_guid default_value=position_entry_directory_user_guid /> 
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_task_entry_directory_user_guid_comment}

checked="checked" />
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_send_notification_comment}


<#if send_notification>


#i18n{module.workflow.notifycrm.task_notify_crm_config.label_sender_name_comment}


#i18n{module.workflow.notifycrm.task_notify_crm_config.label_subject_comment}


#i18n{module.workflow.notifycrm.task_notify_crm_config.label_message_comment}


<#if config?exists && config.idDirectory!=-1>
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_directory_comment}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_directory} #i18n{module.workflow.notifycrm.task_notify_crm_config.label_freemarker}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_status} ${status}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_directory_title} ${directory_title}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_directory_description} ${directory_description}

<#if is_user_attribute_ws_active>
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_user_attribute_comment}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_user_attribute} #i18n{module.workflow.notifycrm.task_notify_crm_config.label_freemarker}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_first_name} ${first_name}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_last_name} ${last_name}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_email} ${email}
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_phone_number} ${phone_number}

<#if tasks_list?exists && tasks_list?has_content>
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_tasks_list_comment} <#list tasks_list as task>
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_task_title} #i18n{module.workflow.notifycrm.task_notify_crm_config.label_task_type} #i18n{module.workflow.notifycrm.task_notify_crm_config.label_freemarker}
${task.getTitle( plugin_workflow, locale )} ${task.taskType.title} ${task_${task.id}}

#i18n{module.workflow.notifycrm.task_notify_crm_config.label_entry_directory_comment} <#list list_entries_freemarker as entry>
#i18n{module.workflow.notifycrm.task_notify_crm_config.label_entry} #i18n{module.workflow.notifycrm.task_notify_crm_config.label_freemarker}
${entry.title} ${position_${entry.position}}

<@initEditor />