View | Details | Raw Unified | Return to bug 22844
Collapse All | Expand All

(-)a/admin/patron-attr-types.pl (-1 / +2 lines)
Lines 98-104 sub error_add_attribute_type_form { Link Here
98
    my $template = shift;
98
    my $template = shift;
99
99
100
    $template->param(description => scalar $input->param('description'));
100
    $template->param(description => scalar $input->param('description'));
101
102
    $template->param( category_code => scalar $input->param('category_code') );
101
    $template->param( category_code => scalar $input->param('category_code') );
103
    $template->param( class => scalar $input->param('class') );
102
    $template->param( class => scalar $input->param('class') );
104
103
Lines 120-125 sub add_update_attribute_type { Link Here
120
    my $opac_display              = $input->param('opac_display') ? 1 : 0;
119
    my $opac_display              = $input->param('opac_display') ? 1 : 0;
121
    my $opac_editable             = $input->param('opac_editable') ? 1 : 0;
120
    my $opac_editable             = $input->param('opac_editable') ? 1 : 0;
122
    my $staff_searchable          = $input->param('staff_searchable') ? 1 : 0;
121
    my $staff_searchable          = $input->param('staff_searchable') ? 1 : 0;
122
    my $mandatory                 = $input->param('mandatory') ? 1 : 0;
123
    my $authorised_value_category = $input->param('authorised_value_category');
123
    my $authorised_value_category = $input->param('authorised_value_category');
124
    my $display_checkout          = $input->param('display_checkout') ? 1 : 0;
124
    my $display_checkout          = $input->param('display_checkout') ? 1 : 0;
125
    my $category_code             = $input->param('category_code');
125
    my $category_code             = $input->param('category_code');
Lines 152-157 sub add_update_attribute_type { Link Here
152
            opac_display              => $opac_display,
152
            opac_display              => $opac_display,
153
            opac_editable             => $opac_editable,
153
            opac_editable             => $opac_editable,
154
            staff_searchable          => $staff_searchable,
154
            staff_searchable          => $staff_searchable,
155
            mandatory                 => $mandatory,
155
            authorised_value_category => $authorised_value_category,
156
            authorised_value_category => $authorised_value_category,
156
            display_checkout          => $display_checkout,
157
            display_checkout          => $display_checkout,
157
            category_code             => $category_code,
158
            category_code             => $category_code,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-1 / +8 lines)
Lines 126-131 Link Here
126
          [% END %]
126
          [% END %]
127
            <span>Check to make this attribute staff_searchable in the staff patron search.</span>
127
            <span>Check to make this attribute staff_searchable in the staff patron search.</span>
128
       </li>
128
       </li>
129
       <li><label for="mandatory">Mandatory: </label>
130
          [% IF attribute_type AND attribute_type.mandatory %]
131
            <input type="checkbox" id="mandatory" name="mandatory" checked="checked" />
132
          [% ELSE %]
133
            <input type="checkbox" id="mandatory" name="mandatory" />
134
          [% END %]
135
            <span>Check to make this attribute mandatory when creating or editing a patron.</span>
136
       </li>
129
       <li><label for="display_checkout">Display in check-out: </label>
137
       <li><label for="display_checkout">Display in check-out: </label>
130
            [% IF attribute_type AND attribute_type.display_checkout %]
138
            [% IF attribute_type AND attribute_type.display_checkout %]
131
                <input type="checkbox" id="display_checkout" name="display_checkout" checked="checked" />
139
                <input type="checkbox" id="display_checkout" name="display_checkout" checked="checked" />
132
- 

Return to bug 22844