[% USE raw %]
[% USE Asset %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% FILTER collapse %]
[% IF op =='add_form' %]
[% IF city.cityid %]
[% tx("Modify city '{city}'", { city = city.city_name }) | html %]
[% ELSE %]
[% t("New city") | html %]
[% END %] ›
[% ELSE %]
[% IF op == 'delete_confirm' %]
[% tx("Confirm deletion of city '{city}'", { city = city.city_name }) | html %] ›
[% END %]
[% END %]
[% t("Cities") | html %] ›
[% t("Administration") | html %] ›
[% t("Koha") | html %]
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
[% WRAPPER 'header.inc' %]
[% INCLUDE 'cities-admin-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
Administration
[% END %]
[% IF op == 'add_form' %]
[% WRAPPER breadcrumb_item %]
Cities
[% END %]
[% WRAPPER breadcrumb_item bc_active = 1 %]
[% IF city.cityid %]
[% tx("Modify city '{city}'", { city = city.city_name }) | html %]
[% ELSE %]
New city
[% END %]
[% END %]
[% ELSIF op == 'delete_confirm' %]
[% WRAPPER breadcrumb_item %]
Cities
[% END %]
[% WRAPPER breadcrumb_item bc_active = 1 %]
[% tx("Confirm deletion of city '{city}'", { city = city.city_name }) | html %]
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active = 1 %]
Cities
[% END %]
[% END #/IF op = add_form %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'error_on_update' %]
An error occurred when updating this city. Perhaps it already exists.
[% CASE 'error_on_insert' %]
An error occurred when adding this city. The city ID might already exist.
[% CASE 'error_on_delete' %]
An error occurred when deleting this city. Check the logs for details.
[% CASE 'success_on_update' %]
City updated successfully.
[% CASE 'success_on_insert' %]
City added successfully.
[% CASE 'success_on_delete' %]
City deleted successfully.
[% CASE 'already_exists' %]
This city already exists.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% IF city %]
[% tx("Modify city '{city}'", { city = city.city_name }) | html %]
[% ELSE %]
New city
[% END %]
[% END %]
[% IF op == 'delete_confirm' %]
[% tx("Confirm deletion of city '{city}'", { city = city.city_name }) | html %]