Tighten up layout of item circulation alerts interface, putting checkout and checkin...
[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 name: </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">City zipcode: </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     <!-- TMPL_IF NAME="total" -->
73     <div class="dialog message">
74     <h3>Cannot Delete City "<!-- TMPL_VAR NAME="city_name" -->"</h3>
75     <p>This record is used <!-- TMPL_VAR NAME="total" --> times. Impossible to delete it</p>
76     <!-- TMPL_ELSE -->
77     <div class="dialog alert">
78     <h3>Delete City "<!-- TMPL_VAR NAME="city_name" -->?"</h3>
79     <!-- /TMPL_IF -->
80     <table>
81         <tr><th>City id</th>
82             <td><!-- TMPL_VAR NAME="cityid" --></td>
83         </tr>
84         <tr><th>City name</th>
85             <td><!-- TMPL_VAR NAME="city_name" --></td>
86         </tr>
87         <tr><th>City zipcode</th>
88             <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
89         </tr>
90     </table>
91     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
92     <!-- TMPL_IF NAME="total" -->
93         <input type="submit" class="approv" value="OK" />
94     <!-- TMPL_ELSE -->
95         <input type="hidden" name="op" value="delete_confirmed" />
96         <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" />
97         <input type="submit" class="approve" value="Yes, Delete" />
98     </form>
99     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
100         <input type="submit" class="deny" value="No, do not Delete" />
101     <!-- /TMPL_IF -->
102     </form>
103 </div>
104 <!-- /TMPL_IF -->
105
106 <!-- TMPL_IF NAME="else" -->
107
108 <div id="toolbar">
109         <ul class="toolbar">
110         <li><a id="newcity" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New City</a></li>
111 </ul></div>
112
113         <h2>Cities</h2>
114         <!-- TMPL_IF NAME="searchfield" -->
115                 Searching: <!-- TMPL_VAR NAME="searchfield" -->
116         <!-- /TMPL_IF -->
117
118 <!-- TMPL_IF NAME="loop" -->    <table>
119                 <tr>
120                         <th>City ID</th>
121                         <th>City name</th>
122                         <th>City zipcode</th>
123                         <th>&nbsp;</th>
124                         <th>&nbsp;</th>
125                 </tr>
126                 <!-- TMPL_LOOP NAME="loop" -->
127                 <!-- TMPL_UNLESS NAME="__odd__" -->
128                 <tr class="highlight">
129                 <!-- TMPL_ELSE -->
130                 <tr>
131                 <!-- /TMPL_UNLESS -->
132                         <td><!-- TMPL_VAR NAME="cityid" --></td>
133                         <td><!-- TMPL_VAR NAME="city_name" --></td>
134                         <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
135                         
136                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;cityid=<!-- TMPL_VAR NAME="cityid" -->">Edit</a></td>
137                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;cityid=<!-- TMPL_VAR NAME="cityid" -->">Delete</a></td>
138                 </tr>
139                 <!-- /TMPL_LOOP -->
140         </table><!-- /TMPL_IF -->
141 <!-- /TMPL_IF -->
142
143 </div>
144 </div>
145 <div class="yui-b">
146 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
147 </div>
148 </div>
149 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
150