<#-- 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 --> <#include "util/calendar/macro_datepicker.html" ignore_missing=true /> <#-- Do not remove this comment --> <#-- Information about this commons file --> <#macro commonsFile>commons_bulma.html <#macro commonsName>Commons Bulma 0.7.2 <#macro commonsDescription>Freemarker Commons macros powered by Bulma CSS Framework v0.7.2 <#macro coreAdminCSSLinks> <#macro coreAdminJSLinks> <#global gClassActive='is-active' /> <#macro comboWithParams name default_value additionalParameters items >
<#macro comboSortedWithParams name default_value additionalParameters items id=name>
<#macro comboWithParamsAndLength name default_value additionalParameters items max_length class=''>
<#macro combo name default_value items > <@comboWithParams name="${name}" default_value="${default_value}" additionalParameters="" items=items /> <#macro comboSorted name default_value items > <@combo name="${name}" default_value="${default_value}" items=items?sort_by("name") /> <#macro radioImageList name default_value items inline=0> <#if inline=1> <#list items as item> <#else> <#list items as item>
<#macro checkboxList name default_values items inline=0> <#if inline=1> <#list items as item> <#else> <#list items as item> <#if item.checked >
<#else>
<#macro sort jsp_url attribute id="" > <#if jsp_url?contains("?")> <#assign sort_url = jsp_url + "&sorted_attribute_name=" + attribute + "&asc_sort=" /> <#else> <#assign sort_url = jsp_url + "?sorted_attribute_name=" + attribute + "&asc_sort=" />
<#macro pagination paginator > <#assign nbLinkPagesToDisplay = 10 /> <#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>    <#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 form == 1 >
<@paginationItemCount paginator=paginator combo=combo nb_items_per_page=nb_items_per_page showcount=showcount showall=showall/> <#if form == 1 >
<#macro paginationPageLinks paginator > <#assign nbLinkPagesToDisplay = 10 /> <#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 /> <#macro paginationCombo paginator nb_items_per_page=nb_items_per_page showall=0>
<#macro paginationItemCount paginator combo=0 nb_items_per_page=nb_items_per_page showcount=1 showall=0> <#-- Display combo --> <#if combo == 1 > <@paginationCombo paginator=paginator nb_items_per_page=nb_items_per_page showall=showall /> <#-- Display item count --> <#if showcount == 1 > <#if (paginator.labelItemCount)?? && paginator.labelItemCount?has_content> - ${paginator.labelItemCount} : ${paginator.itemsCount} <#macro item_navigation item_navigator id="item-navigator"> <#-- MACRO DEPRECATED SET This is now empty because it should not be used anymore and is kept only for backwards compatibility --> <#macro dataTable dataTableManager actionMacro="" tableClass="table table-striped table-condensed" caption=" " summary="data table" > <#if 0 < dataTableManager.items?size > <#if dataTableManager.enablePaginator>
<#if (dataTableManager.paginator.pagesCount > 1) > <@paginationPageLinks paginator=dataTableManager.paginator />
<@paginationItemCount paginator=dataTableManager.paginator combo=1 nb_items_per_page=dataTableManager.paginator.itemsPerPage?string />
<#list dataTableManager.listColumn as column> <#list dataTableManager.items as item> <#list dataTableManager.listColumn as column> <#if column.typeColumn = "STRING"> <#assign propName = "item." + column.parameterName> <#assign value = propName?eval> <#elseif column.typeColumn = "LABEL"> <#assign propName = "item." + column.parameterName> <#assign value = propName?eval> <#elseif column.typeColumn = "BOOLEAN"> <#assign propName = "item." + column.parameterName> <#assign value = propName?eval> <#if value?? && value> <#else> <#elseif column.typeColumn = "EMAIL"> <#assign propName = "item." + column.parameterName> <#assign value = propName?eval> <#elseif column.typeColumn = "ACTION"> <#if column.parameterName?? && column.parameterName != ""> <#assign macroName = column.parameterName> <#elseif actionMacro?? && actionMacro != ""> <#assign macroName = actionMacro> <#if macroName?? && macroName != "">
${caption}
#i18n{${column.titleKey}} <#if !(column.typeColumn = "ACTION") && column.sortable> <@sort jsp_url=dataTableManager.sortUrl attribute=column.parameterName />
${value!}#i18n{${value!}}#i18n{${column.labelTrue!}}#i18n{${column.labelFalse!}} <#if value?? && value != "">${value}<@.vars[macroName] item=item />
<#if dataTableManager.enablePaginator>
<#if (dataTableManager.paginator.pagesCount > 1) > <@paginationPageLinks paginator=dataTableManager.paginator />
<@paginationItemCount paginator=dataTableManager.paginator combo=0 nb_items_per_page=dataTableManager.paginator.itemsPerPage?string />
<#else> #i18n{portal.util.labelNoItem} <#macro filterPanel dataTableManager formClass="form-horizontal" > <#if dataTableManager.filterPanel.listFilter?? && 0 < dataTableManager.filterPanel.listFilter?size>
<#list dataTableManager.filterPanel.listFilter as filter>
<#if filter.filterType = "STRING"> <#elseif filter.filterType = "BOOLEAN"> checked="checked" /> <#elseif filter.filterType = "DROPDOWNLIST"> <#if filter.value??> <#assign filter_value = filter.value > <#else> <#assign filter_value = "" > <@combo name=dataTableManager.filterPanelPrefix+filter.parameterName default_value=filter_value items=filter.refList />
<#if dataTableManager.filterPanel.formUrl?contains("?")> <#assign dataTableResetUrl = dataTableManager.filterPanel.formUrl + "&" + dataTableManager.filterPanelPrefix + "resetFilters=true" /> <#else> <#assign dataTableResetUrl = dataTableManager.filterPanel.formUrl + "?" + dataTableManager.filterPanelPrefix + "resetFilters=true" />
<#macro fieldInputText i18nLabelKey inputName mandatory=false value="" maxlength=0 i18nHelpBlockKey='' cssClass='input field-body'>

