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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+2 lines)
Lines 942-947 Link Here
942
                                                                data-pwd-length="[% category.effective_min_password_length | html %]"
942
                                                                data-pwd-length="[% category.effective_min_password_length | html %]"
943
                                                                data-pwd-strong="[% category.effective_require_strong_password | html %]"
943
                                                                data-pwd-strong="[% category.effective_require_strong_password | html %]"
944
                                                                data-typename="[% category_type | html %]"
944
                                                                data-typename="[% category_type | html %]"
945
                                                                data-expiry-date="[% category.get_expiry_date | html %]"
945
                                                                >[% category.description | html %]</option
946
                                                                >[% category.description | html %]</option
946
                                                            >
947
                                                            >
947
                                                        [% ELSE %]
948
                                                        [% ELSE %]
Lines 950-955 Link Here
950
                                                                data-pwd-length="[% category.effective_min_password_length | html %]"
951
                                                                data-pwd-length="[% category.effective_min_password_length | html %]"
951
                                                                data-pwd-strong="[% category.effective_require_strong_password | html %]"
952
                                                                data-pwd-strong="[% category.effective_require_strong_password | html %]"
952
                                                                data-typename="[% category_type | html %]"
953
                                                                data-typename="[% category_type | html %]"
954
                                                                data-expiry-date="[% category.get_expiry_date | html %]"
953
                                                                >[% category.description | html %]</option
955
                                                                >[% category.description | html %]</option
954
                                                            >
956
                                                            >
955
                                                        [% END %]
957
                                                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-1 / +11 lines)
Lines 88-93 function update_category_code(category_code) { Link Here
88
    );
88
    );
89
    var hint_string = __("Minimum password length: %s").format(min_length);
89
    var hint_string = __("Minimum password length: %s").format(min_length);
90
    hint.html(hint_string);
90
    hint.html(hint_string);
91
92
    // Change patron's expiration date
93
    $('#categorycode_entry').change(function() {
94
        var fp = $("#to").flatpickr();
95
        var expiryDate = $('select'+category_selector+' option:selected').data('expiryDate');
96
        // Check if expiryDate is available and format it to YYYY-MM-DD
97
        if (expiryDate) {
98
            var formattedDate = expiryDate.split('T')[0];
99
            fp.setDate(formattedDate);
100
        }
101
    });
91
}
102
}
92
103
93
function select_user(borrowernumber, borrower, relationship) {
104
function select_user(borrowernumber, borrower, relationship) {
94
- 

Return to bug 32581