Mostly cosmetic changes, including more informative page titles
[koha.git] / koha-tmpl / intranet-tmpl / npl / en / parameters / branches.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: <!-- TMPL_IF name="add" --><!-- TMPL_VAR name="head" --><!-- /TMPL_IF -->
2 <!-- TMPL_IF name="delete_confirm" -->Confirm deletion of branch '<!-- TMPL_VAR NAME="branchcode" -->'<!-- /TMPL_IF -->
3 <!-- TMPL_IF name="else" --><!-- TMPL_VAR name="head" --><!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_category" -->Confirm deletion of category<!-- /TMPL_IF -->
5 <!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
6 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
7 <!-- TMPL_INCLUDE NAME="admin-topmenu.inc" -->
8 <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
9
10 <div id="main"><!-- TMPL_IF name="add" -->
11 <h1><!-- TMPL_VAR name="head" --></h1>
12 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
13 <input type="hidden" name="op" value="add_validate" />
14 <table>
15         <tr>
16                 <td>Branch code</td>
17                 <td>
18                         <!-- TMPL_IF name="branchcode" -->
19                                 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
20                                 <!-- TMPL_VAR name="branchcode" -->
21                         <!-- TMPL_ELSE -->
22                                 <input type="text" name="branchcode" size="5" maxlength="5" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
23                         <!-- /TMPL_IF -->
24                 </td>
25         </tr>
26         <tr>
27                 <td>Name</td>
28                 <td><input type="text" name="branchname" size="40" maxlength="80" value="<!-- TMPL_VAR name="branchname" escape="HTML" -->" />&nbsp;</td>
29         </tr>
30 <!-- TMPL_LOOP name="categoryloop" -->
31                                         <tr>
32                                                 <td><!-- TMPL_VAR name="categoryname" --></td>
33                                                 <td><input type="checkbox" name="<!-- TMPL_VAR name="categorycode" -->" <!-- TMPL_VAR name="checked" --> /><!-- TMPL_VAR name="codedescription" --></td>
34                                         </tr>
35                                 <!-- /TMPL_LOOP -->
36 <tr>
37                 <td>Address</td>
38                 <td><input type="text" name="branchaddress1" value="<!-- TMPL_VAR name="branchaddress1" escape="HTML" -->" /></td>
39         </tr>
40         <tr>
41                 <td>&nbsp;</td>
42                 <td><input type="text" name="branchaddress2" value="<!-- TMPL_VAR name="branchaddress2" escape="HTML" -->" /></td>
43         </tr>
44         <tr>
45                 <td>&nbsp;</td>
46                 <td><input type="text" name="branchaddress3" value="<!-- TMPL_VAR name="branchaddress3" escape="HTML" -->" /></td>
47         </tr>
48         <tr>
49                 <td>Phone</td>
50                 <td><input type="text" name="branchphone" value="<!-- TMPL_VAR name="branchphone" escape="HTML" -->" /></td>
51         </tr>
52         <tr>
53                 <td>Fax</td>
54                 <td><input type="text" name="branchfax" value="<!-- TMPL_VAR name="branchfax" escape="HTML" -->" /></td>
55         </tr>
56         <tr>
57                 <td>E-mail</td>
58                 <td><input type="text" name="branchemail" value="<!-- TMPL_VAR name="branchemail" escape="HTML" -->" /></td>
59         </tr>
60 </table><p><input type="submit" class="submit" value="Submit" /></p>
61 </form>
62 <!-- /TMPL_IF -->
63
64 <!-- TMPL_IF name="delete_confirm" -->
65         <h3>Confirm Deletion of Branch <!-- TMPL_VAR NAME="branchcode" -->:</h3>
66         <div class="tabitem"><span class="form"><form action="<!-- TMPL_VAR name="action" -->" method="post">
67                 <input type="hidden" name="op" value="delete_confirmed" />
68                 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
69                 <input type="submit" value="Delete Branch" class="cancel" />
70         </form> 
71         <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
72                 <input type="submit" value="Do Not Delete" class="submit" />
73         </form></span></div>
74 <!-- /TMPL_IF -->
75
76 <!-- TMPL_IF name="else" -->
77         
78         <div class="error"><!-- TMPL_VAR name="message" --></div>
79         <table>
80         <caption><!-- TMPL_VAR name="head" --></caption>
81                 <tr>
82                         <th>Name</th>
83                         <th>Code</th>
84                         <th>Address</th>
85                         <th>Category</th>
86                         <th>&nbsp;</th>
87                         <th>&nbsp;</th>
88                 </tr>
89                 <!-- TMPL_LOOP name="branches" -->
90                         <tr>
91                                 <td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
92                                 <td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
93                                 <td>
94                                         <!-- TMPL_IF name="address-empty-p" -->
95                                                 (nothing entered)
96                                         <!-- TMPL_ELSE -->
97                                                 <!-- TMPL_IF name="branchaddress1" -->
98                                                         <!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
99                                                 <!-- TMPL_IF name="branchaddress2" -->
100                                                         <br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
101                                                 <!-- TMPL_IF name="branchaddress3" -->
102                                                         <br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
103                                                 <!-- TMPL_IF name=branchphone -->
104                                                         <br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
105                                                 <!-- TMPL_IF name="branchfax" -->
106                                                         <br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
107                                                 <!-- TMPL_IF name="branchemail" -->
108                                                         <br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
109                                         <!-- /TMPL_IF -->
110                                 </td>
111                                 <td>
112                                         <!-- TMPL_IF name="no-categories-p" -->
113                                                 (no categories set)
114                                         <!-- TMPL_ELSE -->
115                                                 <!-- TMPL_LOOP name="category_list" -->
116                                                         <!-- TMPL_VAR name="categoryname" --><br />
117                                                 <!-- /TMPL_LOOP -->
118                                         <!-- /TMPL_IF -->
119                                 </td>
120                                 <td>
121                                         <form action="<!-- TMPL_VAR name=action -->" method="post">
122                                         <input type="hidden" name="op" value="edit" />
123                                         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
124                                         <input type="submit" value="Edit" class="submit" />
125                                         </form>
126                                 </td>
127                                 <td>
128                                         <form action="<!-- TMPL_VAR name=action -->" method="post">
129                                         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
130                                         <input type="hidden" name="op" value="delete" /><input type="submit" value="Delete" class="cancel" />
131                                         </form>
132                                 </td>
133                         </tr>
134                 <!-- /TMPL_LOOP -->
135         </table>
136 <form action="<!-- TMPL_VAR name=action -->" method="post">
137                 <p><input type="hidden" name="op" value="add" />
138                 <input type="submit" class="submit" value="Add New Branch" /></p>
139         </form>
140         
141         <table>
142         <caption>Branches Categories</caption>
143         <tr>
144                 <th>Name</th>
145                 <th>Code</th>
146                 <th>Description</th>
147                 <th>&nbsp;</th>
148                 <th>&nbsp;</th>
149         </tr>
150         <!-- TMPL_LOOP name="branchcategories" -->
151                 <tr>
152                 <td><!-- TMPL_VAR name="categoryname" --></td>
153                 <td><!-- TMPL_VAR name="categorycode" --></td>
154                 <td><!-- TMPL_VAR name="codedescription" --></td>
155                 <td>
156                         <form action="<!-- TMPL_VAR name=action -->" method="post">
157                         <input type="hidden" name="op" value="editcategory" />
158                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
159                         <input type="submit" value="Edit" class="submit" />
160                         </form>
161                 </td>
162                 <td>
163                         <form action="<!-- TMPL_VAR name=action -->" method="post">
164                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
165                         <input type="hidden" name="op" value="delete_category" /><input type="submit" value="Delete" class="cancel" />
166                         </form>
167                 </td>
168                 </tr>
169         <!-- /TMPL_LOOP -->
170         </table><form action="<!-- TMPL_VAR name="action" -->" method="post"><p>
171                 <input type="hidden" name="op" value="editcategory" />
172                 <input type="submit" class="submit" value="Add New Category" /></p>
173         </form>
174 <!-- /TMPL_IF -->
175
176 <!-- TMPL_IF name="editcategory" -->
177         
178         <form action="<!-- TMPL_VAR name=action -->" name="Aform" method="post">
179         <input type="hidden" name=op value="addcategory_validate" />
180         <table>
181                 <caption><!-- TMPL_VAR name="head" --></caption>
182                 <tr>
183                         <td>Category code</td>
184                         <td>
185                                 <!-- TMPL_IF name="categorycode" -->
186                                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
187                                         <!-- TMPL_VAR name="categorycode" -->
188                                 <!-- TMPL_ELSE -->
189                                         <input type="text" name="categorycode" size="5" maxlength="5" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
190                                 <!-- /TMPL_IF -->
191                         </td>
192                 </tr>
193                 <tr>
194                         <td>Name</td>
195                         <td><input type="text" name="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name=categoryname escape="HTML" -->" />&nbsp;</td>
196                 </tr>
197                 <tr>
198                         <td>Description</td>
199                         <td><input type="text" name="codedescription" size="40" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />&nbsp;</td>
200                 </tr>
201         </table><input type="submit" value="Update" class="submit" />
202         </form>
203 <!-- /TMPL_IF -->
204
205 <!-- TMPL_IF name="delete_category" -->
206         Confirm delete:
207 <div class="tabitem">   <form action="<!-- TMPL_VAR name=action -->" method="post">
208                 <input type="hidden" name="op" value="categorydelete_confirmed" />
209                 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
210                 <input type="submit" value="YES" class="submit" />
211         </form>
212         <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
213                 <input type="submit" value="NO" class="cancel" />
214         </form></div>
215 <!-- /TMPL_IF --></div>
216
217 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->