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 392-397 Link Here
392
                                                    There is no value defined for [% field.name | html %]
392
                                                    There is no value defined for [% field.name | html %]
393
                                                [% END %]
393
                                                [% END %]
394
                                            [% END %]
394
                                            [% END %]
395
                                            [% IF ( field.type == 'bool' ) %]
396
                                                <select name="[% field.name | html %]" >
397
                                                    <option value=""></option>
398
                                                    <option value="1">Yes</option>
399
                                                    <option value="0">No</option>
400
                                                </select>
401
                                            [% END %]
395
                                            [% IF ( field.type == 'date' ) %]
402
                                            [% IF ( field.type == 'date' ) %]
396
                                                <input type="text" name="[% field.name | html %]" id="[% field.name | html %]" value="" size="10" maxlength="10" class="flatpickr" />
403
                                                <input type="text" name="[% field.name | html %]" id="[% field.name | html %]" value="" size="10" maxlength="10" class="flatpickr" />
397
                                                <a href="#"  class="clear-date" id="clear-date-[% field.name | html %]" ><i class="fa fa-fw fa-trash-can"></i> Clear</a>
404
                                                <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 180-189 if ( $op eq 'cud-show' || $op eq 'show' ) { Link Here
180
    my @categories_option;
180
    my @categories_option;
181
    push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories;
181
    push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories;
182
    unshift @categories_option, { value => "", lib => "" };
182
    unshift @categories_option, { value => "", lib => "" };
183
    my @protected_option;
184
    push @protected_option, { value => 1, lib => "Yes" };
185
    push @protected_option, { value => 0, lib => "No" };
186
    unshift @protected_option, { value => "", lib => "" };
187
    my $bsort1 = GetAuthorisedValues("Bsort1");
183
    my $bsort1 = GetAuthorisedValues("Bsort1");
188
    my @sort1_option;
184
    my @sort1_option;
189
    push @sort1_option, { value => $_->{authorised_value}, lib => $_->{lib} } for @$bsort1;
185
    push @sort1_option, { value => $_->{authorised_value}, lib => $_->{lib} } for @$bsort1;
Lines 343-349 if ( $op eq 'cud-show' || $op eq 'show' ) { Link Here
343
339
344
    if ($logged_in_user->is_superlibrarian) {
340
    if ($logged_in_user->is_superlibrarian) {
345
        push @fields, { name => "password_expiration_date", type => "date" } ;
341
        push @fields, { name => "password_expiration_date", type => "date" } ;
346
        push @fields, { name => "protected", type => "select", option => \@protected_option };
342
        push @fields, { name => "protected", type => "bool" };
347
    }
343
    }
348
344
349
    $template->param('patron_attributes_codes', \@patron_attributes_codes);
345
    $template->param('patron_attributes_codes', \@patron_attributes_codes);
350
- 

Return to bug 37360