[% USE raw %] [% USE Asset %] [% USE Koha %] [% PROCESS 'restriction-types.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction type '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% ELSE %]New restriction type › [% END %][% END %] [% IF op == 'delete_confirm' %]Confirm deletion of restriction type '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% END %]Patron restriction types › Administration › Koha [% 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' %]
[% IF restriction %]

Modify restriction type [% PROCESS restriction_type_description restriction_type=restriction %]

[% ELSE %]

New restriction type

[% END %]
    [% IF restriction %]
  1. Code: [% restriction.code | html %]
  2. Required
  3. [% ELSE %]
  4. Required
  5. Required
  6. [% END %]
Cancel
[% END %] [% IF op == 'delete_confirm' %]
Confirm restriction type deletion

Are you sure you want to delete '[% PROCESS restriction_type_description restriction_type=restriction %]'?

Cancel
[% END %] [% IF op == 'list' %]

Patron restriction types

[% IF restrictions %]
[% FOREACH restriction IN restrictions %] [% END %]
Code Label Default Actions
[% restriction.code | html %] [% PROCESS restriction_type_description restriction_type=restriction %] [% IF restriction.is_default %]Yes[% END %] Edit [% IF !restriction.is_system && !restriction.is_default %] Delete [% END %] [% IF !restriction.is_system && !restriction.is_default %] Make default [% END %]
[% ELSE %]
No restriction types have been defined. Create a new restriction type.
[% END %] [% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% Asset.js("js/restrictiontypes.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]