<#include "managedemand_tabs.html" /> <#-- Displays the message body of a notification behind a button instead of inlining it. The content is rendered in a sandboxed iframe inside a modal, so that complex (or broken) HTML coming from a notification cannot leak into the admin layout. id : unique id of the modal label : channel label, used as modal title and iframe title content : raw message body (may be HTML) --> <#macro notificationMessage id label content> <#local strMessage = content!'' /> <#if strMessage?trim?length gt 0> #i18n{notificationstore.manage_notifification.viewContent} <@modal id='${id}'> <@modalBody> <#else> #i18n{notificationstore.manage_notifification.noContent} <@tabs> <@notificationstore_tabList current_tab="notification" /> <@tabContent> <@tabPanel id='notification' active=true> <@tform class='form-horizontal' type='inline' method="post" action="jsp/admin/plugins/notificationstore/ManageNotification.jsp" name="manage_notification"> <@formGroup labelFor='demand_id' tabIndex='1' labelKey='#i18n{notificationstore.manage_demand.demand_id.label}' formStyle='inline'> <@input type='text' id="demand_id" name="demand_id" value=demand_id!'' /> <@formGroup labelFor='demand_type_id' tabIndex='2' labelKey='#i18n{notificationstore.manage_demand.demand_type_id.label}' formStyle='inline' > <@select name="demand_type_id" id="demand_type_id" items=demand_type_id_list![] default_value=demand_type_id!'' /> <@formGroup labelFor='start_date' tabIndex='3' labelKey='#i18n{notificationstore.manage_demand.start_date.label}' formStyle='inline'> <#if !start_date??><#assign start_date = .now /> <#assign start_date_value = start_date?string["dd/MM/yyyy"] /> <@input type='date' id="start_date" name="start_date" language=.lang value=start_date_value /> <@formGroup labelFor='end_date' tabIndex='4' labelKey='#i18n{notificationstore.manage_demand.end_date.label}' formStyle='inline'> <#if end_date??><#assign end_date_value = end_date?string["dd/MM/yyyy"] /> <@input type='date' id="end_date" name="end_date" language=.lang value=end_date_value!'' /> <@formGroup formStyle='inline'> <@button type='submit' tabIndex='5' title='#i18n{portal.util.labelSearch}' /> <@messages infos=infos /> <@paginationAdmin paginator=paginator combo=1 />
<@table> #i18n{notificationstore.manage_demand.columnDemandId} #i18n{notificationstore.manage_notifification.date} #i18n{notificationstore.manage_notifification.has_backoffice} #i18n{notificationstore.manage_notifification.has_sms} #i18n{notificationstore.manage_notifification.has_customer_email} #i18n{notificationstore.manage_notifification.has_mydashboard} #i18n{notificationstore.manage_notifification.has_broadcast_email} #i18n{notificationstore.manage_demand.action} <@tableHeadBodySeparator /> <#list notification_list as notification > ${notification.demand.id!''}

type: ${notification.demand.typeId!''}

<#if notification.demand.customer?? && notification.demand.customer.connectionId?? > connection_id:
${notification.demand.customer.connectionId!'?'}
<#if notification.demand.customer ?? && notification.demand.customer.customerId?? > customer_id:
${notification.demand.customer.customerId!'?'}
${notification.date?number_to_datetime!''} <#if notification.backofficeNotification ?? > Status : ${notification.backofficeNotification.statusText!''}
<@notificationMessage id='notif-msg-bo-${notification_index}' label='#i18n{notificationstore.manage_notifification.has_backoffice}' content=notification.backofficeNotification.message!'' /> <#else> - <#if notification.SMSNotification ?? > Sender : ${notification.SMSNotification.sender!''}
Phone number : ${notification.SMSNotification.phoneNumber!''}
<@notificationMessage id='notif-msg-sms-${notification_index}' label='#i18n{notificationstore.manage_notifification.has_sms}' content=notification.SMSNotification.message!'' /> <#else> - <#if notification.emailNotification ?? > Sender name : ${notification.emailNotification.senderName!''}
Sernder mail : ${notification.emailNotification.senderEmail!''}
Recipient : ${notification.emailNotification.recipient!''}
Cc : ${notification.emailNotification.cc!''}
Bcc : ${notification.emailNotification.bcc!''}
Subject : ${notification.emailNotification.subject!''}
<@notificationMessage id='notif-msg-mail-${notification_index}' label='#i18n{notificationstore.manage_notifification.has_customer_email}' content=notification.emailNotification.message!'' /> <#else> - <#if notification.myDashboardNotification ?? > Status : ${notification.myDashboardNotification.statusText!''}
Subject : ${notification.myDashboardNotification.subject!''}
Sender name : ${notification.myDashboardNotification.senderName!''}
data : ${notification.myDashboardNotification.data!''}
<@notificationMessage id='notif-msg-dashboard-${notification_index}' label='#i18n{notificationstore.manage_notifification.has_mydashboard}' content=notification.myDashboardNotification.message!'' /> <#else> - <#if notification.broadcastEmail ?? > <#list notification.broadcastEmail as broadcastEmailItem > Sender name : ${broadcastEmailItem.senderName!''}
Sernder mail : ${broadcastEmailItem.senderEmail!''}
Recipient : <#list broadcastEmailItem.recipient as item>${item.address},
Cc : <#list broadcastEmailItem.cc as item>${item.address},
Bcc : <#list broadcastEmailItem.bcc as item>${item.address},
Subject : ${broadcastEmailItem.subject!''}
<@notificationMessage id='notif-msg-broadcast-${notification_index}-${broadcastEmailItem_index}' label='#i18n{notificationstore.manage_notifification.has_broadcast_email}' content=broadcastEmailItem.message!'' />

<#else> - <@tform type='in-line' method="post" action="jsp/admin/plugins/notificationstore/ManageDemand.jsp" > <@formGroup> <@button type='submit' title='#i18n{notificationstore.manage_demand.pageTitle}' buttonIcon='question' /> <@tform type='in-line' method="post" action="jsp/admin/plugins/notificationstore/ManageNotificationEvent.jsp" > <@formGroup> <@button type='submit' title='#i18n{notificationstore.manage_event.pageTitle}' buttonIcon='flag' /> <@paginationAdmin paginator=paginator />