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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-2 / +2 lines)
Lines 1007-1015 legend.collapsed i.fa.fa-caret-down::before { Link Here
1007
                                                    [% END %]
1007
                                                    [% END %]
1008
                                                    [% FOREACH category IN patron_categories.$category_type %]
1008
                                                    [% FOREACH category IN patron_categories.$category_type %]
1009
                                                        [% IF category.categorycode == patron_category.categorycode %]
1009
                                                        [% IF category.categorycode == patron_category.categorycode %]
1010
                                                            <option value="[% category.categorycode | html %]" selected="selected" data-pwd-length="[% category.effective_min_password_length | html %]" data-pwd-strong="[% category.effective_require_strong_password | html %]" data-typename="[% category_type | html %]">[% category.description | html %]</option>
1010
                                                            <option value="[% category.categorycode | html %]" selected="selected" data-pwd-length="[% category.effective_min_password_length | html %]" data-pwd-strong="[% category.effective_require_strong_password | html %]" data-typename="[% category_type | html %]" data-expiry-date="[% category.get_expiry_date | html %]">[% category.description | html %]</option>
1011
                                                        [% ELSE %]
1011
                                                        [% ELSE %]
1012
                                                            <option value="[% category.categorycode | html %]" data-pwd-length="[% category.effective_min_password_length | html %]" data-pwd-strong="[% category.effective_require_strong_password | html %]" data-typename="[% category_type | html %]">[% category.description | html %]</option>
1012
                                                            <option value="[% category.categorycode | html %]" data-pwd-length="[% category.effective_min_password_length | html %]" data-pwd-strong="[% category.effective_require_strong_password | html %]" data-typename="[% category_type | html %]" data-expiry-date="[% category.get_expiry_date | html %]">[% category.description | html %]</option>
1013
                                                        [% END %]
1013
                                                        [% END %]
1014
                                                    [% END %]
1014
                                                    [% END %]
1015
                                                        </optgroup>
1015
                                                        </optgroup>
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-1 / +11 lines)
Lines 81-86 function update_category_code(category_code) { Link Here
81
    var min_length = $('select'+category_selector+' option:selected').data('pwdLength');
81
    var min_length = $('select'+category_selector+' option:selected').data('pwdLength');
82
    var hint_string = __("Minimum password length: %s").format(min_length);
82
    var hint_string = __("Minimum password length: %s").format(min_length);
83
    hint.html(hint_string);
83
    hint.html(hint_string);
84
85
    // Change patron's expiration date
86
    $('#categorycode_entry').change(function() {
87
        var fp = $("#to").flatpickr();
88
        var expiryDate = $('select'+category_selector+' option:selected').data('expiryDate');
89
        // Check if expiryDate is available and format it to YYYY-MM-DD
90
        if (expiryDate) {
91
            var formattedDate = expiryDate.split('T')[0];
92
            fp.setDate(formattedDate);
93
        }
94
    });
84
}
95
}
85
96
86
function select_user(borrowernumber, borrower, relationship) {
97
function select_user(borrowernumber, borrower, relationship) {
87
- 

Return to bug 32581