<#include "managedemand_tabs.html" /> <#macro getStatusLabel id > <#switch id> <#case -1 >UNDEFINED<#break> <#case 10>CANCELED<#break> <#case 11>ONGOING<#break> <#case 12>TOPAY<#break> <#case 13>TOCOMPLETE<#break> <#case 14>PAID<#break> <#case 15>CLOSED<#break> <@tabs> <@notificationstore_tabList current_tab="demand" /> <@tabContent> <@tabPanel id='demand' active=true> <@tform class='form-horizontal' method="post" action="jsp/admin/plugins/notificationstore/ManageDemand.jsp" name="manage_demand" type='inline'> <@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='customer_id' tabIndex='3' labelKey='#i18n{notificationstore.manage_demand.customer_id.label}' formStyle='inline'> <@input type='text' id="customer_id" name="customer_id" value=customer_id!'' /> <@formGroup labelFor='start_date' tabIndex='4' 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='5' 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='6' title='#i18n{portal.util.labelSearch}' /> <@messages infos=infos /> <@paginationAdmin paginator=paginator combo=1 />
<@table> #i18n{notificationstore.manage_demand.columnDemandDate} #i18n{notificationstore.manage_demand.columnDemandId} #i18n{notificationstore.manage_demand.columnTypeId} #i18n{notificationstore.manage_demand.columnStatusId} #i18n{notificationstore.manage_demand.columnReference} #i18n{notificationstore.manage_demand.columnMetaData} #i18n{notificationstore.manage_demand.columnCustomerId} #i18n{notificationstore.manage_demand.action} <@tableHeadBodySeparator /> <#list demand_list as demand > C: ${demand.creationDate?number_to_datetime!''}
<#if demand.modifyDate ?? && (demand.creationDate != demand.modifyDate) > M: ${demand.modifyDate?number_to_datetime!''} ${demand.id!''} ${demand.typeId!''} <#if demand.subtypeId?? >
#i18n{notificationstore.manage_demand.columnsubTypeId} : ${demand.subtypeId!''} ${demand.statusId!''}
<@getStatusLabel id=demand.statusId /> ${demand.reference!''} <#if demand.metaData?? > <#list demand.metaData?keys as key > ${key} : ${demand.metaData[key]!}
${demand.customer.customerId!''} <@tform type='in-line' method="post" action="jsp/admin/plugins/notificationstore/ManageNotification.jsp" > <@formGroup> <@button type='submit' title='#i18n{notificationstore.manage_notification.pageTitle}' buttonIcon='envelope' /> <@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 />