|
Lines 18-24
Link Here
|
| 18 |
[% END %] |
18 |
[% END %] |
| 19 |
[% IF op == 'delete_confirm' %] |
19 |
[% IF op == 'delete_confirm' %] |
| 20 |
[% IF ( patrons_in_category > 0 ) %] |
20 |
[% IF ( patrons_in_category > 0 ) %] |
| 21 |
[% tx("Cannot delete: category '{categorycode}'", { categorycode = categorycode }) | html %] |
21 |
[% tx("Cannot delete category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 22 |
[% ELSE %] |
22 |
[% ELSE %] |
| 23 |
[% tx("Confirm deletion of category '{categorycode}'", { categorycode = categorycode }) | html %] |
23 |
[% tx("Confirm deletion of category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 24 |
[% END %] › |
24 |
[% END %] › |
|
Lines 55-61
Link Here
|
| 55 |
[% IF op == 'add_form' %] |
55 |
[% IF op == 'add_form' %] |
| 56 |
[% IF ( categorycode ) %] |
56 |
[% IF ( categorycode ) %] |
| 57 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
57 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 58 |
<span>Modify category '[% categorycode | html %]'</span> |
58 |
[% tx("Modify category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 59 |
[% END %] |
59 |
[% END %] |
| 60 |
[% ELSE %] |
60 |
[% ELSE %] |
| 61 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
61 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
|
Lines 67-77
Link Here
|
| 67 |
[% IF op == 'delete_confirm' %] |
67 |
[% IF op == 'delete_confirm' %] |
| 68 |
[% IF ( patrons_in_category > 0 ) %] |
68 |
[% IF ( patrons_in_category > 0 ) %] |
| 69 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
69 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 70 |
<span>Cannot delete: Category [% categorycode | html %] in use</span> |
70 |
[% tx("Cannot delete category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 71 |
[% END %] |
71 |
[% END %] |
| 72 |
[% ELSE %] |
72 |
[% ELSE %] |
| 73 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
73 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 74 |
<span>Confirm deletion of category '[% categorycode | html %]'</span> |
74 |
[% tx("Confirm deletion of category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 75 |
[% END %] |
75 |
[% END %] |
| 76 |
[% END %] |
76 |
[% END %] |
| 77 |
[% END %] |
77 |
[% END %] |
|
Lines 117-123
Link Here
|
| 117 |
<input type="hidden" name="op" value="add_validate" /> |
117 |
<input type="hidden" name="op" value="add_validate" /> |
| 118 |
<input type="hidden" name="checked" value="0" /> |
118 |
<input type="hidden" name="checked" value="0" /> |
| 119 |
[% IF category %] |
119 |
[% IF category %] |
| 120 |
<h1>Modify category [% categorycode | html %]</h1> |
120 |
<h1>[% tx("Modify category '{categorycode}'", { categorycode = categorycode }) | html %]</h1> |
| 121 |
[% ELSE %] |
121 |
[% ELSE %] |
| 122 |
<h1>New category</h1> |
122 |
<h1>New category</h1> |
| 123 |
[% END %] |
123 |
[% END %] |
|
Lines 436-518
Link Here
|
| 436 |
[% END %] |
436 |
[% END %] |
| 437 |
|
437 |
|
| 438 |
[% IF op == 'delete_confirm' %] |
438 |
[% IF op == 'delete_confirm' %] |
| 439 |
<form action="/cgi-bin/koha/admin/categories.pl" method="post"> |
439 |
<h1> |
| 440 |
<fieldset> |
440 |
[% IF patrons_in_category > 0 %] |
| 441 |
<legend> |
441 |
[% tx("Cannot delete category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 442 |
<h1> |
442 |
[% ELSE %] |
| 443 |
[% IF patrons_in_category > 0 %] |
443 |
[% tx("Confirm deletion of category '{categorycode}'", { categorycode = categorycode }) | html %] |
| 444 |
<span>Category [% categorycode | html %] is in use. Deletion not possible!</span> |
444 |
[% END %] |
|
|
445 |
</h1> |
| 446 |
|
| 447 |
[% IF patrons_in_category > 0 %] |
| 448 |
<div class="dialog alert"> |
| 449 |
<strong>This category is used [% patrons_in_category | html %] times</strong>. Deletion not possible |
| 450 |
</div> |
| 451 |
[% END %] |
| 452 |
|
| 453 |
<div class="page-section"> |
| 454 |
<table> |
| 455 |
<tr><th scope="row">Category code: </th><td>[% category.categorycode | html %]</td></tr> |
| 456 |
<tr><th scope="row">Description: </th><td>[% category.description | html %]</td></tr> |
| 457 |
<tr><th scope="row">Enrollment period: </th> |
| 458 |
<td> |
| 459 |
[% IF category.enrolmentperiod %] |
| 460 |
[% category.enrolmentperiod | html %] months |
| 445 |
[% ELSE %] |
461 |
[% ELSE %] |
| 446 |
<span>Confirm deletion of category [% categorycode | html %]</span> |
462 |
until [% category.enrolmentperioddate | $KohaDates %] |
| 447 |
[% END %] |
463 |
[% END %] |
| 448 |
</h1> |
464 |
</td> |
| 449 |
</legend> |
465 |
</tr> |
|
|
466 |
<tr><th scope="row">Password expiration: </th><td>[% category.password_expiry_days | html %] days</td></tr> |
| 467 |
<tr><th scope="row">Age required: </th><td>[% category.dateofbirthrequired | html %] years</td></tr> |
| 468 |
<tr><th scope="row">Upperage limit: </th><td>[% category.upperagelimit | html %] years</td></tr> |
| 469 |
<tr><th scope="row">Enrollment fee: </th><td>[% category.enrolmentfee | $Price %]</td></tr> |
| 470 |
<tr><th scope="row">Receives overdue notices: </th><td>[% IF category. overduenoticerequired %]Yes[% ELSE %]No[% END %]</td></tr> |
| 471 |
<tr><th scope="row">Lost items in staff interface</th><td>[% IF category.hidelostitems %]Hidden by default[% ELSE %]Shown[% END %]</td></tr> |
| 472 |
<tr><th scope="row">Hold fee: </th><td>[% category.reservefee | $Price %]</td></tr> |
| 450 |
|
473 |
|
| 451 |
[% IF patrons_in_category > 0 %] |
474 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
| 452 |
<div class="dialog alert"> |
475 |
<tr> |
| 453 |
<strong>This category is used [% patrons_in_category | html %] times</strong>. Deletion not possible |
476 |
<th scope="row">Check previous checkouts: </th> |
| 454 |
</div> |
477 |
<td> |
|
|
478 |
[% SWITCH category.checkprevcheckout %] |
| 479 |
[% CASE 'yes' %] |
| 480 |
<span>Yes</span> |
| 481 |
[% CASE 'no' %] |
| 482 |
<span>No</span> |
| 483 |
[% CASE 'inherit' %] |
| 484 |
<span>Inherit</span> |
| 485 |
[% END %] |
| 486 |
</td> |
| 487 |
</tr> |
| 455 |
[% END %] |
488 |
[% END %] |
| 456 |
<table> |
489 |
<tr><th scope="row">Can be guarantee</th><td>[% IF category.can_be_guarantee %]Yes[% ELSE %]No[% END %]</td></tr> |
| 457 |
<tr><th scope="row">Category code: </th><td>[% category.categorycode | html %]</td></tr> |
490 |
<tr> |
| 458 |
<tr><th scope="row">Description: </th><td>[% category.description | html %]</td></tr> |
491 |
<th scope="row">Default privacy: </th> |
| 459 |
<tr><th scope="row">Enrollment period: </th> |
492 |
<td> |
| 460 |
<td> |
493 |
[% SWITCH category.default_privacy %] |
| 461 |
[% IF category.enrolmentperiod %] |
494 |
[% CASE 'default' %] |
| 462 |
[% category.enrolmentperiod | html %] months |
495 |
<span>Default</span> |
| 463 |
[% ELSE %] |
496 |
[% CASE 'never' %] |
| 464 |
until [% category.enrolmentperioddate | $KohaDates %] |
497 |
<span>Never</span> |
| 465 |
[% END %] |
498 |
[% CASE 'forever' %] |
| 466 |
</td> |
499 |
<span>Forever</span> |
| 467 |
</tr> |
500 |
[% END %] |
| 468 |
<tr><th scope="row">Password expiration: </th><td>[% category.password_expiry_days | html %] days</td></tr> |
501 |
</td> |
| 469 |
<tr><th scope="row">Age required: </th><td>[% category.dateofbirthrequired | html %] years</td></tr> |
502 |
</tr> |
| 470 |
<tr><th scope="row">Upperage limit: </th><td>[% category.upperagelimit | html %] years</td></tr> |
503 |
</table> |
| 471 |
<tr><th scope="row">Enrollment fee: </th><td>[% category.enrolmentfee | $Price %]</td></tr> |
504 |
</div> <!-- /.page-section --> |
| 472 |
<tr><th scope="row">Receives overdue notices: </th><td>[% IF category. overduenoticerequired %]Yes[% ELSE %]No[% END %]</td></tr> |
|
|
| 473 |
<tr><th scope="row">Lost items in staff interface</th><td>[% IF category.hidelostitems %]Hidden by default[% ELSE %]Shown[% END %]</td></tr> |
| 474 |
<tr><th scope="row">Hold fee: </th><td>[% category.reservefee | $Price %]</td></tr> |
| 475 |
|
505 |
|
| 476 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
506 |
<form action="/cgi-bin/koha/admin/categories.pl" method="post"> |
| 477 |
<tr> |
507 |
<fieldset class="action"> |
| 478 |
<th scope="row">Check previous checkouts: </th> |
508 |
[% IF patrons_in_category > 0 %] |
| 479 |
<td> |
509 |
<input type="submit" class="btn btn-primary" value="OK" /> |
| 480 |
[% SWITCH category.checkprevcheckout %] |
510 |
[% ELSE %] |
| 481 |
[% CASE 'yes' %] |
511 |
<input type="hidden" name="op" value="delete_confirmed" /> |
| 482 |
<span>Yes</span> |
512 |
<input type="hidden" name="categorycode" value="[% categorycode | html %]" /> |
| 483 |
[% CASE 'no' %] |
513 |
<input type="submit" class="btn btn-primary" value="Delete this category" /> |
| 484 |
<span>No</span> |
514 |
<a class="cancel" href="/cgi-bin/koha/admin/categories.pl">Cancel</a> |
| 485 |
[% CASE 'inherit' %] |
515 |
[% END %] |
| 486 |
<span>Inherit</span> |
|
|
| 487 |
[% END %] |
| 488 |
</td> |
| 489 |
</tr> |
| 490 |
[% END %] |
| 491 |
<tr><th scope="row">Can be guarantee</th><td>[% IF category.can_be_guarantee %]Yes[% ELSE %]No[% END %]</td></tr> |
| 492 |
<tr> |
| 493 |
<th scope="row">Default privacy: </th> |
| 494 |
<td> |
| 495 |
[% SWITCH category.default_privacy %] |
| 496 |
[% CASE 'default' %] |
| 497 |
<span>Default</span> |
| 498 |
[% CASE 'never' %] |
| 499 |
<span>Never</span> |
| 500 |
[% CASE 'forever' %] |
| 501 |
<span>Forever</span> |
| 502 |
[% END %] |
| 503 |
</td> |
| 504 |
</tr> |
| 505 |
</table> |
| 506 |
<fieldset class="action"> |
| 507 |
[% IF patrons_in_category > 0 %] |
| 508 |
<input type="submit" class="btn btn-primary" value="OK" /> |
| 509 |
[% ELSE %] |
| 510 |
<input type="hidden" name="op" value="delete_confirmed" /> |
| 511 |
<input type="hidden" name="categorycode" value="[% categorycode | html %]" /> |
| 512 |
<input type="submit" class="btn btn-primary" value="Delete this category" /> |
| 513 |
<a class="cancel" href="/cgi-bin/koha/admin/categories.pl">Cancel</a> |
| 514 |
[% END %] |
| 515 |
</fieldset> |
| 516 |
</fieldset> |
516 |
</fieldset> |
| 517 |
</form> |
517 |
</form> |
| 518 |
[% END %] |
518 |
[% END %] |
| 519 |
- |
|
|