maxlength=${maxlength} />

<#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro fieldInputPassword i18nLabelKey inputName mandatory=false value="" maxlength=0 i18nHelpBlockKey='' cssClass='input field-body'>
maxlength=${maxlength}> <#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro fieldInputWrapper i18nLabelKey inputName mandatory=false value="" maxlength=0 i18nHelpBlockKey='' cssClass='input field-body'>
<#nested> <#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro fieldStaticText i18nLabelKey cssClass='input' >

<#nested>

<#macro fieldInputCalendar i18nLabelKey inputName mandatory=false value="" i18nHelpBlockKey='' cssClass='input' language='fr'>
 
<#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<@getDatePickerBootstrap idField=inputName language=language /> <#macro fieldInputCheckBox i18nLabelKey inputName value="" disabled=false checked=false i18nHelpBlockKey='' cssClass='' >
<#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro fieldInputRadioBox i18nLabelKey inputName value="" disabled=false checked=false i18nHelpBlockKey='' cssClass='' >
<#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro fieldInputCheckBoxInline inputName value="" disabled=false checked=false > <#macro fieldInputRadioBoxInline inputName value="" disabled=false checked=false > <#macro fieldInputCombo i18nLabelKey inputName items value="" mandatory=false i18nHelpBlockKey='' cssClass='input' >
<#assign params = "class='" + cssClass + "'" > <@comboWithParams name=inputName items=items default_value=value additionalParameters=params /> <#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro fieldTextArea i18nLabelKey inputName mandatory=false value="" maxlength=0 i18nHelpBlockKey='' cssClass='input'>
<#if i18nHelpBlockKey != ''>

#i18n{${i18nHelpBlockKey}}

