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">
9 if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
10 alert(_("City name & zipcode missing"));
12 document.Aform.submit();
15 $(document).ready(function() {
16 $("#table_cities").dataTable($.extend(true, {}, dataTablesDefaults, {
18 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
20 "aaSorting": [[ 1, "asc" ]],
22 "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
28 <body id="admin_cities" class="admin">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'cities-admin-search.inc' %]
32 <div id="breadcrumbs">
33 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
34 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
35 › <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
37 › [% IF ( cityid ) %]Modify[% ELSE %]New[% END %] City
38 [% ELSIF ( delete_confirm ) %]
39 › Confirm deletion of city
43 <div id="doc3" class="yui-t2">
51 <h1>Modify a city</h1>
56 <form action="[% script_name %]" name="Aform" method="post">
57 <input type="hidden" name="op" value="add_validate" />
58 <input type="hidden" name="checked" value="0" />
59 <input type="hidden" name="cityid" value="[% cityid %]" />
61 <fieldset class="rows"><ol> [% IF ( cityid ) %]
63 <span class="label">City ID: </span>[% cityid %]</li>
66 <label for="city_name" class="required" title="required">City: </label>
67 <input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city_name |html %]" />
70 <label for="city_state">State: </label>
71 <input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city_state |html %]" />
74 <label for="city_zipcode" class="required" title="required">Zip/Postal code: </label>
75 <input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city_zipcode %]" />
78 <label for="city_country">Country: </label>
79 <input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city_country |html %]" />
82 <fieldset class="action">
83 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
88 [% IF ( delete_confirm ) %]
89 <div class="dialog alert">
90 <h3>Delete City "[% city_name %]?"</h3>
96 <td>[% city_name %]</td>
99 <td>[% city_state %]</td>
101 <tr><th>Zip/Postal code</th>
102 <td>[% city_zipcode %]</td>
105 <td>[% city_country %]</td>
108 <form action="[% script_name %]" method="post">
109 <input type="hidden" name="op" value="delete_confirmed" />
110 <input type="hidden" name="cityid" value="[% cityid %]" />
111 <input type="submit" class="approve" value="Yes, Delete" />
113 <form action="[% script_name %]" method="get">
114 <input type="submit" class="deny" value="No, do not Delete" />
121 <div id="toolbar" class="btn-toolbar">
122 <a class="btn btn-small" id="newcity" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New city</a>
126 [% IF ( searchfield ) %]
127 Searching: [% searchfield %]
131 <table id="table_cities">
136 <th>Zip/Postal code</th>
141 [% FOREACH loo IN loop %]
142 [% UNLESS ( loop.odd ) %]
143 <tr class="highlight">
147 <td>[% loo.cityid %]</td>
148 <td>[% loo.city_name %]</td>
149 <td>[% loo.city_state %]</td>
150 <td>[% loo.city_zipcode %]</td>
151 <td>[% loo.city_country %]</td>
152 <td><a href="[% loo.script_name %]?op=add_form&cityid=[% loo.cityid %]">Edit</a></td>
153 <td><a href="[% loo.script_name %]?op=delete_confirm&cityid=[% loo.cityid %]">Delete</a></td>
162 [% INCLUDE 'admin-menu.inc' %]
165 [% INCLUDE 'intranet-bottom.inc' %]