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

Return to bug 32257