<#list listDays as day>
<@table>
<@tableHead>
<@tr>
<@th>
#i18n{${list_days_of_week[day_index]}}
${day.date?date}
@th>
@tr>
@tableHead>
<@tableBody>
<#assign currentTime = startingTime />
<#assign currentMinute = startingMinute />
<#assign currentHour = startingHour />
<#if day.listAppointmentResourceDTO?has_content>
<#list day.listAppointmentResourceDTO as appointment>
<#assign nbOccur = ( ( ( appointment.startingHour * 60 + appointment.startingMinute ) - currentTime ) / duration)?round />
<#if nbOccur > 0>
<#list 1..nbOccur as i>
<@updateCurrentTimeHourAndMinute durationApp=duration />
#list>
#if>
<@tr>
<@updateCurrentTimeHourAndMinute durationApp=appointment.duration />
<@td class="appointment-slot-avaiable" title="">
@td>
@tr>
#list>
<#else>
<@tr>
<@td class="appointment-slot-closed appointment-row1">
#i18n{module.appointment.resource.labelNoAppointment}
@td>
@tr>
#if>
@tableBody>
@table>
#list>
<@table>
<@tr>
<@td>
<@table>
<@tr>
<@td class="appointment-row1"> @td>
@tr>
<#assign nbOccur = ( ( endingTime - startingTime ) / duration)?round />
<#assign currentTime = startingTime />
<#assign currentMinute = startingMinute />
<#assign currentHour = startingHour />
<#list 1..nbOccur as i>
<@tr>
<@td class="appointment-row1">
<#if currentHour < 10>0#if>${currentHour}h<#if currentMinute < 10>0#if>${currentMinute}
<@updateCurrentTimeHourAndMinute durationApp=duration />
@td>
@tr>
#list>
@table>
@td>
<#list listDays as day>
<@td>
<@table class="table appointment-inner-table">
<@tableHead>
<@tr>
<@th>
#i18n{${list_days_of_week[day_index]}}
${day.date?date}
@th>
@tr>
@tableHead>
<@tableBody>
<#assign currentTime = startingTime />
<#assign currentMinute = startingMinute />
<#assign currentHour = startingHour />
<#list day.listAppointmentResourceDTO as appointment>
<#assign nbOccur = ( ( ( appointment.startingHour * 60 + appointment.startingMinute ) - currentTime ) / duration)?round />
<#if nbOccur > 0>
<#list 1..nbOccur as i>
<@addEmptyLine durationApp=duration />
#list>
#if>
<@tr>
<#assign rowspan=((appointment.duration)/duration)?round>
<@updateCurrentTimeHourAndMinute durationApp=appointment.duration />
<@td class="appointment-slot-avaiable appointment-row${rowspan} appointment-tooltip" title="">
<@getCellTitle startingHour=appointment.startingHour startingMinute=appointment.startingMinute endingHour=appointment.endingHour endingMinute=appointment.endingMinute appointmentDescription=appointment.appointmentDescription />
@td>
@tr>
#list>
<#assign maxTime = endingTime />
<#assign nbOccur = ( ( maxTime - currentTime ) / duration )?round />
<#if nbOccur > 0>
<#list 1..nbOccur as i>
<@addEmptyLine durationApp=duration/>
#list>
#if>
@tableBody>
@table>
@td>
#list>
@tr>
@table>
<#macro addEmptyLine durationApp>
<#assign saveCurrentHour = currentHour />
<#assign saveCurrentMinute = currentMinute />
<@updateCurrentTimeHourAndMinute durationApp=durationApp />
<@tr>
<@td class="appointment-slot-closed appointment-row1 appointment-tooltip" title="">