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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-2 / +6 lines)
Lines 1559-1572 legend:hover { Link Here
1559
                                                    [% END %]
1559
                                                    [% END %]
1560
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1560
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1561
                                                        <li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]">
1561
                                                        <li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]">
1562
                                                            [% IF patron_attribute.mandatory %]
1562
                                                            [% IF patron_attribute.mandatory && patron_attribute.category_code == patron_category.categorycode%]
1563
                                                                <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1563
                                                                <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1564
                                                            [% ELSIF patron_attribute.mandatory && patron_attribute.category_code != patron_category.categorycode %]
1565
                                                                <label for="[% patron_attribute.form_id | html %]" class="required ignore_validation" required="required">[% patron_attribute.description | html %]: </label>
1564
                                                            [% ELSE %]
1566
                                                            [% ELSE %]
1565
                                                                <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1567
                                                                <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1566
                                                            [% END %]
1568
                                                            [% END %]
1567
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1569
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1568
                                                                [% IF patron_attribute.mandatory %]
1570
                                                                [% IF patron_attribute.mandatory && patron_attribute.category_code == patron_category.categorycode %]
1569
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">
1571
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">
1572
                                                                [% ELSIF patron_attribute.mandatory && patron_attribute.category_code != patron_category.categorycode %]
1573
                                                                    <select id="[% patron_attribute.form_id | html %]" class="ignore_validation" name="[% patron_attribute.form_id | html %]" required="required">
1570
                                                                [% ELSE %]
1574
                                                                [% ELSE %]
1571
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1575
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1572
                                                                [% END %]
1576
                                                                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-1 / +9 lines)
Lines 74-79 function update_category_code(category_code) { Link Here
74
    var min_length = $('select'+category_selector+' option:selected').data('pwdLength');
74
    var min_length = $('select'+category_selector+' option:selected').data('pwdLength');
75
    var hint_string = __("Minimum password length: %s").format(min_length);
75
    var hint_string = __("Minimum password length: %s").format(min_length);
76
    hint.html(hint_string);
76
    hint.html(hint_string);
77
78
    // Remove class ignore_validation from attribute field so it's validated
79
    if($(mytables).find("li").is(":visible")){
80
        $(mytables).find("li").children('[id*="patron_attr"]').removeClass("ignore_validation");
81
    }
82
    // Add class ignore_validation from attribute field to ignore validation
83
    if($(mytables).find("li").is(":hidden")){
84
        $(mytables).find("li").children('[id*="patron_attr"]').addClass("ignore_validation");
85
    }
77
}
86
}
78
87
79
function select_user(borrowernumber, borrower, relationship) {
88
function select_user(borrowernumber, borrower, relationship) {
80
- 

Return to bug 34671