[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% PROCESS 'restriction-types.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% FILTER collapse %]
[% IF op == 'add_form' %]
[% IF ( restriction ) %]
[% t("Modify restriction type") | html %] '[% PROCESS restriction_type_description restriction_type=restriction %]' ›
[% ELSE %]
[% t("New restriction type") | html %] ›
[% END %]
[% END %]
[% IF op == 'delete_confirm' %]
[% t("Confirm deletion of restriction type") | html %] '[% PROCESS restriction_type_description restriction_type=restriction %]' ›
[% END %]
[% t("Patron restriction types") | html %] ›
[% t("Administration") | html %] ›
[% t("Koha") | html %]
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
[% WRAPPER 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
Administration
[% END %]
[% IF op == 'list' %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Patron restriction types
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item %]
Patron restriction types
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% IF restriction %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Modify restriction type '[% PROCESS restriction_type_description %]'
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
New restriction type
[% END %]
[% END %]
[% END %]
[% IF op == 'delete_confirm' %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Delete restriction type '[% PROCESS restriction_type_description %]'
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'add_success' %]
Restriction type added
[% CASE 'update_success' %]
Restriction type updated
[% CASE 'duplicate_display_text' %]
Another restriction type already has this label
[% CASE 'duplicate_code' %]
Another restriction type already has this code
[% CASE 'delete_success' %]
Restriction type deleted
[% CASE 'delete_default' %]
Cannot delete the default restriction type
[% CASE 'delete_system' %]
Cannot delete a system restriction type
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% END %]
[% IF op == 'delete_confirm' %]
Confirm restriction type deletion
Are you sure you want to delete '[% PROCESS restriction_type_description restriction_type=restriction %]'?
[% PROCESS restriction_type_description restriction_type=restriction %]
[% IF restriction.is_default %]Yes[% END %]
[% IF restriction.lift_after_payment %]Yes[% END %]
[% IF restriction.fee_limit %][% restriction.fee_limit | html %][% END %]
Edit
[% IF !restriction.is_system && !restriction.is_default %]
Delete
[% END %]
[% IF !restriction.is_system && !restriction.is_default %]
Make default
[% END %]