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-default btn-sm" 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-default btn-sm" 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-default btn-sm" 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 282-400
tinyMCE.init({
Link Here
|
282 |
[% ELSE %] |
273 |
[% ELSE %] |
283 |
<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> |
274 |
<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> |
284 |
[% END %] |
275 |
[% END %] |
285 |
|
|
|
286 |
[% IF group_types %] |
287 |
[% FOREACH group_type IN group_types %] |
288 |
<h3>[% IF group_type.categorytype == 'properties' %]Properties[% ELSIF group_type.categorytype == 'searchdomain' %]Search domain[% END %]</h3> |
289 |
[% IF group_type.categories.size %] |
290 |
<table> |
291 |
<thead> |
292 |
<tr> |
293 |
<th>Name</th> |
294 |
<th>Code</th> |
295 |
<th>Description</th> |
296 |
<th>Actions</th> |
297 |
</tr> |
298 |
</thead> |
299 |
<tbody> |
300 |
[% FOREACH category IN group_type.categories %] |
301 |
<tr> |
302 |
<td>[% category.categoryname |html %]</td> |
303 |
<td>[% category.categorycode %]</td> |
304 |
<td>[% category.codedescription |html %]</td> |
305 |
<td class="actions"> |
306 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a> |
307 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a> |
308 |
</td> |
309 |
</tr> |
310 |
[% END %] |
311 |
</tbody> |
312 |
</table> |
313 |
[% ELSE %] |
314 |
[% IF group_type.categorytype == 'properties' %] |
315 |
No properties defined. |
316 |
[% ELSIF group_type.categorytype == 'searchdomain' %] |
317 |
No search domain defined. |
318 |
[% END %] |
319 |
<a href="/cgi-bin/koha/admin/branches.pl?op=add_form_category">Add a new group</a>. |
320 |
[% END %] |
321 |
[% END %] |
322 |
[% ELSE %] |
323 |
<p>No groups defined.</p> |
324 |
[% END %] |
325 |
[% END %] |
326 |
|
327 |
[% IF op == 'add_form_category' %] |
328 |
<h3>[% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]Add group[% END %]</h3> |
329 |
<form action="/cgi-bin/koha/admin/branches.pl" name="Aform" method="post" class="validated"> |
330 |
<input type="hidden" name="op" value="add_validate_category" /> |
331 |
[% IF category.categorycode %] |
332 |
<input type="hidden" name="is_a_modif" value="1" /> |
333 |
[% END %] |
334 |
<fieldset class="rows"> |
335 |
<ol> |
336 |
<li> |
337 |
[% IF category.categorycode %] |
338 |
<span class="label">Category code: </span> |
339 |
<input type="hidden" name="categorycode" id="categorycode" value="[% category.categorycode |html %]" /> |
340 |
[% category.categorycode %] |
341 |
[% ELSE %] |
342 |
<label for="categorycode" class="required">Category code:</label> |
343 |
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" /> |
344 |
<span class="required">Required</span> |
345 |
[% END %] |
346 |
</li> |
347 |
<li> |
348 |
<label for="categoryname" class="required">Name: </label> |
349 |
<input type="text" name="categoryname" id="categoryname" size="32" maxlength="32" value="[% category.categoryname |html %]" class="required" required="required" /> |
350 |
<span class="required">Required</span> |
351 |
</li> |
352 |
<li> |
353 |
<label for="codedescription">Description: </label> |
354 |
<input type="text" name="codedescription" id="codedescription" size="70" value="[% category.codedescription |html %]" /> |
355 |
</li> |
356 |
<li> |
357 |
<label for="categorytype">Category type: </label> |
358 |
<select id="categorytype" name="categorytype"> |
359 |
[% IF category.categorytype == 'properties' %] |
360 |
<option value="searchdomain">Search domain</option> |
361 |
<option value="properties" selected="selected">Properties</option> |
362 |
[% ELSE %] |
363 |
<option value="searchdomain">Search domain</option> |
364 |
<option value="properties">Properties</option> |
365 |
|
366 |
[% END %] |
367 |
</select> |
368 |
</li> |
369 |
<li> |
370 |
<label for="show_in_pulldown">Show in search pulldown: </label> |
371 |
[% IF category.show_in_pulldown %] |
372 |
<input type="checkbox" name="show_in_pulldown" id="show_in_pulldown" checked="checked"/> |
373 |
[% ELSE %] |
374 |
<input type="checkbox" name="show_in_pulldown" id="show_in_pulldown" /> |
375 |
[% END %] |
376 |
</li> |
377 |
</ol> |
378 |
</fieldset> |
379 |
<fieldset class="action"> |
380 |
<input type="submit" value="Submit" /> |
381 |
<a href="/cgi-bin/koha/admin/branches.pl" class="cancel">Cancel</a> |
382 |
</fieldset> |
383 |
</form> |
384 |
[% END %] |
385 |
|
386 |
[% IF op == 'delete_confirm_category' %] |
387 |
<div class="dialog alert"> |
388 |
<h3>Are you sure you want to delete the group '[% category.codedescription |html %]' ([% category.categorycode %])?</h3> |
389 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
390 |
<input type="hidden" name="op" value="delete_confirmed_category" /> |
391 |
<input type="hidden" name="categorycode" value="[% category.categorycode |html %]" /> |
392 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
393 |
</form> |
394 |
<form action="/cgi-bin/koha/admin/branches.pl" method="get"> |
395 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
396 |
</form> |
397 |
</div> |
398 |
[% END %] |
276 |
[% END %] |
399 |
|
277 |
|
400 |
</div> |
278 |
</div> |