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 1268-1278 Link Here
1268
                                                    [% END %]
1268
                                                    [% END %]
1269
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1269
                                                    [% FOREACH patron_attribute IN pa_loo.items %]
1270
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1270
                                                        <li data-category_code="[% patron_attribute.category_code | html %]">
1271
                                                            <label for="[% patron_attribute.form_id | html %]">
1271
                                                            [% IF patron_attribute.mandatory %]
1272
                                                                [% patron_attribute.description | html %]:
1272
                                                                <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
1273
                                                            </label>
1273
                                                            [% ELSE %]
1274
                                                                <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
1275
                                                            [% END %]
1274
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1276
                                                            [% IF ( patron_attribute.use_dropdown ) %]
1275
                                                                <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1277
                                                                [% IF patron_attribute.mandatory %]
1278
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">
1279
                                                                [% ELSE %]
1280
                                                                    <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">
1281
                                                                [% END %]
1276
                                                                    <option value=""></option>
1282
                                                                    <option value=""></option>
1277
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1283
                                                                    [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1278
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
1284
                                                                        [% IF auth_val_loo.authorised_value == patron_attribute.value %]
Lines 1287-1299 Link Here
1287
                                                                    [% END %]
1293
                                                                    [% END %]
1288
                                                                </select>
1294
                                                                </select>
1289
                                                            [% ELSE %]
1295
                                                            [% ELSE %]
1296
                                                                [% IF patron_attribute.mandatory %]
1297
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1298
                                                                [% ELSE %]
1290
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1299
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1300
                                                                [% END %]
1291
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1301
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1292
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1302
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1293
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1303
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1294
                                                            [% IF ( patron_attribute.repeatable ) %]
1304
                                                            [% IF ( patron_attribute.repeatable ) %]
1295
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1305
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1296
                                                            [% END %]
1306
                                                            [% END %]
1307
                                                            [% IF patron_attribute.mandatory %]<span class="required">Required</span>[% END %]
1297
                                                        </li>
1308
                                                        </li>
1298
                                                    [% END # /FOREACH patron_attribute %]
1309
                                                    [% END # /FOREACH patron_attribute %]
1299
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
1310
                                                    [% 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