<#macro actionButtons button1Name='' button2Name='' i18nValue1Key='portal.admin.message.buttonValidate' i18nValue2Key='portal.admin.message.buttonCancel' url1='' url2='' icon1='fa fa-check' icon2='fa fa-close' offset=3 > <#assign col = 11 - offset />
<#if url1 != ''>  #i18n{${i18nValue1Key}} <#else> <#if url2 != ''>  #i18n{${i18nValue2Key}} <#else> <#if button2Name != ''>
<#macro boxSized col i18nTitleKey boxClass='box-primary' >
<@boxHeader title=i18nTitleKey />
<#nested>
<#macro rowBox boxClass='box-primary' col=12>
<#nested>
<#-- <#macro rowBoxHeader i18nTitleKey boxClass='box-primary' col=12> <@rowBox boxClass=boxClass col=col > <@boxHeader i18nTitleKey=i18nTitleKey />
<#nested>
<#macro headerButtons> <#nested> --> <#macro messages errors=[] infos=[] warnings=[] errors_class="alert alert-danger" infos_class="alert alert-info" warnings_class="alert alert-warning"> <#if errors??> <#if errors?size > 0 >
<#list errors as error > ${error.message}
<#if infos??> <#if infos?size > 0 >
<#list infos as info > ${info.message}
<#if warnings??> <#if warnings?size > 0 >
x <#list warnings as warning > ${warning.message}
<#---------------------------NEW MACROS------------------------------> <#-- TABLE --> <#-- class: --> <#macro table responsive=true condensed=true hover=true striped=false bordered=false narrow=false class='' id='' params=''> <#assign tableClass=class /> <#if condensed> <#assign tableClass=tableClass + ' is-narrow' /> <#if hover> <#assign tableClass=tableClass + ' is-hoverable' /> <#if striped> <#assign tableClass=tableClass + ' is-striped' /> <#if bordered> <#assign tableClass=tableClass + ' is-bordered' /> ${params}> <#nested>
<#macro tableHeadBodySeparator> <#-- MACRO TR --> <#macro tr> <#nested> <#-- MACRO TH --> <#macro th id='' class='' hide=[] showXs=true showSm=true showMd=true showLg=true showXl=true cols=0 xs=0 sm=0 md=0 lg=0 xl=0 flex=false params=''> <#local class += displaySettings(hide,'is-inline') /> class="${class}"> <#nested> <#-- MACRO TD --> <#macro td id='' class='' hide=[] showXs=true showSm=true showMd=true showLg=true showXl=true xs=0 sm=0 md=0 lg=0 xl=0 flex=false params=''> <#local class += displaySettings(hide,'is-inline') /> id="${id}"<#if params!=''> ${params}> <#if flex>
<#nested> <#if flex>
<#--- MACRO SELECT (TO REPLACE "COMBO" MACROS) ---> <#macro select name items='' default_value="" id=name class='' size='' sort=false multiple=0 params='' title='' tabIndex=0> <#switch size> <#case 'xs'> <#assign selectSize='small'> <#break> <#case 'sm'> <#assign selectSize='small'> <#break> <#case 'md'> <#assign selectSize='medium'> <#break> <#case 'lg'> <#assign selectSize='large'> <#break> <#default> <#assign selectSize='normal'>
<#-- ICONS --> <#-- Icons from FontAwesome --> <#macro icon prefix='fa-' style='' class='' title='' id='' params=''> <#if style='docker' || style = 'github' || style='gitlab' || style='java' || style='jira' || style='jenkins' || style = 'twitter' > <#local prefix = 'fab ' + prefix /> <#else> <#local prefix = 'fa ' + prefix /> <#-- FORM --> <#-- type: inline/horizontal/form --> <#macro tform type='horizontal' class='' align='' hide=[] action='' method='post' name='' id='' role='form' params=''> <#assign formClass = alignmentSettings(align) + ' ' + class /> <#switch type> <#case 'horizontal'> <#assign formClass += ' form-horizontal'> <#break> <#case 'inline'> <#assign formClass += ' form-inline'> <#break> <#default> <#assign formClass += ' form'>
id="${id}"<#if action!=''> action="${action}"<#if method!=''> method="${method}"<#if name!=''> name="${name}"<#if role!=''> role="${role}"<#if params!=''> ${params}> <#nested>
<#-- FORM ELEMENT STRUCTURE --> <#-- formStyle values: empty/inline/horizontal/navbar-form/navbar-left... Default is horizontal --> <#-- groupStyle: is-success/is-danger/is-warning... --> <#macro formGroup formStyle='horizontal' class='' groupStyle='' rows=1 labelKey='' labelFor='' labelId='' helpKey='' id='' mandatory=false hideLabel=[] params=''> <#local labelDisplayClass = displaySettings(hideLabel,'') />
<#assign mandatory = mandatory> <#nested> <#if helpKey != ''>

${helpKey}

<#macro formField class=''>
<#nested>
<#macro formLabel class='' labelFor='' labelId='' labelKey='' hideLabel=[] mandatory=true> <#local labelDisplayClass = displaySettings(hideLabel,'') /> <#macro formHelp style='inline' class='' labelFor=''>

id="${labelFor}_help"> <#nested>

