<#include "managegeocodes_tabs.html" /> <@pageContainer> <@pageColumn> <@pageHeader title='#i18n{geocodes.manage_countries.title}'> <@offcanvas targetUrl="jsp/admin/plugins/geocodes/ManageCountries.jsp?view_createCountry" targetElement="#create-country-form" redirectForm=false id="create-country" title="#i18n{geocodes.create_country.title}" btnTitle="#i18n{geocodes.manage_countries.buttonAdd}" btnIcon="plus" position="end" /> <@headerButtons>
<@button type='submit' name='action_exportCountries' buttonIcon='plus' title='#i18n{geocodes.manage_countries.buttonExport}' />
<@messages infos=infos /> <@tabs> <@tabsList2 tab="country" /> <#assign page >ManageCountries <#include "search_geocodes.html"/> <@tabContent> <@paginationAdmin paginator=paginator combo=1 /> <@table id='country-table'> <@tr> <@th params='onclick="sortTable(0, \'country-table\')"'>#i18n{geocodes.manage_countries.columnCode} <@th params='onclick="sortTable(1, \'country-table\')"'>#i18n{geocodes.manage_countries.columnValue} <@th params='onclick="sortTable(2, \'country-table\')"'>#i18n{geocodes.manage_countries.columnValueMinComplete} <@th params='onclick="sortTable(3, \'country-table\')"'>#i18n{geocodes.manage_countries.columnAttached} <@th params='onclick="sortTable(4, \'country-table\')"'>#i18n{geocodes.manage_countries.columnDateValidityStart} <@th params='onclick="sortTable(5, \'country-table\')"'>#i18n{geocodes.manage_countries.columnDateValidityEnd} <@th params='onclick="sortTable(6, \'country-table\')"'>#i18n{geocodes.manage_countries.columnDeprecated} <@th>#i18n{portal.util.labelActions} <@tableHeadBodySeparator /> <#list country_list as country > <@tr> <@td> ${country.code} <@td> ${country.value} <@td> ${country.valueMinComplete} <@td> <#switch country.attached> <#case false> #i18n{geocodes.manage_countries.boolean.false}<#break> <#case true> #i18n{geocodes.manage_countries.boolean.true}<#break> <#default> ${country.attached}<#break> <@td> ${country.dateValidityStart} <@td> ${country.dateValidityEnd} <@td> <#switch country.deprecated> <#case false> #i18n{geocodes.manage_countries.boolean.false}<#break> <#case true> #i18n{geocodes.manage_countries.boolean.true}<#break> <#default> ${country.deprecated}<#break> <@td> <@offcanvas targetUrl="jsp/admin/plugins/geocodes/ManageCountries.jsp?view=modifyCountry&id=${country.id}" targetElement="#modify-country-form" redirectForm=false id="modify-country-${country.id}" title="#i18n{geocodes.modify_country.title}" btnIcon="edit" position="end" /> <@offcanvas id="changes-${country.id}" title=" ${country.value}" btnTitle="" size="auto" bodyClass="p-0" btnIcon="history" btnTitleShow=false badgeContent="${country.pendingChanges}"> <@table headBody=true> <@tr> <@td> ${country.code} <@td> ${country.value} <@td> ${country.valueMinComplete} <@td> <#switch country.attached> <#case false> #i18n{geocodes.manage_countries.boolean.false}<#break> <#case true> #i18n{geocodes.manage_countries.boolean.true}<#break> <#default> ${country.attached}<#break> <@td> ${country.dateValidityStart} <@td> ${country.dateValidityEnd} <@td> <#switch country.deprecated> <#case false> #i18n{geocodes.manage_countries.boolean.false}<#break> <#case true> #i18n{geocodes.manage_countries.boolean.true}<#break> <#default> ${country.deprecated}<#break> <@td> <@td> <@td> <@tableHeadBodySeparator /> <@tr> <@th>#i18n{geocodes.manage_countries.columnCode} <@th>#i18n{geocodes.manage_countries.columnValue} <@th>#i18n{geocodes.manage_countries.columnValueMinComplete} <@th>#i18n{geocodes.manage_countries.columnAttached} <@th>#i18n{geocodes.manage_countries.columnDateValidityStart} <@th>#i18n{geocodes.manage_countries.columnDateValidityEnd} <@th>#i18n{geocodes.manage_countries.columnDeprecated} <@th>#i18n{geocodes.manage_cities.columnDateLastUpdate} <@th>#i18n{geocodes.manage_cities.columnAuthor} <@th>#i18n{geocodes.manage_cities.columnStatus} <@th>#i18n{portal.util.labelActions} <@tableHeadBodySeparator /> <#list country.listChanges as countryChanges > <@tr> <@td> <#assign equals= countryChanges.code == country.code> <#if equals> ${countryChanges.code} <#else> <@tag color="warning">${countryChanges.code} <@td> <#assign equals= countryChanges.value == country.value> <#if equals> ${countryChanges.value} <#else> <@tag color="warning">${countryChanges.value} <@td> <#assign equals= countryChanges.valueMinComplete == country.valueMinComplete> <#if equals> ${countryChanges.valueMinComplete} <#else> <@tag color="warning">${countryChanges.valueMinComplete} <@td> <#switch countryChanges.attached> <#case false> #i18n{geocodes.manage_countries.boolean.false}<#break> <#case true> #i18n{geocodes.manage_countries.boolean.true}<#break> <#default> ${countryChanges.attached}<#break> <@td> <#assign equals= countryChanges.dateValidityStart == country.dateValidityStart> <#if equals> ${countryChanges.dateValidityStart} <#else> <@tag color="warning">${countryChanges.dateValidityStart} <@td> <#assign equals= countryChanges.dateValidityEnd == country.dateValidityEnd> <#if equals> ${countryChanges.dateValidityEnd} <#else> <@tag color="warning">${countryChanges.dateValidityEnd} <@td> <#switch countryChanges.deprecated> <#case false> #i18n{geocodes.manage_countries.boolean.false}<#break> <#case true> #i18n{geocodes.manage_countries.boolean.true}<#break> <#default> ${countryChanges.deprecated}<#break> <@td> ${countryChanges.dateLastUpdate} <@td> ${countryChanges.author} <@td> <#switch countryChanges.status> <#case "APPLIED"> <@tag color="success">#i18n{geocodes.manage_cities.columnApplied.applied}<#break> <#case "PENDING"> <@tag color="warning">#i18n{geocodes.manage_cities.columnApplied.pending}<#break> <#case "REFUSED"> <@tag color="danger">#i18n{geocodes.manage_cities.columnApplied.refused}<#break> <#default> ${countryChanges.status}<#break> <@td> <#if countryChanges.status == "PENDING" > <@aButton href='jsp/admin/plugins/geocodes/ManageCities.jsp?action=applyCountryChanges&idChanges=${countryChanges.idChanges}' title='#i18n{geocodes.manage_cities.apply}' buttonIcon='check' hideTitle=['all'] /> <@aButton href='jsp/admin/plugins/geocodes/ManageCities.jsp?action=denyChanges&idChanges=${countryChanges.idChanges}' title='#i18n{geocodes.manage_cities.refuse}' buttonIcon='trash' hideTitle=['all'] /> <@aButton href='jsp/admin/plugins/geocodes/ManageCountries.jsp?action=confirmRemoveCountry&id=${country.id}' title='#i18n{portal.util.labelDelete}' buttonIcon='trash' hideTitle=['all'] color='btn-danger' /> <@paginationAdmin paginator=paginator />