#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>
${notification.demand.id!''}
type: ${notification.demand.typeId!''}
<#if notification.demand.customer?? && notification.demand.customer.connectionId?? >
connection_id:
${notification.demand.customer.connectionId!'?'}
#if>
<#if notification.demand.customer ?? && notification.demand.customer.customerId?? >
customer_id:
${notification.demand.customer.customerId!'?'}
#if>
${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>
<#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>
<#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>
<#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>
<#if notification.broadcastEmail ?? >
<#list notification.broadcastEmail as broadcastEmailItem >
Sender name : ${broadcastEmailItem.senderName!''}
Sernder mail : ${broadcastEmailItem.senderEmail!''}
Recipient : <#list broadcastEmailItem.recipient as item>${item.address}, #list>
Cc : <#list broadcastEmailItem.cc as item>${item.address}, #list>
Bcc : <#list broadcastEmailItem.bcc as item>${item.address}, #list>
Subject : ${broadcastEmailItem.subject!''}
<@notificationMessage id='notif-msg-broadcast-${notification_index}-${broadcastEmailItem_index}' label='#i18n{notificationstore.manage_notifification.has_broadcast_email}' content=broadcastEmailItem.message!'' />
#list>
<#else>
-
#if>
<@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' />
@formGroup>
@tform>
<@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' />
@formGroup>
@tform>
#list>
@table>
<@paginationAdmin paginator=paginator />
@tabPanel>
@tabContent>
@tabs>