Merge remote branch 'kc/new/bug_5175' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / cities.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; <!-- TMPL_IF NAME="add_form" -->Cities &rsaquo; <!-- TMPL_IF NAME="cityid" --> Modify City<!-- TMPL_ELSE --> New City<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" -->Cities &rsaquo; Confirm Deletion of City<!-- TMPL_ELSE --> Cities<!-- /TMPL_IF --><!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 //<![CDATA[
6     function Check(f) {
7         if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
8             alert("City name & zipcode missing");
9         } else{
10             document.Aform.submit();
11         }
12     }
13     $(document).ready(function() {
14         new YAHOO.widget.Button("newcity");
15     });
16 //]]>
17 </script>
18 </head>
19 <body>
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21 <!-- TMPL_INCLUDE NAME="cities-admin-search.inc" -->
22
23 <div id="breadcrumbs">
24     <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25     &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
26     &rsaquo; <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
27     <!-- TMPL_IF NAME="add_form" -->
28     &rsaquo; <!-- TMPL_IF NAME="cityid" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> City
29     <!-- TMPL_ELSIF NAME="delete_confirm" -->
30     &rsaquo; Confirm Deletion of City
31     <!-- /TMPL_IF -->
32 </div>
33
34 <div id="doc3" class="yui-t2">
35    
36    <div id="bd">
37         <div id="yui-main">
38         <div class="yui-b">
39
40 <!-- TMPL_IF NAME="add_form" -->
41         <!-- TMPL_IF NAME="cityid" -->
42                 <h1>Modify a city</h1>
43         <!-- TMPL_ELSE -->
44                 <h1>New city</h1>
45         <!-- /TMPL_IF -->
46
47         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
48         <input type="hidden" name="op" value="add_validate" />
49         <input type="hidden" name="checked" value="0" />
50         <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" />
51
52 <fieldset class="rows"><ol>     <!-- TMPL_IF NAME="cityid" -->
53                 <li>
54                 <span class="label">City ID: </span><!-- TMPL_VAR NAME="cityid" --></li>
55         <!-- /TMPL_IF -->
56         <li>
57         <label for="city_name">City, State: </label>
58         <input type="text" name="city_name" id="city_name" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="city_name" ESCAPE="HTML" -->" />
59         </li>
60         <li>                            
61         <label for="city_zipcode">Zip/Postal code: </label>
62         <input type="text" name="city_zipcode" id="city_zipcode" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="city_zipcode" -->" />
63         </li></ol></fieldset>
64         
65         <fieldset class="action">
66                 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
67         </fieldset>
68         </form>
69
70 <!-- /TMPL_IF -->
71 <!-- TMPL_IF NAME="delete_confirm" -->
72     <div class="dialog alert">
73     <h3>Delete City "<!-- TMPL_VAR NAME="city_name" -->?"</h3>
74     <table>
75         <tr><th>City id</th>
76             <td><!-- TMPL_VAR NAME="cityid" --></td>
77         </tr>
78         <tr><th>City, State</th>
79             <td><!-- TMPL_VAR NAME="city_name" --></td>
80         </tr>
81         <tr><th>Zip/Postal code</th>
82             <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
83         </tr>
84     </table>
85     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
86         <input type="hidden" name="op" value="delete_confirmed" />
87         <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" />
88         <input type="submit" class="approve" value="Yes, Delete" />
89     </form>
90     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
91         <input type="submit" class="deny" value="No, do not Delete" />
92     </form>
93 </div>
94 <!-- /TMPL_IF -->
95
96 <!-- TMPL_IF NAME="else" -->
97
98 <div id="toolbar">
99         <ul class="toolbar">
100         <li><a id="newcity" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New City</a></li>
101 </ul></div>
102
103         <h2>Cities</h2>
104         <!-- TMPL_IF NAME="searchfield" -->
105                 Searching: <!-- TMPL_VAR NAME="searchfield" -->
106         <!-- /TMPL_IF -->
107
108 <!-- TMPL_IF NAME="loop" -->    <table>
109                 <tr>
110                         <th>City ID</th>
111                         <th>City, State</th>
112                         <th>Zip/Postal code</th>
113                         <th>&nbsp;</th>
114                         <th>&nbsp;</th>
115                 </tr>
116                 <!-- TMPL_LOOP NAME="loop" -->
117                 <!-- TMPL_UNLESS NAME="__odd__" -->
118                 <tr class="highlight">
119                 <!-- TMPL_ELSE -->
120                 <tr>
121                 <!-- /TMPL_UNLESS -->
122                         <td><!-- TMPL_VAR NAME="cityid" --></td>
123                         <td><!-- TMPL_VAR NAME="city_name" --></td>
124                         <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
125                         
126                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;cityid=<!-- TMPL_VAR NAME="cityid" -->">Edit</a></td>
127                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;cityid=<!-- TMPL_VAR NAME="cityid" -->">Delete</a></td>
128                 </tr>
129                 <!-- /TMPL_LOOP -->
130         </table><!-- /TMPL_IF -->
131 <!-- /TMPL_IF -->
132
133 </div>
134 </div>
135 <div class="yui-b">
136 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
137 </div>
138 </div>
139 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
140