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 1343-1353 legend:hover { Link Here
1343
                                                    [% END %]
1343
                                                    [% END %]
1344
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1344
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1345
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1345
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1346
                                                            <label for="[% patron_attribute.form_id | html %]">
1346
                                                            [% IF patron_attribute.mandatory %]
1347
                                                                [% patron_attribute.description | html %]:
1347
                                                                <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1348
                                                            </label>
1348
                                                            [% ELSE %]
1349
                                                                <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1350
                                                            [% END %]
1349
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1351
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1350
                                                                <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1352
                                                                [% IF patron_attribute.mandatory %]
1353
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">
1354
                                                                [% ELSE %]
1355
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1356
                                                                [% END %]
1351
                                                                    <option value=""></option>
1357
                                                                    <option value=""></option>
1352
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1358
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1353
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
1359
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
Lines 1362-1374 legend:hover { Link Here
1362
                                                                    [% END %]
1368
                                                                    [% END %]
1363
                                                                </select>
1369
                                                                </select>
1364
                                                            [% ELSE %]
1370
                                                            [% ELSE %]
1371
                                                                [% IF patron_attribute.mandatory %]
1372
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1373
                                                                [% ELSE %]
1365
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1374
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1375
                                                                [% END %]
1366
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1376
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1367
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1377
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1368
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1378
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1369
                                                            [% IF ( patron_attribute.repeatable ) %]
1379
                                                            [% IF ( patron_attribute.repeatable ) %]
1370
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1380
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1371
                                                            [% END %]
1381
                                                            [% END %]
1382
                                                            [% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %]
1372
                                                        </li>
1383
                                                        </li>
1373
                                                    [% END # /FOREACH patron_attribute %]
1384
                                                    [% END # /FOREACH patron_attribute %]
1374
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
1385
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
(-)a/members/memberentry.pl (-1 / +1 lines)
Lines 891-896 sub patron_attributes_form { Link Here
891
            repeatable        => $attr_type->repeatable(),
891
            repeatable        => $attr_type->repeatable(),
892
            category          => $attr_type->authorised_value_category(),
892
            category          => $attr_type->authorised_value_category(),
893
            category_code     => $attr_type->category_code(),
893
            category_code     => $attr_type->category_code(),
894
            mandatory         => $attr_type->mandatory(),
894
        };
895
        };
895
        if (exists $attr_hash{$attr_type->code()}) {
896
        if (exists $attr_hash{$attr_type->code()}) {
896
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
897
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
897
- 

Return to bug 22844