1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › [% IF op =='add_form' %]Cities › [% IF city.cityid %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF op == 'delete_confirm' %]Cities › Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
8 $(document).ready(function() {
9 $("#table_cities").dataTable($.extend(true, {}, dataTablesDefaults, {
11 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
13 "aaSorting": [[ 1, "asc" ]],
15 "sPaginationType": "full_numbers"
21 <body id="admin_cities" class="admin">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'cities-admin-search.inc' %]
25 <div id="breadcrumbs">
26 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
28 › <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
29 [% IF op == 'add_form' %]
30 › [% IF city.cityid %]Modify[% ELSE %]New[% END %] City
31 [% ELSIF op == 'delete_confirm' %]
32 › Confirm deletion of city
36 <div id="doc3" class="yui-t2">
42 [% FOR m IN messages %]
43 <div class="dialog [% m.type %]">
45 [% CASE 'error_on_update' %]
46 An error occurred when updating this city. Perhaps it already exists.
47 [% CASE 'error_on_insert' %]
48 An error occurred when inserting this city. The city id might already exist.
49 [% CASE 'error_on_delete' %]
50 An error occurred when deleting this city. Check the logs.
51 [% CASE 'success_on_update' %]
52 City updated successfully.
53 [% CASE 'success_on_insert' %]
54 City inserted successfully.
55 [% CASE 'success_on_delete' %]
56 City deleted successfully.
57 [% CASE 'already_exists' %]
58 This city already exists.
65 [% IF op == 'add_form' %]
67 <h1>Modify a city</h1>
72 <form action="/cgi-bin/koha/admin/cities.pl" name="Aform" method="post" class="validated">
73 <input type="hidden" name="op" value="add_validate" />
74 <input type="hidden" name="cityid" value="[% city.cityid %]" />
76 <fieldset class="rows">
79 <li><span class="label">City ID: </span>[% city.cityid %]</li>
82 <label for="city_name" class="required">City: </label>
83 <input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city.city_name |html %]" required="required" class="required" /> <span class="required">Required</span>
86 <label for="city_state">State: </label>
87 <input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city.city_state |html %]" />
90 <label for="city_zipcode" class="required">Zip/Postal code: </label>
91 <input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city.city_zipcode %]" required="required" class="required" /> <span class="required">Required</span>
94 <label for="city_country">Country: </label>
95 <input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city.city_country |html %]" />
100 <fieldset class="action">
101 <input type="submit" value="Submit" />
102 <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
107 [% IF op == 'delete_confirm' %]
108 <div class="dialog alert">
109 <h3>Delete City "[% city.city_name %]?"</h3>
112 <td>[% city.cityid %]</td>
115 <td>[% city.city_name %]</td>
118 <td>[% city.city_state %]</td>
120 <tr><th>Zip/Postal code</th>
121 <td>[% city.city_zipcode %]</td>
124 <td>[% city.city_country %]</td>
127 <form action="/cgi-bin/koha/admin/cities.pl" method="post">
128 <input type="hidden" name="op" value="delete_confirmed" />
129 <input type="hidden" name="cityid" value="[% city.cityid %]" />
130 <input type="submit" class="approve" value="Yes, delete" />
132 <form action="/cgi-bin/koha/admin/cities.pl" method="get">
133 <input type="submit" class="deny" value="No, do not Delete" />
138 [% IF op == 'list' %]
140 <div id="toolbar" class="btn-toolbar">
141 <a class="btn btn-small" id="newcity" href="/cgi-bin/koha/admin/cities.pl?op=add_form"><i class="icon-plus"></i> New city</a>
146 Searching: [% searchfield %]
150 <table id="table_cities">
155 <th>Zip/Postal code</th>
161 [% FOREACH city IN cities %]
163 <td>[% city.cityid %]</td>
164 <td>[% city.city_name %]</td>
165 <td>[% city.city_state %]</td>
166 <td>[% city.city_zipcode %]</td>
167 <td>[% city.city_country %]</td>
168 <td><a href="/cgi-bin/koha/admin/cities.pl?op=add_form&cityid=[% city.cityid %]">Edit</a></td>
169 <td><a href="/cgi-bin/koha/admin/cities.pl?op=delete_confirm&cityid=[% city.cityid %]">Delete</a></td>
175 There is no city defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>.
182 [% INCLUDE 'admin-menu.inc' %]
185 [% INCLUDE 'intranet-bottom.inc' %]