<#macro paginationRDV paginator > <#assign nbLinkPagesToDisplay = 4 /> <#assign offsetPrev = nbLinkPagesToDisplay / 2 /> <#assign offsetNext = nbLinkPagesToDisplay / 2 /> <#if ( paginator.pageCurrent <= nbLinkPagesToDisplay - offsetPrev )> <#assign offsetPrev = paginator.pageCurrent - 1 /> <#assign offsetNext = nbLinkPagesToDisplay - offsetPrev /> <#elseif ( paginator.pageCurrent + offsetNext > paginator.pagesCount )> <#assign offsetNext = paginator.pagesCount - paginator.pageCurrent /> <#assign offsetPrev = nbLinkPagesToDisplay - offsetNext /> <#if ( paginator.pagesCount > 1 )> <#if ( paginator.pageCurrent - offsetPrev > 1 )>  #i18n{portal.util.labelFirst} <#if ( paginator.pageCurrent > 1 )>  #i18n{portal.util.labelPrevious} <#else>    <#if ( paginator.pageCurrent - offsetPrev > 1 )> ... <#list paginator.pagesLinks as link> <#if link.index == paginator.pageCurrent> ${link.name} <#else> ${link.name} <#if ( paginator.pageCurrent + offsetNext < paginator.pagesCount )> ... <#if ( paginator.pageCurrent < paginator.pagesCount )>  #i18n{portal.util.labelNext} <#if ( paginator.pageCurrent + offsetNext < paginator.pagesCount )>  #i18n{portal.util.labelLast} <#else>    <@row> <@columns>
<@messages infos=infos />

#i18n{transparency.manage_public_appointments.title}

<@row> <@columns>
<@tform class="form-horizontal" method="post" name="form_search_appointment" action="jsp/site/Portal.jsp?page=publicmeeting"> <@messages errors=errors /> <@formGroup labelKey='#i18n{transparency.manage_appointments.searchByTitleLabel}' helpKey='#i18n{transparency.manage_appointments.searchByTitleLabel.help}' > <@input type='text' name='search_title' id='search_title' value=search_filter.title! /> <@formGroup labelKey='#i18n{transparency.manage_appointments.searchByPeriodLabel}' helpKey='#i18n{transparency.manage_appointments.searchByPeriodLabel.help}' > <@formGroup labelKey='#i18n{transparency.manage_appointments.searchByElectedOfficialNameLabel}' helpKey='#i18n{transparency.manage_appointments.searchByElectedOfficialNameLabel.help}' > <@input type='text' name='search_elected_official' id='search_elected_official' value=search_filter.electedOfficialName! /> <@formGroup labelKey='#i18n{transparency.manage_appointments.searchByLobbyNameLabel}' helpKey='#i18n{transparency.manage_appointments.searchByLobbyNameLabel.help}' > <@input type='text' name='search_lobby' id='search_lobby' value=search_filter.lobbyName! /> <@formGroup> <@button type="submit" name="action_searchAppointment" title="#i18n{portal.site.page_menu_tools.labelSearch}" buttonIcon="search" size='sm' />
<@row params='style="margin-top:50px;"'> <@columns>
<#list appointment_list as appointment >
#i18n{transparency.manage_appointments.columnTitle} #i18n{transparency.manage_appointments.columnStartDate} <@sort jsp_url="jsp/site/Portal.jsp?page=publicmeeting" attribute="start_date" /> #i18n{transparency.manage_appointments.columnElectedOfficials} #i18n{transparency.manage_appointments.columnLobbies} #i18n{transparency.manage_appointments.columnContacts}
${appointment.title} ${appointment.startDate} <#list appointment.electedOfficialList as electedOfficial> ${electedOfficial.lastName}
<#list appointment.lobbyList as lobby> <#if lobby.nationalId??> ${lobby.name} <#else> ${lobby.name}
${appointment.contacts!''}
<@row> <@columns>
<@paginationRDV paginator=paginator />