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 1367-1377 legend:hover { Link Here
1367
                                                    [% END %]
1367
                                                    [% END %]
1368
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1368
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1369
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1369
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1370
                                                            <label for="[% patron_attribute.form_id | html %]">
1370
                                                            [% IF patron_attribute.mandatory %]
1371
                                                                [% patron_attribute.description | html %]:
1371
                                                                <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1372
                                                            </label>
1372
                                                            [% ELSE %]
1373
                                                                <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1374
                                                            [% END %]
1373
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1375
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1374
                                                                <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1376
                                                                [% IF patron_attribute.mandatory %]
1377
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">
1378
                                                                [% ELSE %]
1379
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1380
                                                                [% END %]
1375
                                                                    <option value=""></option>
1381
                                                                    <option value=""></option>
1376
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1382
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1377
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
1383
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
Lines 1386-1398 legend:hover { Link Here
1386
                                                                    [% END %]
1392
                                                                    [% END %]
1387
                                                                </select>
1393
                                                                </select>
1388
                                                            [% ELSE %]
1394
                                                            [% ELSE %]
1395
                                                                [% IF patron_attribute.mandatory %]
1396
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1397
                                                                [% ELSE %]
1389
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1398
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1399
                                                                [% END %]
1390
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1400
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1391
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1401
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1392
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1402
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1393
                                                            [% IF ( patron_attribute.repeatable ) %]
1403
                                                            [% IF ( patron_attribute.repeatable ) %]
1394
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1404
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1395
                                                            [% END %]
1405
                                                            [% END %]
1406
                                                            [% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %]
1396
                                                        </li>
1407
                                                        </li>
1397
                                                    [% END # /FOREACH patron_attribute %]
1408
                                                    [% END # /FOREACH patron_attribute %]
1398
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
1409
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
(-)a/members/memberentry.pl (-1 / +1 lines)
Lines 913-918 sub patron_attributes_form { Link Here
913
            repeatable        => $attr_type->repeatable(),
913
            repeatable        => $attr_type->repeatable(),
914
            category          => $attr_type->authorised_value_category(),
914
            category          => $attr_type->authorised_value_category(),
915
            category_code     => $attr_type->category_code(),
915
            category_code     => $attr_type->category_code(),
916
            mandatory         => $attr_type->mandatory(),
916
        };
917
        };
917
        if (exists $attr_hash{$attr_type->code()}) {
918
        if (exists $attr_hash{$attr_type->code()}) {
918
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
919
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
919
- 

Return to bug 22844