1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › [% IF ( add_form ) %]Cities › [% IF ( cityid ) %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF ( 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>
30 › [% IF ( cityid ) %]Modify[% ELSE %]New[% END %] City
31 [% ELSIF ( delete_confirm ) %]
32 › Confirm deletion of city
36 <div id="doc3" class="yui-t2">
44 <h1>Modify a city</h1>
49 <form action="[% script_name %]" name="Aform" method="post" class="validated">
50 <input type="hidden" name="op" value="add_validate" />
51 <input type="hidden" name="checked" value="0" />
52 <input type="hidden" name="cityid" value="[% cityid %]" />
54 <fieldset class="rows"><ol> [% IF ( cityid ) %]
56 <span class="label">City ID: </span>[% cityid %]</li>
59 <label for="city_name" class="required">City: </label>
60 <input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city_name |html %]" required="required" class="required" /> <span class="required">Required</span>
63 <label for="city_state">State: </label>
64 <input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city_state |html %]" />
67 <label for="city_zipcode" class="required">Zip/Postal code: </label>
68 <input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city_zipcode %]" required="required" class="required" /> <span class="required">Required</span>
71 <label for="city_country">Country: </label>
72 <input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city_country |html %]" />
75 <fieldset class="action">
76 <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
81 [% IF ( delete_confirm ) %]
82 <div class="dialog alert">
83 <h3>Delete City "[% city_name %]?"</h3>
89 <td>[% city_name %]</td>
92 <td>[% city_state %]</td>
94 <tr><th>Zip/Postal code</th>
95 <td>[% city_zipcode %]</td>
98 <td>[% city_country %]</td>
101 <form action="[% script_name %]" method="post">
102 <input type="hidden" name="op" value="delete_confirmed" />
103 <input type="hidden" name="cityid" value="[% cityid %]" />
104 <input type="submit" class="approve" value="Yes, delete" />
106 <form action="[% script_name %]" method="get">
107 <input type="submit" class="deny" value="No, do not Delete" />
114 <div id="toolbar" class="btn-toolbar">
115 <a class="btn btn-small" id="newcity" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New city</a>
119 [% IF ( searchfield ) %]
120 Searching: [% searchfield %]
124 <table id="table_cities">
129 <th>Zip/Postal code</th>
134 [% FOREACH loo IN loop %]
136 <td>[% loo.cityid %]</td>
137 <td>[% loo.city_name %]</td>
138 <td>[% loo.city_state %]</td>
139 <td>[% loo.city_zipcode %]</td>
140 <td>[% loo.city_country %]</td>
141 <td><a href="[% loo.script_name %]?op=add_form&cityid=[% loo.cityid %]">Edit</a></td>
142 <td><a href="[% loo.script_name %]?op=delete_confirm&cityid=[% loo.cityid %]">Delete</a></td>
151 [% INCLUDE 'admin-menu.inc' %]
154 [% INCLUDE 'intranet-bottom.inc' %]