[% 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 '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% ELSE %]New restriction › [% END %][% END %] [% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% END %]Patron restrictions › Administration › Koha [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %]
[% FOR m IN messages %]
[% SWITCH m.code %] [% CASE 'add_success' %] Type added [% CASE 'update_success' %] Type updated [% CASE 'duplicate_display_text' %] Another restriction already has this label [% CASE 'duplicate_code' %] Another restriction already has this code [% CASE 'delete_success' %] Type deleted [% CASE 'delete_default' %] Cannot delete the default type [% CASE 'delete_system' %] Cannot delete a system type [% CASE %] [% m.code | html %] [% END %]
[% END %] [% IF op == 'add_form' %]
[% IF restriction %]

Modify restriction [% PROCESS restriction_type_description restriction_type=restriction %]

[% ELSE %]

New restriction

[% 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 deletion

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

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

Patron restrictions

[% 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 restrictions have been defined. Create a new restriction.
[% 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' %]