Lines 1-10
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Administration › Libraries and groups |
2 |
<title>Koha › Administration › Libraries |
3 |
[% IF op == 'editcategory' %] |
3 |
[% IF op == 'add_form' %] |
4 |
›[% IF category.categorycode %]Edit group [% category.categorycode%][% ELSE %]New group[% END %] |
|
|
5 |
[% ELSIF op == 'delete_confirm_category' %] |
6 |
› Confirm deletion of group [% category.categorycode %] |
7 |
[% ELSIF op == 'add_form' %] |
8 |
›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
4 |
›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
9 |
[% ELSIF op == 'delete_confirm' %] |
5 |
[% ELSIF op == 'delete_confirm' %] |
10 |
› Confirm deletion of library '[% library.branchcode %]' |
6 |
› Confirm deletion of library '[% library.branchcode %]' |
Lines 61-72
tinyMCE.init({
Link Here
|
61 |
<div id="breadcrumbs"> |
57 |
<div id="breadcrumbs"> |
62 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
58 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
63 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
59 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
64 |
› <a href="/cgi-bin/koha/admin/branches.pl">Libraries and groups</a> |
60 |
› <a href="/cgi-bin/koha/admin/branches.pl">Libraries</a> |
65 |
[% IF op == 'add_form_category' %] |
61 |
[% IF op == 'add_form' %] |
66 |
› [% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]New group[% END %] |
|
|
67 |
[% ELSIF op == 'delete_confirm_category' %] |
68 |
› Confirm deletion of group [% category.categorycode %] |
69 |
[% ELSIF op == 'add_form' %] |
70 |
› [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
62 |
› [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
71 |
[% ELSIF op == 'delete_confirm' %] |
63 |
[% ELSIF op == 'delete_confirm' %] |
72 |
› Confirm deletion of library '[% library.branchcode %]' |
64 |
› Confirm deletion of library '[% library.branchcode %]' |
Lines 126-132
tinyMCE.init({
Link Here
|
126 |
[% IF op == 'list' %] |
118 |
[% IF op == 'list' %] |
127 |
<div id="toolbar" class="btn-toolbar"> |
119 |
<div id="toolbar" class="btn-toolbar"> |
128 |
<a class="btn btn-small" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> New library</a> |
120 |
<a class="btn btn-small" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> New library</a> |
129 |
<a class="btn btn-small" id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=add_form_category"><i class="fa fa-plus"></i> New group</a> |
|
|
130 |
</div> |
121 |
</div> |
131 |
[% END %] |
122 |
[% END %] |
132 |
|
123 |
|
Lines 225-231
tinyMCE.init({
Link Here
|
225 |
<th>Name</th> |
216 |
<th>Name</th> |
226 |
<th>Code</th> |
217 |
<th>Code</th> |
227 |
<th>Address</th> |
218 |
<th>Address</th> |
228 |
<th>Properties</th> |
|
|
229 |
<th>IP</th> |
219 |
<th>IP</th> |
230 |
<th>Actions</th> |
220 |
<th>Actions</th> |
231 |
</tr> |
221 |
</tr> |
Lines 262-272
tinyMCE.init({
Link Here
|
262 |
[% IF library.branchnotes %] |
252 |
[% IF library.branchnotes %] |
263 |
<br />Notes: [% library.branchnotes |html %][% END %] |
253 |
<br />Notes: [% library.branchnotes |html %][% END %] |
264 |
</td> |
254 |
</td> |
265 |
<td> |
|
|
266 |
[% FOREACH category IN library.get_categories %] |
267 |
[% category.categoryname %]<br /> |
268 |
[% END %] |
269 |
</td> |
270 |
<td>[% library.branchip %]</td> |
255 |
<td>[% library.branchip %]</td> |
271 |
<td class="actions"> |
256 |
<td class="actions"> |
272 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a> |
257 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a> |
Lines 279-397
tinyMCE.init({
Link Here
|
279 |
[% ELSE %] |
264 |
[% ELSE %] |
280 |
<div class="dialog message">There are no libraries defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">Start defining libraries</a>.</div> |
265 |
<div class="dialog message">There are no libraries defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">Start defining libraries</a>.</div> |
281 |
[% END %] |
266 |
[% END %] |
282 |
|
|
|
283 |
[% IF group_types %] |
284 |
[% FOREACH group_type IN group_types %] |
285 |
<h3>[% IF group_type.categorytype == 'properties' %]Properties[% ELSIF group_type.categorytype == 'searchdomain' %]Search domain[% END %]</h3> |
286 |
[% IF group_type.categories.size %] |
287 |
<table> |
288 |
<thead> |
289 |
<tr> |
290 |
<th>Name</th> |
291 |
<th>Code</th> |
292 |
<th>Description</th> |
293 |
<th>Actions</th> |
294 |
</tr> |
295 |
</thead> |
296 |
<tbody> |
297 |
[% FOREACH category IN group_type.categories %] |
298 |
<tr> |
299 |
<td>[% category.categoryname %]</td> |
300 |
<td>[% category.categorycode %]</td> |
301 |
<td>[% category.codedescription %]</td> |
302 |
<td class="actions"> |
303 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a> |
304 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a> |
305 |
</td> |
306 |
</tr> |
307 |
[% END %] |
308 |
</tbody> |
309 |
</table> |
310 |
[% ELSE %] |
311 |
[% IF group_type.categorytype == 'properties' %] |
312 |
No properties defined. |
313 |
[% ELSIF group_type.categorytype == 'searchdomain' %] |
314 |
No search domain defined. |
315 |
[% END %] |
316 |
<a href="/cgi-bin/koha/admin/branches.pl?op=add_form_category">Add a new group</a>. |
317 |
[% END %] |
318 |
[% END %] |
319 |
[% ELSE %] |
320 |
<p>No groups defined.</p> |
321 |
[% END %] |
322 |
[% END %] |
323 |
|
324 |
[% IF op == 'add_form_category' %] |
325 |
<h3>[% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]Add group[% END %]</h3> |
326 |
<form action="/cgi-bin/koha/admin/branches.pl" name="Aform" method="post" class="validated"> |
327 |
<input type="hidden" name="op" value="add_validate_category" /> |
328 |
[% IF category.categorycode %] |
329 |
<input type="hidden" name="is_a_modif" value="1" /> |
330 |
[% END %] |
331 |
<fieldset class="rows"> |
332 |
<ol> |
333 |
<li> |
334 |
[% IF category.categorycode %] |
335 |
<span class="label">Category code: </span> |
336 |
<input type="hidden" name="categorycode" id="categorycode" value="[% category.categorycode |html %]" /> |
337 |
[% category.categorycode %] |
338 |
[% ELSE %] |
339 |
<label for="categorycode" class="required">Category code:</label> |
340 |
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" /> |
341 |
<span class="required">Required</span> |
342 |
[% END %] |
343 |
</li> |
344 |
<li> |
345 |
<label for="categoryname" class="required">Name: </label> |
346 |
<input type="text" name="categoryname" id="categoryname" size="32" maxlength="32" value="[% category.categoryname |html %]" class="required" required="required" /> |
347 |
<span class="required">Required</span> |
348 |
</li> |
349 |
<li> |
350 |
<label for="codedescription">Description: </label> |
351 |
<input type="text" name="codedescription" id="codedescription" size="70" value="[% category.codedescription |html %]" /> |
352 |
</li> |
353 |
<li> |
354 |
<label for="categorytype">Category type: </label> |
355 |
<select id="categorytype" name="categorytype"> |
356 |
[% IF category.categorytype == 'properties' %] |
357 |
<option value="searchdomain">Search domain</option> |
358 |
<option value="properties" selected="selected">Properties</option> |
359 |
[% ELSE %] |
360 |
<option value="searchdomain">Search domain</option> |
361 |
<option value="properties">Properties</option> |
362 |
|
363 |
[% END %] |
364 |
</select> |
365 |
</li> |
366 |
<li> |
367 |
<label for="show_in_pulldown">Show in search pulldown: </label> |
368 |
[% IF category.show_in_pulldown %] |
369 |
<input type="checkbox" name="show_in_pulldown" id="show_in_pulldown" checked="checked"/> |
370 |
[% ELSE %] |
371 |
<input type="checkbox" name="show_in_pulldown" id="show_in_pulldown" /> |
372 |
[% END %] |
373 |
</li> |
374 |
</ol> |
375 |
</fieldset> |
376 |
<fieldset class="action"> |
377 |
<input type="submit" value="Submit" /> |
378 |
<a href="/cgi-bin/koha/admin/branches.pl" class="cancel">Cancel</a> |
379 |
</fieldset> |
380 |
</form> |
381 |
[% END %] |
382 |
|
383 |
[% IF op == 'delete_confirm_category' %] |
384 |
<div class="dialog alert"> |
385 |
<h3>Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?</h3> |
386 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
387 |
<input type="hidden" name="op" value="delete_confirmed_category" /> |
388 |
<input type="hidden" name="categorycode" value="[% category.categorycode |html %]" /> |
389 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
390 |
</form> |
391 |
<form action="/cgi-bin/koha/admin/branches.pl" method="get"> |
392 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
393 |
</form> |
394 |
</div> |
395 |
[% END %] |
267 |
[% END %] |
396 |
|
268 |
|
397 |
</div> |
269 |
</div> |