#-- WARNING : be careful to white-space and lines break in FreeMarker macros. # This macro template can be used to output white-space-sensitive formats (like RSS files). # See http://dev.lutece.paris.fr/jira/browse/LUTECE-765 --> <#-- Do not remove this comment --> <#-- Information about this commons file --> <#macro commonsFile>commons.html#macro> <#macro commonsName>Commons Bootstrap 3#macro> <#macro commonsDescription>Freemarker Commons macros powered by Bootstrap CSS Framework 3.3#macro> <#macro coreAdminCSSLinks> #macro> <#macro coreAdminJSLinks> #macro> <#global gClassActive='active' /> <#macro sort jsp_url attribute id="" > <#if jsp_url?contains("?")> <#local sort_url = jsp_url + "&sorted_attribute_name=" + attribute + "&asc_sort=" /> <#else> <#local sort_url = jsp_url + "?sorted_attribute_name=" + attribute + "&asc_sort=" /> #if>
#macro> <#macro pagination paginator > <#local nbLinkPagesToDisplay = 10 /> <#local offsetPrev = nbLinkPagesToDisplay / 2 /> <#local offsetNext = nbLinkPagesToDisplay / 2 /> <#if ( paginator.pageCurrent <= nbLinkPagesToDisplay - offsetPrev )> <#local offsetPrev = paginator.pageCurrent - 1 /> <#local offsetNext = nbLinkPagesToDisplay - offsetPrev /> <#elseif ( paginator.pageCurrent + offsetNext > paginator.pagesCount )> <#local offsetNext = paginator.pagesCount - paginator.pageCurrent /> <#local offsetPrev = nbLinkPagesToDisplay - offsetNext /> #if> <#if ( paginator.pagesCount > 1 )> <#if ( paginator.pageCurrent - offsetPrev > 1 )> #i18n{portal.util.labelFirst} #if> <#if ( paginator.pageCurrent > 1 )> #i18n{portal.util.labelPrevious} <#else> #if> <#if ( paginator.pageCurrent - offsetPrev > 1 )> ... #if> <#list paginator.pagesLinks as link> <#if link.index == paginator.pageCurrent> ${link.name} <#else> ${link.name} #if> #list> <#if ( paginator.pageCurrent + offsetNext < paginator.pagesCount )> ... #if> <#if ( paginator.pageCurrent < paginator.pagesCount )> #i18n{portal.util.labelNext} <#if ( paginator.pageCurrent + offsetNext < paginator.pagesCount )> #i18n{portal.util.labelLast} #if> #if> #if> #macro> <#macro paginationAdmin paginator combo=0 form=1 nb_items_per_page=nb_items_per_page showcount=1 showall=0> <#if (paginator.pagesCount > 1) > <@paginationPageLinks paginator=paginator /> #if> <@div align='right'> <#if form == 1 > #if> @div> #macro> <#macro paginationPageLinks paginator > <#local nbLinkPagesToDisplay = 10 /> <#local offsetPrev = nbLinkPagesToDisplay / 2 /> <#local offsetNext = nbLinkPagesToDisplay / 2 /> <#if ( paginator.pageCurrent <= nbLinkPagesToDisplay - offsetPrev )> <#local offsetPrev = paginator.pageCurrent - 1 /> <#local offsetNext = nbLinkPagesToDisplay - offsetPrev /> <#elseif ( paginator.pageCurrent + offsetNext > paginator.pagesCount )> <#local offsetNext = paginator.pagesCount - paginator.pageCurrent /> <#local offsetPrev = nbLinkPagesToDisplay - offsetNext /> #if>id="${id}"#if><#if params!=''> ${params}#if>> <#nested>
#macro> <#-- CHECKBOX --> <#-- orientation: vertical/inline. Default is vertical --> <#-- TODO --> <#macro checkBox name id='' labelKey='' orientation='vertical' value='' tabIndex='' title='' disabled=false readonly=false checked=false params='' mandatory=false deprecated...> <@deprecatedWarning args=deprecated /> <#if propagateMandatory?? && propagateMandatory ><#local mandatory = true />#if> <#if id = ''><#local id = name />#if> <#if orientation='vertical'>class="${class?trim}"#if><#if params!=''> ${params}#if><#if id!=''> ${id}#if>> <#nested>
#macro> <#-- SPAN --> <#macro span id='' class='' hide=[] collapsed=false align='' params=''> <#if collapsed><#local class += ' ' + 'collapse' />#if> <#local class += ' ' + alignmentSettings(align,'text') + ' ' + displaySettings(hide,'inline-flex') /> class="${class?trim}"#if><#if params!=''> ${params}#if><#if id!=''> ${id}#if>> <#nested> #macro> <#-- PRE --> <#macro pre id='' class='' hide=[] collapsed=false align='' params=''> <#local class += ' ' + alignmentSettings(align,'text') + ' ' + displaySettings(hide,'block') /> class="${class?trim}"#if><#if params!=''> ${params}#if><#if id!=''> ${id}#if>>
<#nested>
#macro>
<#-- TABS -->
<#-- Tab Container -->
<#-- TAB Custom AdminLTE -->
<#-- style: tabs/tabs nav-justified/pills/pills nav-stacked/pills nav-justified -->
<#macro tabs color='' style='tabs' class='' id='' hide=[] collapsed=false params=''>
<#if collapsed><#local class += ' ' + 'collapse' />#if>
<#if hide??><#local class += ' ' + displaySettings(hide,'block') />#if>
<#assign propagateTabStyle = style />
#macro>
<#-- Bootstrap UL tabs -->
<#-- type is deprecated -->
<#macro tabList style='tabs' vertical=false id='' params='' color=''>
<#if propagateTabStyle??><#local style = propagateTabStyle />#if>
#macro>
<#-- Tabs -->
<#-- type: -->
<#macro tabLink class='' hide=[] id='' active=false href='' title='' tabIcon='' params=''>
<#local tabLinkClass = class />
<#if active><#local tabLinkClass += ' active' />#if>
${text}
<${titleLevel} style="font-size:${fontSize};">${title}<#if unit!=''> ${unit}#if>${titleLevel}><#if errorType=='404'> #i18n{portal.util.error404.text} <#elseif errorType='500'> #i18n{portal.util.error500.text} <#else>... #if>
<@aButton href='' size='' color='bg-${color}' style='btn-flat'> <@icon style='home' /> #i18n{portal.util.labelBackHome} @aButton>
${title}
<@aButton href='https://lutece.paris.fr' params='target="_blank"' title='#i18n{portal.site.portal_footer.labelPortal}' hideTitle=['all'] color='link'>
@aButton>
${text}
|
||
|
|
<#if title=''>#i18n{portal.util.message.emptyTitle}<#else>${title}#if>
<#if subtitle !=''>${subtitle}
<#else>#i18n{portal.util.message.emptySubTitle}
#if> <#if actionTitle !=''> #if>