|
Lines 1-5
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
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> |
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' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 5 |
[% INCLUDE 'datatables.inc' %] |
5 |
[% INCLUDE 'datatables.inc' %] |
|
Lines 26-148
Link Here
|
| 26 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
26 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
| 27 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
27 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
| 28 |
› <a href="/cgi-bin/koha/admin/cities.pl">Cities</a> |
28 |
› <a href="/cgi-bin/koha/admin/cities.pl">Cities</a> |
| 29 |
[% IF ( add_form ) %] |
29 |
[% IF op == 'add_form' %] |
| 30 |
› [% IF ( cityid ) %]Modify[% ELSE %]New[% END %] City |
30 |
› [% IF city.cityid %]Modify[% ELSE %]New[% END %] City |
| 31 |
[% ELSIF ( delete_confirm ) %] |
31 |
[% ELSIF op == 'delete_confirm' %] |
| 32 |
› Confirm deletion of city |
32 |
› Confirm deletion of city |
| 33 |
[% END %] |
33 |
[% END %] |
| 34 |
</div> |
34 |
</div> |
| 35 |
|
35 |
|
| 36 |
<div id="doc3" class="yui-t2"> |
36 |
<div id="doc3" class="yui-t2"> |
| 37 |
|
37 |
|
| 38 |
<div id="bd"> |
38 |
<div id="bd"> |
| 39 |
<div id="yui-main"> |
39 |
<div id="yui-main"> |
| 40 |
<div class="yui-b"> |
40 |
<div class="yui-b"> |
|
|
41 |
|
| 42 |
[% FOR m IN messages %] |
| 43 |
<div class="dialog [% m.type %]"> |
| 44 |
[% SWITCH m.code %] |
| 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. |
| 59 |
[% CASE %] |
| 60 |
[% m.code %] |
| 61 |
[% END %] |
| 62 |
</div> |
| 63 |
[% END %] |
| 41 |
|
64 |
|
| 42 |
[% IF ( add_form ) %] |
65 |
[% IF op == 'add_form' %] |
| 43 |
[% IF ( cityid ) %] |
66 |
[% IF city %] |
| 44 |
<h1>Modify a city</h1> |
67 |
<h1>Modify a city</h1> |
| 45 |
[% ELSE %] |
68 |
[% ELSE %] |
| 46 |
<h1>New city</h1> |
69 |
<h1>New city</h1> |
| 47 |
[% END %] |
70 |
[% END %] |
| 48 |
|
71 |
|
| 49 |
<form action="[% script_name %]" name="Aform" method="post" class="validated"> |
72 |
<form action="/cgi-bin/koha/admin/cities.pl" name="Aform" method="post" class="validated"> |
| 50 |
<input type="hidden" name="op" value="add_validate" /> |
73 |
<input type="hidden" name="op" value="add_validate" /> |
| 51 |
<input type="hidden" name="checked" value="0" /> |
74 |
<input type="hidden" name="cityid" value="[% city.cityid %]" /> |
| 52 |
<input type="hidden" name="cityid" value="[% cityid %]" /> |
|
|
| 53 |
|
75 |
|
| 54 |
<fieldset class="rows"><ol> [% IF ( cityid ) %] |
76 |
<fieldset class="rows"> |
| 55 |
<li> |
77 |
<ol> |
| 56 |
<span class="label">City ID: </span>[% cityid %]</li> |
78 |
[% IF city %] |
| 57 |
[% END %] |
79 |
<li><span class="label">City ID: </span>[% city.cityid %]</li> |
| 58 |
<li> |
80 |
[% END %] |
| 59 |
<label for="city_name" class="required">City: </label> |
81 |
<li> |
| 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> |
82 |
<label for="city_name" class="required">City: </label> |
| 61 |
</li> |
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> |
| 62 |
<li> |
84 |
</li> |
| 63 |
<label for="city_state">State: </label> |
85 |
<li> |
| 64 |
<input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city_state |html %]" /> |
86 |
<label for="city_state">State: </label> |
| 65 |
</li> |
87 |
<input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city.city_state |html %]" /> |
| 66 |
<li> |
88 |
</li> |
| 67 |
<label for="city_zipcode" class="required">Zip/Postal code: </label> |
89 |
<li> |
| 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> |
90 |
<label for="city_zipcode" class="required">Zip/Postal code: </label> |
| 69 |
</li> |
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> |
| 70 |
<li> |
92 |
</li> |
| 71 |
<label for="city_country">Country: </label> |
93 |
<li> |
| 72 |
<input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city_country |html %]" /> |
94 |
<label for="city_country">Country: </label> |
| 73 |
</li></ol></fieldset> |
95 |
<input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city.city_country |html %]" /> |
| 74 |
|
96 |
</li> |
| 75 |
<fieldset class="action"> |
97 |
</ol> |
| 76 |
<input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a> |
98 |
</fieldset> |
| 77 |
</fieldset> |
|
|
| 78 |
</form> |
| 79 |
|
99 |
|
|
|
100 |
<fieldset class="action"> |
| 101 |
<input type="submit" value="Submit" /> |
| 102 |
<a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a> |
| 103 |
</fieldset> |
| 104 |
</form> |
| 80 |
[% END %] |
105 |
[% END %] |
| 81 |
[% IF ( delete_confirm ) %] |
106 |
|
|
|
107 |
[% IF op == 'delete_confirm' %] |
| 82 |
<div class="dialog alert"> |
108 |
<div class="dialog alert"> |
| 83 |
<h3>Delete City "[% city_name %]?"</h3> |
109 |
<h3>Delete City "[% city.city_name %]?"</h3> |
| 84 |
<table> |
110 |
<table> |
| 85 |
<tr><th>City id</th> |
111 |
<tr><th>City id</th> |
| 86 |
<td>[% cityid %]</td> |
112 |
<td>[% city.cityid %]</td> |
| 87 |
</tr> |
113 |
</tr> |
| 88 |
<tr><th>City</th> |
114 |
<tr><th>City</th> |
| 89 |
<td>[% city_name %]</td> |
115 |
<td>[% city.city_name %]</td> |
| 90 |
</tr> |
116 |
</tr> |
| 91 |
<tr><th>State</th> |
117 |
<tr><th>State</th> |
| 92 |
<td>[% city_state %]</td> |
118 |
<td>[% city.city_state %]</td> |
| 93 |
</tr> |
119 |
</tr> |
| 94 |
<tr><th>Zip/Postal code</th> |
120 |
<tr><th>Zip/Postal code</th> |
| 95 |
<td>[% city_zipcode %]</td> |
121 |
<td>[% city.city_zipcode %]</td> |
| 96 |
</tr> |
122 |
</tr> |
| 97 |
<tr><th>Country</th> |
123 |
<tr><th>Country</th> |
| 98 |
<td>[% city_country %]</td> |
124 |
<td>[% city.city_country %]</td> |
| 99 |
</tr> |
125 |
</tr> |
| 100 |
</table> |
126 |
</table> |
| 101 |
<form action="[% script_name %]" method="post"> |
127 |
<form action="/cgi-bin/koha/admin/cities.pl" method="post"> |
| 102 |
<input type="hidden" name="op" value="delete_confirmed" /> |
128 |
<input type="hidden" name="op" value="delete_confirmed" /> |
| 103 |
<input type="hidden" name="cityid" value="[% cityid %]" /> |
129 |
<input type="hidden" name="cityid" value="[% city.cityid %]" /> |
| 104 |
<input type="submit" class="approve" value="Yes, delete" /> |
130 |
<input type="submit" class="approve" value="Yes, delete" /> |
| 105 |
</form> |
131 |
</form> |
| 106 |
<form action="[% script_name %]" method="get"> |
132 |
<form action="/cgi-bin/koha/admin/cities.pl" method="get"> |
| 107 |
<input type="submit" class="deny" value="No, do not Delete" /> |
133 |
<input type="submit" class="deny" value="No, do not Delete" /> |
| 108 |
</form> |
134 |
</form> |
| 109 |
</div> |
135 |
</div> |
| 110 |
[% END %] |
136 |
[% END %] |
| 111 |
|
137 |
|
| 112 |
[% IF ( else ) %] |
138 |
[% IF op == 'list' %] |
| 113 |
|
139 |
|
| 114 |
<div id="toolbar" class="btn-toolbar"> |
140 |
<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> |
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> |
| 116 |
</div> |
142 |
</div> |
| 117 |
|
143 |
|
| 118 |
<h2>Cities</h2> |
144 |
<h2>Cities</h2> |
| 119 |
[% IF ( searchfield ) %] |
145 |
[% IF searchfield %] |
| 120 |
Searching: [% searchfield %] |
146 |
Searching: [% searchfield %] |
| 121 |
[% END %] |
147 |
[% END %] |
| 122 |
|
148 |
|
| 123 |
[% IF ( loop ) %] |
149 |
[% IF cities %] |
| 124 |
<table id="table_cities"> |
150 |
<table id="table_cities"> |
| 125 |
<thead> |
151 |
<thead> |
| 126 |
<th>City ID</th> |
152 |
<th>City ID</th> |
| 127 |
<th>City</th> |
153 |
<th>City</th> |
| 128 |
<th>State</th> |
154 |
<th>State</th> |
| 129 |
<th>Zip/Postal code</th> |
155 |
<th>Zip/Postal code</th> |
| 130 |
<th>Country</th> |
156 |
<th>Country</th> |
| 131 |
<th> </th> |
157 |
<th> </th> |
| 132 |
<th> </th> |
158 |
<th> </th> |
| 133 |
</thead> |
159 |
</thead> |
| 134 |
[% FOREACH loo IN loop %] |
160 |
<tbody> |
| 135 |
<tr> |
161 |
[% FOREACH city IN cities %] |
| 136 |
<td>[% loo.cityid %]</td> |
162 |
<tr> |
| 137 |
<td>[% loo.city_name %]</td> |
163 |
<td>[% city.cityid %]</td> |
| 138 |
<td>[% loo.city_state %]</td> |
164 |
<td>[% city.city_name %]</td> |
| 139 |
<td>[% loo.city_zipcode %]</td> |
165 |
<td>[% city.city_state %]</td> |
| 140 |
<td>[% loo.city_country %]</td> |
166 |
<td>[% city.city_zipcode %]</td> |
| 141 |
<td><a href="[% loo.script_name %]?op=add_form&cityid=[% loo.cityid %]">Edit</a></td> |
167 |
<td>[% city.city_country %]</td> |
| 142 |
<td><a href="[% loo.script_name %]?op=delete_confirm&cityid=[% loo.cityid %]">Delete</a></td> |
168 |
<td><a href="/cgi-bin/koha/admin/cities.pl?op=add_form&cityid=[% city.cityid %]">Edit</a></td> |
| 143 |
</tr> |
169 |
<td><a href="/cgi-bin/koha/admin/cities.pl?op=delete_confirm&cityid=[% city.cityid %]">Delete</a></td> |
| 144 |
[% END %] |
170 |
</tr> |
| 145 |
</table>[% END %] |
171 |
[% END %] |
|
|
172 |
</tbody> |
| 173 |
</table> |
| 174 |
[% ELSE %] |
| 175 |
There is no city defined. <a href="/cgi-bin/koha/admin/cities.pl?op=add_form">Create a new city</a>. |
| 176 |
[% END %] |
| 146 |
[% END %] |
177 |
[% END %] |
| 147 |
|
178 |
|
| 148 |
</div> |
179 |
</div> |
| 149 |
- |
|
|