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