[% 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.
[% 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 %]
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% IF city %]
Modify a city
[% ELSE %]
New city
[% END %]
[% END %]
[% IF op == 'delete_confirm' %]
Delete City "[% city.city_name %]?"
City id |
[% city.cityid %] |
City |
[% city.city_name %] |
State |
[% city.city_state %] |
Zip/Postal code |
[% city.city_zipcode %] |
Country |
[% city.city_country %] |
[% END %]
[% IF op == 'list' %]
Cities
[% IF searchfield %]
Searching: [% searchfield %]
[% END %]
[% IF cities %]
City ID |
City |
State |
Zip/Postal code |
Country |
|
|
[% FOREACH city IN cities %]
[% city.cityid %] |
[% city.city_name %] |
[% city.city_state %] |
[% city.city_zipcode %] |
[% city.city_country %] |
Edit |
Delete |
[% END %]
[% ELSE %]
There is no city defined.
Create a new city.
[% END %]
[% END %]