<#-- INPUT TEXT/TEXTAREA/SEARCH/PASSWORD/EMAIL/FILE --> <#-- type : text/textarea/password/email/file/number. Default is text --> <#-- size: xs/sm/lg --> <#-- pattern: [A-F][0-9]{5} --> <#macro input name type='text' value='' class='' size='' inputSize=0 maxlength=0 placeHolder='' rows=4 cols=40 richtext=false tabIndex='' id='' disabled=false readonly=false pattern='' params='' title='' min=0 max=0> <#if size == 'xs' || size == 'sm'><#local size = 'small' /> <#elseif size == 'md'><#local size = 'medium' /> <#elseif size == 'lg'><#local size = 'large' /> <#else><#local size = '' /> <#if type != 'hidden'>
<#if type='textarea'> <#elseif type='text' || type='search' || type='password' || type='email' || type='file' || type='number'> tabindex="${tabIndex}"<#if placeHolder!=''> placeholder="${placeHolder}"<#if title!=''> title="${title}"<#if maxlength > 0> maxlength="${maxlength}"<#if inputSize!=0> size="${inputSize}"<#if disabled> disabled<#if readonly> readonly<#if id!=''> id="${id}"<#if params!=''> ${params}<#if pattern!=''>pattern=${pattern}<#if min!=0> min="${min}"<#if max!=0> max="${max}"<#if mandatory?? && mandatory> required<#if labelFor?? && labelFor!='' && helpKey?? && helpKey!=''> aria-describedby="${labelFor}_help" /> <#elseif type='hidden'> <#else><@icon style='warning' />Type not supported <#if type != 'hidden'>
<#-- STATIC TEXT --> <#-- Bootstrap colors: muted/primary/success/info/warning/danger --> <#-- AdminLTE colors: red/yellow/aqua/blue/black/light-blue/green/gray/navy/teal/olive/lime/orange/fuchsia/purple/maroon --> <#macro staticText inForm=true color='' id='' params=''>

id="${id}"<#if params!=''> ${params}> <#nested>

<#-- CHECKBOX --> <#-- orientation: vertical/horizontal. Default is vertical --> <#macro checkBox name id labelKey='' labelFor='' orientation='vertical' value='' tabIndex='' title='' disabled=false readonly=false checked=false params='' mandatory=false> <#if labelFor = ''><#local labelFor = id /> <#if orientation='vertical'>
class="checkbox-inline"<#if labelFor!=''> for="${labelFor}"> value="${value}"<#if tabIndex!=''> tabindex="${tabIndex}"<#if checked> checked<#if disabled> disabled<#if readonly> readonly<#if params!=''> ${params}<#if mandatory> required /> <#if labelKey!=''>${labelKey} <#if orientation='vertical'>
<#-- RADIO BUTTON --> <#-- orientation: vertical/horizontal. Default is vertical --> <#macro radioButton name id='' value='' labelKey='' labelFor='' orientation='vertical' tabIndex='' title='' disabled=false readonly=false checked=false params=''> <#if orientation='vertical'>
class="radio-inline"> value="${value}"<#if tabIndex!=''> tabindex="${tabIndex}"<#if checked> checked<#if disabled> disabled<#if readonly> readonly<#if mandatory?? && mandatory> required<#if params!=''> ${params} /> <#if labelKey!=''>${labelKey} <#if orientation='vertical'>
<#-- INPUT-GROUP --> <#-- size: ignored --> <#macro inputGroup size='' id='' params=''>
id="${id}"<#if params!=''> ${params}> <#nested>
<#macro inputGroupItem pos='' type='btn' id='' params=''> <#-- type: btn/text. default is btn-->
id="${id}"<#if params!=''> ${params}>
<#nested>
<#-- ROW --> <#macro row class='' id='' params=''>
id="${id}"<#if params!=''> ${params}> <#nested>
<#-- COLUMNS --> <#-- cols --> <#macro columns offsetXs=0 offsetSm=0 offsetMd=0 offsetLg=0 offsetXl=0 pushXs=0 pushSm=0 pushMd=0 pushLg=0 pushXl=0 pullXs=0 pullSm=0 pullMd=0 pullLg=0 pullXl=0 xs=12 sm=0 md=0 lg=0 xl=0 id='' class='' params=''>
id="${id}"<#if params!=''> ${params}> <#nested>
<#-- LISTS --> <#macro ul id='' params='' class=''> class="${class}"<#if params!=''> ${params}<#if id!=''> ${id}> <#nested> <#macro li id='' params='' class=''> class="${class}"<#if params!=''> ${params}<#if id!=''> ${id}> <#nested> <#-- PARAGRAPH --> <#macro p id='' params='' class='' hide=[] align=''> <#local class += alignmentSettings(align) /> <#local class += displaySettings(hide,'is-block') /> class="${class}"<#if params!=''> ${params}<#if id!=''> ${id}> <#nested>

