#include "/admin/plugins/workflow/modules/notifygru/include/commons.html"/>
<@row>
<@columns>
#i18n{module.workflow.notifygru.task_notify_gru_config.title_broadcast_list}
<@button type='submit' title='#i18n{module.workflow.notifygru.task_notify_gru_config.label_button_remove}' hideTitle=['all'] name='apply' id='remove-config-mailinglist' value='RemoveNotificationConfig_broadcast' buttonIcon='trash' color='danger' size='sm' />
@columns>
@row>
<@row>
<@columns sm=8>
<#assign mailingSpecStyle = 'display:block;' />
<#assign mailingSpecChecked = true />
<#assign mailingListStyle = 'display:none;' />
<#assign mailingListChecked = false />
<#if mailing_list?exists>
<#if (config.idMailingListBroadcast > 0) >
<#assign mailingSpecStyle = 'display:none;' />
<#assign mailingSpecChecked = false />
<#assign mailingListStyle = 'display:block;' />
<#assign mailingListChecked = true />
#if>
<@formGroup labelFor='mailing_type' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_type_broadcast}' rows=2>
<@radioButton orientation='inline' name='mailing_type' id='mailing_type_list' value='list' checked=mailingListChecked params='onchange="mailingType(\'list\');"' labelFor='mailing_type_list' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_list_broadcast}' />
<@radioButton orientation='inline' name='mailing_type' id='mailing_type_spec' value='spec' checked=mailingSpecChecked params='onchange="mailingType(\'spec\');"' labelFor='mailing_type_spec' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_spec_broadcast}' />
@formGroup>
<@div id='mailing_list_block' params='style="${mailingListStyle}"'>
<@formGroup labelFor='id_mailing_list' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_list_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_list_comment_broadcast}' mandatory=true rows=2>
<@select name='id_mailing_list_broadcast' items=mailing_list default_value='${config.idMailingListBroadcast!}' />
@formGroup>
@div>
#if>
<@div id='mailing_spec_block' params='style="${mailingSpecStyle}"'>
<#if config?exists && config.emailBroadcast?has_content>
<@formGroup labelFor='mailing_spec' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_spec_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_spec_comment_broadcast}' mandatory=true rows=2>
<@input type='text' name='mailing_spec' value=config.emailBroadcast maxlength=255 />
@formGroup>
<#else>
<@formGroup labelFor='mailing_spec' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_spec_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_mailing_spec_comment_broadcast}' mandatory=true rows=2>
<@input type='text' name='mailing_spec' value='' maxlength=255 />
@formGroup>
#if>
@div>
<@formGroup labelFor='sender_name_broadcast' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_sender_name_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_sender_name_comment_broadcast}' mandatory=true rows=2>
<#if config?exists && config.senderNameBroadcast?has_content>
<#assign inputValue = config.senderNameBroadcast! />
<#else>
<#assign inputValue = '' />
#if>
<@input type='text' name='sender_name_broadcast' value=inputValue maxlength=255 />
@formGroup>
<@formGroup labelFor='subject_broadcast' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_subject_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_subject_comment_broadcast}' mandatory=true rows=2>
<#if config?exists && config.subjectBroadcast?has_content>
<#assign inputValue = config.subjectBroadcast! />
<#else>
<#assign inputValue = '' />
#if>
<@input type='text' name='subject_broadcast' value=inputValue maxlength=255 />
@formGroup>
<@formGroup rows=2>
<@button params='onclick="showhide()"' title='#i18n{module.workflow.notifygru.task_notify_gru_config.label_put_copy_email}' buttonIcon='caret-down' id='iconeCCListe' />
@formGroup>
<@div id='copyccBroadcast'>
<@formGroup labelFor='recipients_cc_broadcast' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_recipients_cc_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_recipients_cc_comment_broadcast}' rows=2>
<#if config?exists && config.recipientsCcBroadcast?has_content>
<#assign inputValue = config.recipientsCcBroadcast />
<#else>
<#assign inputValue = '' />
#if>
<@input type='text' name='recipients_cc_broadcast' id='recipients_cc_broadcast' value=inputValue maxlength=255 />
@formGroup>
<@formGroup labelFor='recipients_cci_broadcast' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_recipients_bcc_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_recipients_bcc_comment_broadcast}' rows=2>
<#if config?exists && config.recipientsCciBroadcast?has_content>
<#assign inputValue = config.recipientsCciBroadcast! />
<#else>
<#assign inputValue = '' />
#if>
<@input type='text' name='recipients_cci_broadcast' id='recipients_cci_broadcast' value=inputValue maxlength=255 />
@formGroup>
@div>
<@formGroup labelFor='message_broadcast' labelKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_message_broadcast}' helpKey='#i18n{module.workflow.notifygru.task_notify_gru_config.label_message_comment_broadcast}' mandatory=true rows=2>
<@input type='textarea' name='message_broadcast' id='message_broadcast' rows=15 cols=70 richtext=true><#if config?exists && config.messageBroadcast?has_content>${config.messageBroadcast!}#if>@input>
@formGroup>
@columns>
<@columns sm=4>
<@marker_descriptions />
@columns>
@row>