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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +6 lines)
Lines 1125-1131 Link Here
1125
            [% END %]
1125
            [% END %]
1126
            [% FOREACH patron_attribute IN pa_loo.items %]
1126
            [% FOREACH patron_attribute IN pa_loo.items %]
1127
                <li data-category_code="[% patron_attribute.category_code | html %]">
1127
                <li data-category_code="[% patron_attribute.category_code | html %]">
1128
                    <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1128
                    [% IF patron_attribute.mandatory %]
1129
                        <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1130
                    [% ELSE %]
1131
                        <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1132
                    [% END %]
1129
                        [% IF ( patron_attribute.use_dropdown ) %]
1133
                        [% IF ( patron_attribute.use_dropdown ) %]
1130
                            <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1134
                            <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1131
                                <option value=""></option>
1135
                                <option value=""></option>
Lines 1149-1154 Link Here
1149
                        [% IF ( patron_attribute.repeatable ) %]
1153
                        [% IF ( patron_attribute.repeatable ) %]
1150
                        <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1154
                        <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1151
                        [% END %]
1155
                        [% END %]
1156
                    [% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %]
1152
                </li>
1157
                </li>
1153
            [% END %]
1158
            [% END %]
1154
            [% IF pa_loo.class %]</fieldset>[% END %]
1159
            [% IF pa_loo.class %]</fieldset>[% END %]
(-)a/members/memberentry.pl (-1 / +1 lines)
Lines 879-884 sub patron_attributes_form { Link Here
879
            repeatable        => $attr_type->repeatable(),
879
            repeatable        => $attr_type->repeatable(),
880
            category          => $attr_type->authorised_value_category(),
880
            category          => $attr_type->authorised_value_category(),
881
            category_code     => $attr_type->category_code(),
881
            category_code     => $attr_type->category_code(),
882
            mandatory         => $attr_type->mandatory(),
882
        };
883
        };
883
        if (exists $attr_hash{$attr_type->code()}) {
884
        if (exists $attr_hash{$attr_type->code()}) {
884
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
885
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
885
- 

Return to bug 22844