<#-- SPAN --> <#macro span id='' params='' class='' hide=[] align=''> <#local class += alignmentSettings(align) /> <#local class += displaySettings(hide,'is-inline') /> class="${class}"<#if params!=''> ${params}<#if id!=''> ${id}> <#nested> <#-- PRE --> <#macro pre id='' params='' class='' hide=[] align=''> <#local class += alignmentSettings(align) /> <#local class += displaySettings(hide,'is-block') /> class="${class}"<#if params!=''> ${params}<#if id!=''> ${id}> <#nested> <#-- TABS --> <#-- TAB --> <#macro tabs color='' id='' params=''> <#nested> <#-- Tabs List --> <#-- type: --> <#macro tabList type='tabs' vertical=false id='' params='' color=''>
id="${id}"<#if params!=''> ${params}> id="${id}"<#if params!=''> ${params}> <#nested>
<#-- Tabs --> <#-- type: --> <#macro tabLink class='' hide=[] id='' active=false href='' title='' tabIcon='' params=''>
  • id="${id}"<#if params!=''> ${params}> <@link href='${href}' title='${title}'> <#if tabIcon!=''><@icon style=tabIcon /> ${title}
  • <#-- TAB Content --> <#macro tabContent id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#nested>
    <#-- Tab Panel BS4 --> <#macro tabPanel id params='' active=false>
    ${params}> <#nested>
    <#-- ACCORDION --> <#-- The accordionContainer is the container for accordionPanel, which itself is the container for accordionHeader and accordionBody --> <#-- The childId argument in accordionPanel is meant to be used in the two sub-macros: accordionHeader and accordionBody --> <#macro accordionContainer id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#assign parentId = id> <#nested>
    <#macro accordionPanel color='' collapsed=true childId='' id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#if collapsed = true> <#assign aClass = ''> <#assign expanded = 'false'> <#assign childClass = 'panel-collapse collapse'> <#else> <#assign aClass = 'is-active'> <#assign expanded = 'true'> <#assign childClass = 'panel-collapse collapse in'> <#assign childId = childId> <#nested>
    <#-- ACCORDION ELEMENT --> <#-- The boxTools parameter is unused, kept for backwards compatibility --> <#macro accordionHeader title='' parentId=parentId childId=childId boxTools=false id='' params='' headerIcon='' >
    id="${id}"<#if params!=''> ${params}>

    <#if headerIcon!=''><@icon style=headerIcon />   ${title}

    <#local nested><#nested> <#if nested?has_content>
    ${nested}
    <#macro accordionBody id=childId class=childClass expanded=expanded params=''>
    ${params}> <@boxBody> <#nested>
    <#macro progressBar description='' id='' params=''>
    id="${id}"<#if params!=''> ${params}>
    0%
    <#if description!=''> ${description} <#macro progress color='primary' id='' params='' value=0 min=0 max=100 text=''> <#if text=''>${value}%<#else>${text} <#-- TAG --> <#-- color: default/primary/success/info/warning/danger/ --> <#macro tag color='default' size='' title='' tagIcon='' id='' params=''> <#switch size> <#case 'xs'> <#assign tagSize='is-small'> <#break> <#case 'sm'> <#assign tagSize=''> <#break> <#case 'md'> <#assign tagSize='is-medium'> <#break> <#case 'lg'> <#assign tagSize='is-large'> <#break> <#default> <#assign tagSize='is-normal'> title='${title}'<#if id!=''>id='${id}'<#if params!=''>${params}> <#if tagIcon !=''> <@icon style=tagIcon />   <#nested> <#-- BUTTON --> <#-- size: xs/sm/md/lg --> <#-- color: default : primary/success/warning/danger/info --> <#-- type: button/submit/reset --> <#-- params: data-toggle/data-target/data-dismiss... --> <#-- buttonIcon: icon name ex: info/check/comment/envelope... --> <#-- iconPosition: left/right --> <#-- cancel: switch to true for a cancellation form button. Adds the "formnovalidate" attribute to the button, as well as the right class --> <#-- form: contains the form ID if the button is outside of the form --> <#macro button name='' id='' type='button' buttonIcon='' size='' color='' style='' class='' params='' value='' title='' tabIndex='' hideTitle=[] showTitle=true showTitleXs=true showTitleSm=true showTitleMd=true showTitleLg=true disabled=false iconPosition='left' dropdownMenu=false cancel=false form=''> <#local displayTitleClass = displaySettings(hideTitle,'inline') /> <#if cancel || color = 'default' || color = 'secondary'> <#assign buttonColor = 'light' /> <#elseif !cancel && color=''> <#assign buttonColor = 'primary' /> <#else> <#assign buttonColor = color /> <#if style='card-control'> <#assign style='text-right btn-link' /> <#switch size> <#case 'xs'> <#assign buttonSize='small'> <#break> <#case 'sm'> <#assign buttonSize='small'> <#break> <#case 'md'> <#assign buttonSize='medium'> <#break> <#case 'lg'> <#assign buttonSize='large'> <#break> <#default> <#assign buttonSize='normal'> <#if dropdownMenu> <#else> <#nested> <#-- A BUTTON (LINK STYLED AS A BUTTON) --> <#-- size: small/medium/large --> <#-- color: default/primary/success/warning/danger/info/bg-purple/bg-blue/bg-navy/bg-teal/bg-maroon/bg-black/bg-gray/bg-olive/bg-lime/bg-orange/bg-fuchsia --> <#-- style: disabled ignored : btn-block/btn-flat/btn-app--> <#-- icon: icon name ex: info/check/comment/envelope... --> <#macro aButton name='' id='' href='' size='' color='primary' style='' align='' class='' params='' title='' tabIndex='' hideTitle=[] showTitle=true showTitleXs=true showTitleSm=true showTitleMd=true showTitleLg=true buttonIcon='' disabled=false iconPosition='left' dropdownMenu=false cancel=false> <#local displayTitleClass = displaySettings(hideTitle,'inline') /> <#if cancel || color = 'default' || color = 'secondary'> <#assign buttonColor = 'light' /> <#elseif !cancel && color=''> <#assign buttonColor = 'primary' /> <#else> <#assign buttonColor = color /> <#if style='card-control'> <#assign style='text-right btn-link' /> <#switch size> <#case 'xs'> <#assign buttonSize='small'> <#break> <#case 'sm'> <#assign buttonSize='small'> <#break> <#case 'md'> <#assign buttonSize='medium'> <#break> <#case 'lg'> <#assign buttonSize='large'> <#break> <#default> <#assign buttonSize='normal'> <#local class += alignmentSettings(align) /> <#if dropdownMenu> <#macro dropdownItem>
  • <#nested>
  • <#-- BTN TOOLBAR --> <#macro btnToolbar id='' params='' ariaLabel=''> <#-- BTN GROUP --> <#-- size: sm/lg --> <#-- align: left/center/right --> <#macro btnGroup size='' align='' class='' id='' params='' ariaLabel='' hide=[] showXs=true showSm=true showMd=true showLg=true showXl=true> <#local displayClass = displaySettings(hide,'inline-flex') /> <#switch size> <#case 'sm'> <#assign sizeClass='are-small'> <#break> <#case 'lg'> <#assign sizeClass='are-large'> <#break> <#default> <#assign sizeClass=''> <#switch align> <#case 'right'> <#assign alignClass='is-right'> <#break> <#case 'center'> <#assign alignClass='is-centered'> <#break> <#default> <#assign alignClass=''>
    aria-label="${ariaLabel}"<#if id!=''> id="${id}"<#if params!=''> ${params}> <#nested>
    <#-- Radio button/Checkbox as buttons (to use with btnGroup) --> <#-- type: radio/checkbox --> <#macro btnGroupRadioCheckbox type='checkbox' color='primary' size='' name='' id='' params='' ariaLabel='' labelFor='' labelKey='' labelParams='' tabIndex='' value='' checked=false> <#-- Simple links a href, anchors --> <#macro link href='' class='' id='' name='' title='' alt='' target='' params=''> class="${class}"<#if id!=''> id="${id}"<#if name!=''> name="${name}"<#if target!=''> target="${target}"<#if title!=''> title="${title}"<#if alt!=''> alt="${alt}"<#if params!=''> ${params}> <#nested> <#-- MODAL --> <#-- bgColor: modal-default/modal-primary/modal-info/modal-warning/modal-danger --> <#macro modal id params='' bgColor=''> <#macro modalHeader titleLevel='h4' modalTitle='' id='' params=''> <#macro modalBody id='' params=''> <#macro modalFooter id='' params=''> <#-- BREADCRUMBS --> <#macro breadcrumbs id='' params=''> <#-- CALLOUT --> <#-- AdminLTE classes: info/warning/danger/success --> <#macro callOut color='' titleLevel='h3' title='' callOutIcon='' id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#if title!=''><${titleLevel}><@icon style=callOutIcon /> ${title} <#nested>
    <#-- ALERT --> <#-- class: --> <#-- color: success/info/warning/danger --> <#macro alert class='' color='' titleLevel='h3' title='' iconTitle='' dismissible=false id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#if dismissible> <@button color='' size='' class='delete' params='data-dismiss="alert" aria-hidden="true"'>× <#if title!=''> <${titleLevel}> <#if iconTitle!=''><@icon style=iconTitle /> ${title} <#nested>
    <#----------------------------------------> <#-- AdminLTE Box --> <#-- color: default/primary/info/success/warning/danger --> <#-- style: solid (no top border) --> <#-- collapsed: true/false --> <#macro box color='' id='' style='' class='' params='' collapsed=false>
    id="${id}"<#if params!=''> ${params}> <#nested>
    <#-- The boxTools parameter is unused, kept for backwards compatibility --> <#macro boxHeader title='' i18nTitleKey='' hideTitle=[] showTitle=true id='' params='' boxTools=false titleLevel='p'>
    id="${id}"<#if params!=''> ${params}> <${titleLevel} class="card-header-title<#if showTitle=false> sr-only"><#if title!=''>${title}<#if i18nTitleKey!=''>#i18n{${i18nTitleKey}} <#nested>
    <#macro boxBody class='' id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#nested>
    <#macro boxFooter class='' id='' params=''> <#----------------------------------------> <#-- INFO-BOX AdminTLE (widget) --> <#-- color: only for the left side showing the icon. --> <#-- bgColor: for the right side containing the text --> <#macro infoBox color='' boxText='' boxIcon='' boxNumber='' unit='' bgColor='' progressBar='' progressDescription='' id='' params=''>
    id="${id}"<#if params!=''> ${params}> <@icon style=boxIcon />
    ${boxText} ${boxNumber?string(",000")}<#if unit!=''> ${unit} <#if bgColor!='' && progressBar!=''> ${progressBar}% <#if progressDescription!=''>

    ${progressDescription}

    <#-- AdminLTE Small Box --> <#-- color: Bootstrap + AdminLTE colors --> <#-- unit: %,... --> <#macro smallBox color='' title='' text='' boxIcon='' titleLevel='h3' unit='' url='' urlText='' id='' params='' fontSize='30px'>
    id="${id}"<#if params!=''> ${params}>
    <#-- AdminLTE Error Page --> <#-- Error Type: 500,404... --> <#-- Color: primary/blue/navy/aqua/teal/green/orange/yellow/red/purple/maroon/gray/black... --> <#macro errorPage color='' errorType='' id='' params=''>
    id="${id}"<#if params!=''> ${params}>

    ${errorType}

    <@icon style='warning' class='text-${color}' /> <#if errorType=='404'> #i18n{portal.util.error404.title} <#elseif errorType='500'> #i18n{portal.util.error500.title} <#else>...

    <#if errorType=='404'> #i18n{portal.util.error404.text} <#elseif errorType='500'> #i18n{portal.util.error500.text} <#else>...

    <@aButton href='' size='' color='bg-${color}' style=''> <@icon style='home' /> #i18n{portal.util.labelBackHome}
    <#-- CONTEXTUAL BACKGROUND P--> <#-- Bootstrap colors: primary/success/info/warning/danger --> <#-- AdminTLE colors: gray/gray-light/black/red/yellow/aqua/blue/light-blue/green/navy/teal/olive/lime/orange/fuchsia/purple/maroon --> <#macro coloredBg color='' type='p' id='' params=''> <${type} class="bg-${color}"<#if id!=''> id="${id}"<#if params!=''> ${params}> <#nested> <#macro listGroup id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#nested>
    <#macro listGroupItem id='' params=''>
    id="${id}"<#if params!=''> ${params}> <#nested>
    <#macro unstyledList id='' params=''>
      id="${id}"<#if params!=''> ${params}> <#assign liClass = "margin"> <#nested>
    <#-- DROPDOWN MENU LIST --> <#macro dropdownList id='' params=''> <@coreAdminJSLinks /> <#-- MACRO adminHome --> <#macro adminHome > <@row> <@columns class='widget'>
    <@row> <@columns sm=4 md=4 lg=4 class='widget lutece-dashboard'> <#if dashboard_zone_1?has_content> ${dashboard_zone_1}
     
    <@columns sm=4 md=4 lg=4 class='widget lutece-dashboard'> <#if dashboard_zone_2?has_content> ${dashboard_zone_2}
     
    <@columns sm=4 md=4 lg=4 class='widget lutece-dashboard'> <#if dashboard_zone_3?has_content> ${dashboard_zone_3}
     
    <#-- adminContentHeader --> <#macro adminContentHeader >

    <#if feature_url?? && feature_title?? > ${feature_title!''} <#else> ${feature_title!''} <#if page_title?? && page_title?has_content>${page_title}

    <@adminHeaderDocumentationLink />
    <#-- adminLoginPage --> <#macro adminLoginPage title='' site_name='SITE_NAME'>
    LUTECE Back-Office
    <#nested>

    <@aButton href='http://fr.lutece.paris.fr' params='target="_blank"' title='#i18n{portal.site.portal_footer.labelPortal}' hideTitle=['all'] color='secondary'> logo lutece

    <#-- adminHeaderDocumentationLink --> <#macro adminHeaderDocumentationLink > <#macro adminSiteColumnOutline columnid=''>
    ${i18n("portal.site.columnId",columnid)}
    <#nested>
    <#-- adminMessagePage --> <#macro adminMessagePage title=''> <#assign color="info" /> <#assign icontype="fa-info-circle" /> <#if message.type == 2 > <#assign color="primary" /> <#assign icontype="fa-question-circle" /> <#elseif message.type == 3 > <#assign color="danger" /> <#assign icontype="fa-exclamation-circle" /> <#elseif message.type == 4 > <#assign color="danger" /> <#assign icontype="fa-question-circle" /> <#elseif message.type == 5 > <#assign color="danger" /> <#assign icontype="fa-ban" />

    ${title!"Info"}

    ${text}

    <#-- HELPERS --> <#-- Float right --> <#macro fright> is-pulled-right <#-- Float left --> <#macro fright> is-pulled-left <#-- Clearfix --> <#macro fright> is-clearfix <#-- HTML ELEMENTS --> <#macro img url='' alt='' title='' class='' id='' params=''> <#if alt!=''>${alt!}<#else>${title!}</#if> <#-- fieldSet --> <#macro fieldSet legend=''>
    <#if legend!=''> ${legend} <#nested>
    <#-- COMPONENTS --> <#--Badge : BS badge + label --> <#macro badge color='' badgeIcon='' title='' htmlEl='deprecated' type='deprecated' style='deprecated' class='deprecated' > title="${title}" > <#if badgeIcon !=''> <@icon style=badgeIcon /> <#nested> <#-- Email Default Template --> <#macro emailTemplate title='Lutece' footer_link='https://fr.lutece.paris.fr'>

    ${title}

    <#nested>
    <#macro adminLanguage languages lang action='jsp/admin/DoChangeLanguage.jsp' > #i18n{portal.admin.admin_home.language} <@tform method='post' action=action> <#list languages as language> <#if lang==language.code> <#assign languageButtonColor='success'> <#else> <#assign languageButtonColor='default'> <@button color='${languageButtonColor}' type='submit' name='language' value='${language.code}' title='${language.name}'/> <#macro adminAccessibilityMode> <@tform method='post' action='jsp/admin/DoModifyAccessibilityMode.jsp' class=''> <#if user.accessibilityMode> <@button color='white' size='sm' type='submit' buttonIcon='eye' title='#i18n{portal.users.admin_header.labelDeactivateAccessibilityMode}'/> <#else> <@button color='white' size='sm' type='submit' buttonIcon='eye-slash' title='#i18n{portal.users.admin_header.labelActivateAccessibilityMode}'/>