|
Lines 5-17
Link Here
|
| 5 |
[% INCLUDE 'datatables.inc' %] |
5 |
[% INCLUDE 'datatables.inc' %] |
| 6 |
<script type="text/javascript"> |
6 |
<script type="text/javascript"> |
| 7 |
//<![CDATA[ |
7 |
//<![CDATA[ |
| 8 |
function Check(f) { |
|
|
| 9 |
if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) { |
| 10 |
alert(_("City name & zipcode missing")); |
| 11 |
} else{ |
| 12 |
document.Aform.submit(); |
| 13 |
} |
| 14 |
} |
| 15 |
$(document).ready(function() { |
8 |
$(document).ready(function() { |
| 16 |
$("#table_cities").dataTable($.extend(true, {}, dataTablesDefaults, { |
9 |
$("#table_cities").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 17 |
"aoColumnDefs": [ |
10 |
"aoColumnDefs": [ |
|
Lines 53-59
Link Here
|
| 53 |
<h1>New city</h1> |
46 |
<h1>New city</h1> |
| 54 |
[% END %] |
47 |
[% END %] |
| 55 |
|
48 |
|
| 56 |
<form action="[% script_name %]" name="Aform" method="post"> |
49 |
<form action="[% script_name %]" name="Aform" method="post" class="validated"> |
| 57 |
<input type="hidden" name="op" value="add_validate" /> |
50 |
<input type="hidden" name="op" value="add_validate" /> |
| 58 |
<input type="hidden" name="checked" value="0" /> |
51 |
<input type="hidden" name="checked" value="0" /> |
| 59 |
<input type="hidden" name="cityid" value="[% cityid %]" /> |
52 |
<input type="hidden" name="cityid" value="[% cityid %]" /> |
|
Lines 63-78
Link Here
|
| 63 |
<span class="label">City ID: </span>[% cityid %]</li> |
56 |
<span class="label">City ID: </span>[% cityid %]</li> |
| 64 |
[% END %] |
57 |
[% END %] |
| 65 |
<li> |
58 |
<li> |
| 66 |
<label for="city_name" class="required" title="required">City: </label> |
59 |
<label for="city_name" class="required">City: </label> |
| 67 |
<input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city_name |html %]" /> |
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> |
| 68 |
</li> |
61 |
</li> |
| 69 |
<li> |
62 |
<li> |
| 70 |
<label for="city_state">State: </label> |
63 |
<label for="city_state">State: </label> |
| 71 |
<input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city_state |html %]" /> |
64 |
<input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city_state |html %]" /> |
| 72 |
</li> |
65 |
</li> |
| 73 |
<li> |
66 |
<li> |
| 74 |
<label for="city_zipcode" class="required" title="required">Zip/Postal code: </label> |
67 |
<label for="city_zipcode" class="required">Zip/Postal code: </label> |
| 75 |
<input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city_zipcode %]" /> |
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> |
| 76 |
</li> |
69 |
</li> |
| 77 |
<li> |
70 |
<li> |
| 78 |
<label for="city_country">Country: </label> |
71 |
<label for="city_country">Country: </label> |
|
Lines 80-86
Link Here
|
| 80 |
</li></ol></fieldset> |
73 |
</li></ol></fieldset> |
| 81 |
|
74 |
|
| 82 |
<fieldset class="action"> |
75 |
<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> |
76 |
<input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a> |
| 84 |
</fieldset> |
77 |
</fieldset> |
| 85 |
</form> |
78 |
</form> |
| 86 |
|
79 |
|
| 87 |
- |
|
|