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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (+7 lines)
Lines 414-419 Link Here
414
                                                    There is no value defined for [% field.name | html %]
414
                                                    There is no value defined for [% field.name | html %]
415
                                                [% END %]
415
                                                [% END %]
416
                                            [% END %]
416
                                            [% END %]
417
                                            [% IF ( field.type == 'bool' ) %]
418
                                                <select name="[% field.name | html %]" >
419
                                                    <option value=""></option>
420
                                                    <option value="1">Yes</option>
421
                                                    <option value="0">No</option>
422
                                                </select>
423
                                            [% END %]
417
                                            [% IF ( field.type == 'date' ) %]
424
                                            [% IF ( field.type == 'date' ) %]
418
                                                <input type="text" name="[% field.name | html %]" id="[% field.name | html %]" value="" size="10" maxlength="10" class="flatpickr" />
425
                                                <input type="text" name="[% field.name | html %]" id="[% field.name | html %]" value="" size="10" maxlength="10" class="flatpickr" />
419
                                                <a href="#"  class="clear-date" id="clear-date-[% field.name | html %]" ><i class="fa fa-fw fa-trash-can"></i> Clear</a>
426
                                                <a href="#"  class="clear-date" id="clear-date-[% field.name | html %]" ><i class="fa fa-fw fa-trash-can"></i> Clear</a>
(-)a/tools/modborrowers.pl (-6 / +1 lines)
Lines 196-205 if ( $op eq 'cud-show' || $op eq 'show' ) { Link Here
196
    my @categories_option;
196
    my @categories_option;
197
    push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories;
197
    push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories;
198
    unshift @categories_option, { value => "", lib => "" };
198
    unshift @categories_option, { value => "", lib => "" };
199
    my @protected_option;
200
    push @protected_option, { value => 1, lib => "Yes" };
201
    push @protected_option, { value => 0, lib => "No" };
202
    unshift @protected_option, { value => "", lib => "" };
203
    my $bsort1 = GetAuthorisedValues("Bsort1");
199
    my $bsort1 = GetAuthorisedValues("Bsort1");
204
    my @sort1_option;
200
    my @sort1_option;
205
    push @sort1_option, { value => $_->{authorised_value}, lib => $_->{lib} } for @$bsort1;
201
    push @sort1_option, { value => $_->{authorised_value}, lib => $_->{lib} } for @$bsort1;
Lines 342-348 if ( $op eq 'cud-show' || $op eq 'show' ) { Link Here
342
338
343
    if ($logged_in_user->is_superlibrarian) {
339
    if ($logged_in_user->is_superlibrarian) {
344
        push @fields, { name => "password_expiration_date", type => "date" } ;
340
        push @fields, { name => "password_expiration_date", type => "date" } ;
345
        push @fields, { name => "protected", type => "select", option => \@protected_option };
341
        push @fields, { name => "protected", type => "bool" };
346
    }
342
    }
347
343
348
    $template->param( 'patron_attributes_codes',  \@patron_attributes_codes );
344
    $template->param( 'patron_attributes_codes',  \@patron_attributes_codes );
349
- 

Return to bug 37360