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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-9 / +11 lines)
Lines 368-381 Link Here
368
                                        [% END %]
368
                                        [% END %]
369
                                        [% IF ( patron_attributes_codes ) %]
369
                                        [% IF ( patron_attributes_codes ) %]
370
                                            <li class="attributes">
370
                                            <li class="attributes">
371
                                                <label style="width:auto;">Patron attribute:
371
                                                <label style="width:auto;">
372
                                                    <select name="patron_attributes">
372
                                                    <span>Patron Attribute:</span>
373
                                                        <option value=""></option>
374
                                                        [% FOREACH pac IN patron_attributes_codes %]
375
                                                            <option value="[% pac.attribute_code | html %]" data-type="[% pac.type | html %]" data-category="[% pac.category_lib | html %]">[% pac.attribute_lib | html %]</option>
376
                                                        [% END %]
377
                                                    </select>
378
                                                </label>
373
                                                </label>
374
                                                <select name="patron_attributes">
375
                                                    <option value=""></option>
376
                                                    [% FOREACH pac IN patron_attributes_codes %]
377
                                                        <option value="[% pac.attribute_code | html %]" data-type="[% pac.type | html %]" data-category="[% pac.category_lib | html %]">[% pac.attribute_lib | html %]</option>
378
                                                    [% END %]
379
                                                </select>
380
379
                                                <input type="checkbox" title="check to delete this field" name="disable_input" value="attr0_value" />
381
                                                <input type="checkbox" title="check to delete this field" name="disable_input" value="attr0_value" />
380
                                                <span class="patron_attributes_value"><input type"hidden" name="patron_attributes_value" /></span>
382
                                                <span class="patron_attributes_value"><input type"hidden" name="patron_attributes_value" /></span>
381
                                                <a href="#" class="add_attributes" title="Add an attribute"><i class="fa fa-fw fa-plus"></i> New</a>
383
                                                <a href="#" class="add_attributes" title="Add an attribute"><i class="fa fa-fw fa-plus"></i> New</a>
Lines 543-549 Link Here
543
            var li_node = $("li.attributes:last");
545
            var li_node = $("li.attributes:last");
544
            var li_clone = $(li_node).clone();
546
            var li_clone = $(li_node).clone();
545
            if ( $(li_clone).find("a.del_attributes").length == 0 ) {
547
            if ( $(li_clone).find("a.del_attributes").length == 0 ) {
546
                $(li_clone).append('<a href="#" title="' + _("Delete") + '" class="del_attributes"><i class="fa fa-fw fa-trash"></i> ' + _("Delete") + '</a>');
548
                var add_attributes = $(li_clone).find("a.add_attributes")
549
                $(add_attributes).after('<a href="#" title="' + _("Delete") + '" class="del_attributes"><i class="fa fa-fw fa-trash"></i> ' + _("Delete") + '</a>');
547
            }
550
            }
548
            $(li_clone).find('select[name="patron_attributes"]').change(function() {
551
            $(li_clone).find('select[name="patron_attributes"]').change(function() {
549
                updateAttrValues(this);
552
                updateAttrValues(this);
550
- 

Return to bug 32257