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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-4 / +15 lines)
Lines 1297-1307 legend:hover { Link Here
1297
                                                    [% END %]
1297
                                                    [% END %]
1298
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1298
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1299
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1299
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1300
                                                            <label for="[% patron_attribute.form_id | html %]">
1300
                                                            [% IF patron_attribute.mandatory %]
1301
                                                                [% patron_attribute.description | html %]:
1301
                                                                <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1302
                                                            </label>
1302
                                                            [% ELSE %]
1303
                                                                <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1304
                                                            [% END %]
1303
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1305
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1304
                                                                <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1306
                                                                [% IF patron_attribute.mandatory %]
1307
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">
1308
                                                                [% ELSE %]
1309
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1310
                                                                [% END %]
1305
                                                                    <option value=""></option>
1311
                                                                    <option value=""></option>
1306
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1312
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1307
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
1313
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
Lines 1316-1328 legend:hover { Link Here
1316
                                                                    [% END %]
1322
                                                                    [% END %]
1317
                                                                </select>
1323
                                                                </select>
1318
                                                            [% ELSE %]
1324
                                                            [% ELSE %]
1325
                                                                [% IF patron_attribute.mandatory %]
1326
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1327
                                                                [% ELSE %]
1319
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1328
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1329
                                                                [% END %]
1320
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1330
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1321
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1331
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1322
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1332
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1323
                                                            [% IF ( patron_attribute.repeatable ) %]
1333
                                                            [% IF ( patron_attribute.repeatable ) %]
1324
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1334
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1325
                                                            [% END %]
1335
                                                            [% END %]
1336
                                                            [% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %]
1326
                                                        </li>
1337
                                                        </li>
1327
                                                    [% END # /FOREACH patron_attribute %]
1338
                                                    [% END # /FOREACH patron_attribute %]
1328
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
1339
                                                    [% 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