<#-- Get the demand_type from a given id demand type --> <#function getDemandType demand_types_list id_demand_type> <#if demand_types_list?? && demand_types_list?has_content> <#list demand_types_list as demand_type> <#if demand_type.idDemandType = id_demand_type> <#return demand_type> <#function getMessageStatus message> <#if message.idStatus?has_content> <#if message.idStatus=="1"> <#return "En cours"> <#elseif message.idStatus=="2"> <#return "Clos"> <#else> <#return "En attente de précision"> <#-- 1 - En cours 2 - Clos 3 - En attente de prĂ©cision --> <#macro tabDemands listDemand displayArchiveAction="true"> <#assign noDemand = false /> <#list demands_list as demandGru> <#if demandGru.type=="crm_demand"> <#if getDemandType( demand_types_list, demandGru.demand.idDemandType )?has_content> <#assign demand_type = getDemandType( demand_types_list, demandGru.demand.idDemandType )> <#if demand_type??> <#else> <#--MESSAGE PARIS CONNECT-->
<#if ( demandGru.demand.getNumberNotifications( ) > 0 )> <#if ( demandGru.demand.getNumberUnreadNotifications( ) > 0 )>
${demandGru.demand.dateModification?date?string["dd.MM.yyyy HH:mm"]}
<#if ( demandGru.demand.getNumberUnreadNotifications( ) > 0 )>

${demand_type.label!}

<#else>
${demand_type.label!}
${demandGru.demand.statusText}
${demandGru.demand.dateModification?date?string["dd.MM.yyyy HH:mm"]}
${demandGru.demand.subject!}