Adding admin template files
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / admin / 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.inc" -->
6
7 <!-- TMPL_INCLUDE NAME="menus.inc" -->
8 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
9
10 <!-- 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" value="Submit" /></p>
61 </form>
62 <!-- /TMPL_IF -->
63
64 <!-- TMPL_IF name="delete_confirm" -->
65         <h3>Confirm deletion of <!-- TMPL_VAR NAME="branchname" --> (<!-- TMPL_VAR NAME="branchcode" -->)?</h3>
66         <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="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branchname" escape="HTML" -->">
70                 <input type="submit" value="Delete Branch" />
71         </form> 
72         <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
73                 <input type="submit" value="Do Not Delete" />
74         </form></span>
75 <!-- /TMPL_IF -->
76
77 <!-- TMPL_IF name="else" -->
78         
79         <!-- TMPL_IF NAME="message" --><div class="error"><!-- TMPL_VAR name="message" --><!-- /TMPL_IF -->
80         <table>
81         <caption><!-- TMPL_VAR name="head" --></caption>
82                 <tr>
83                         <th>Name</th>
84                         <th>Code</th>
85                         <th>Address</th>
86                         <th>Category</th>
87                         <th>&nbsp;</th>
88                         <th>&nbsp;</th>
89                 </tr>
90                 <!-- TMPL_LOOP name="branches" -->
91                         <tr>
92                                 <td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
93                                 <td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
94                                 <td>
95                                         <!-- TMPL_IF name="address-empty-p" -->
96                                                 (nothing entered)
97                                         <!-- TMPL_ELSE -->
98                                                 <!-- TMPL_IF name="branchaddress1" -->
99                                                         <!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
100                                                 <!-- TMPL_IF name="branchaddress2" -->
101                                                         <br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
102                                                 <!-- TMPL_IF name="branchaddress3" -->
103                                                         <br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
104                                                 <!-- TMPL_IF name=branchphone -->
105                                                         <br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
106                                                 <!-- TMPL_IF name="branchfax" -->
107                                                         <br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
108                                                 <!-- TMPL_IF name="branchemail" -->
109                                                         <br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
110                                         <!-- /TMPL_IF -->
111                                 </td>
112                                 <td>
113                                         <!-- TMPL_IF name="no-categories-p" -->
114                                                 (no categories set)
115                                         <!-- TMPL_ELSE -->
116                                                 <!-- TMPL_LOOP name="category_list" -->
117                                                         <!-- TMPL_VAR name="categoryname" --><br />
118                                                 <!-- /TMPL_LOOP -->
119                                         <!-- /TMPL_IF -->
120                                 </td>
121                                 <td>
122                                         <form action="<!-- TMPL_VAR name=action -->" method="post">
123                                         <input type="hidden" name="op" value="edit" />
124                                         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
125                                         <input type="submit" value="Edit" />
126                                         </form>
127                                 </td>
128                                 <td>
129                                         <form action="<!-- TMPL_VAR name=action -->" method="post">
130                                         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name=value escape="HTML" -->" />
131 <input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branch_name" escape="HTML" -->">
132                                         <input type="hidden" name="op" value="delete" /><input type="submit" value="Delete" />
133                                         </form>
134                                 </td>
135                         </tr>
136                 <!-- /TMPL_LOOP -->
137         </table>
138 <form action="<!-- TMPL_VAR name=action -->" method="post">
139                 <p><input type="hidden" name="op" value="add" />
140                 <input type="submit" value="Add New Branch" /></p>
141         </form>
142         
143         <table>
144         <caption>Branches Categories</caption>
145         <tr>
146                 <th>Name</th>
147                 <th>Code</th>
148                 <th>Description</th>
149                 <th>&nbsp;</th>
150                 <th>&nbsp;</th>
151         </tr>
152         <!-- TMPL_LOOP name="branchcategories" -->
153                 <tr>
154                 <td><!-- TMPL_VAR name="categoryname" --></td>
155                 <td><!-- TMPL_VAR name="categorycode" --></td>
156                 <td><!-- TMPL_VAR name="codedescription" --></td>
157                 <td>
158                         <form action="<!-- TMPL_VAR name=action -->" method="post">
159                         <input type="hidden" name="op" value="editcategory" />
160                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
161                         <input type="submit" value="Edit" />
162                         </form>
163                 </td>
164                 <td>
165                         <form action="<!-- TMPL_VAR name=action -->" method="post">
166                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
167                         <input type="hidden" name="op" value="delete_category" /><input type="submit" value="Delete" />
168                         </form>
169                 </td>
170                 </tr>
171         <!-- /TMPL_LOOP -->
172         </table><form action="<!-- TMPL_VAR name="action" -->" method="post"><p>
173                 <input type="hidden" name="op" value="editcategory" />
174                 <input type="submit" value="Add New Category" /></p>
175         </form>
176 <!-- /TMPL_IF -->
177
178 <!-- TMPL_IF name="editcategory" -->
179         
180         <form action="<!-- TMPL_VAR name=action -->" name="Aform" method="post">
181         <input type="hidden" name=op value="addcategory_validate" />
182         <table>
183                 <caption><!-- TMPL_VAR name="head" --></caption>
184                 <tr>
185                         <td>Category code</td>
186                         <td>
187                                 <!-- TMPL_IF name="categorycode" -->
188                                         <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
189                                         <!-- TMPL_VAR name="categorycode" -->
190                                 <!-- TMPL_ELSE -->
191                                         <input type="text" name="categorycode" size="5" maxlength="5" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
192                                 <!-- /TMPL_IF -->
193                         </td>
194                 </tr>
195                 <tr>
196                         <td>Name</td>
197                         <td><input type="text" name="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name=categoryname escape="HTML" -->" />&nbsp;</td>
198                 </tr>
199                 <tr>
200                         <td>Description</td>
201                         <td><input type="text" name="codedescription" size="40" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />&nbsp;</td>
202                 </tr>
203         </table><input type="submit" value="Update" />
204         </form>
205 <!-- /TMPL_IF -->
206
207 <!-- TMPL_IF name="delete_category" -->
208         Confirm delete:
209         <form action="<!-- TMPL_VAR name=action -->" method="post">
210                 <input type="hidden" name="op" value="categorydelete_confirmed" />
211                 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name=categorycode escape="HTML" -->" />
212                 <input type="submit" value="YES" />
213         </form>
214         <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
215                 <input type="submit" value="NO" />
216         </form>
217 <!-- /TMPL_IF -->
218
219 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->