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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-1 / +6 lines)
Lines 110-116 Link Here
110
            [% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
110
            [% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
111
                [% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
111
                [% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
112
                    <li class="patronattribute">
112
                    <li class="patronattribute">
113
                        <span class="patronattributelabel">[% extendedattribute.type.description | html %]</span>: [% extendedattribute.description | html %]
113
                        <span class="patronattributelabel">[% extendedattribute.type.description | html %]</span>:
114
                        [% IF extendedattribute.type.is_date %]
115
                            [% extendedattribute.description | $KohaDates %]
116
                        [% ELSE %]
117
                            [% extendedattribute.description | html %]
118
                        [% END %]
114
                    </li>
119
                    </li>
115
                [% END %]
120
                [% END %]
116
            [% END %]
121
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +13 lines)
Lines 1562-1574 legend:hover { Link Here
1562
                                                                </select>
1562
                                                                </select>
1563
                                                            [% ELSE %]
1563
                                                            [% ELSE %]
1564
                                                                [% IF patron_attribute.mandatory %]
1564
                                                                [% IF patron_attribute.mandatory %]
1565
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1565
                                                                    [% IF patron_attribute.is_date %]
1566
                                                                        <input type="text" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"  maxlength="10" size="10" value="[% patron_attribute.value | html %]" required="required" class="flatpickr" data-date_to="to" />
1567
                                                                    [% ELSE %]
1568
                                                                        <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1569
                                                                    [% END %]
1566
                                                                [% ELSE %]
1570
                                                                [% ELSE %]
1567
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1571
                                                                    [% IF patron_attribute.is_date %]
1572
                                                                        <input type="text" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"  maxlength="10" size="10" value="[% patron_attribute.value | html %]" class="flatpickr" data-date_to="to" />
1573
                                                                    [% ELSE %]
1574
                                                                        <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1575
                                                                    [% END %]
1568
                                                                [% END %]
1576
                                                                [% END %]
1569
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1577
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1570
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1578
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1571
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash-can"></i> Clear</a>
1579
                                                            [% IF ( !patron_attribute.is_date ) %]
1580
                                                                <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash-can"></i> Clear</a>
1581
                                                            [% END %]
1572
                                                            [% IF ( patron_attribute.repeatable ) %]
1582
                                                            [% IF ( patron_attribute.repeatable ) %]
1573
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1583
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1574
                                                            [% END %]
1584
                                                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +5 lines)
Lines 326-332 Link Here
326
                                                        [% FOREACH item IN attribute.items %]
326
                                                        [% FOREACH item IN attribute.items %]
327
                                                            <li data-pa_code="[% item.type.code | replace('[^a-zA-Z0-9_-]', '') %]">
327
                                                            <li data-pa_code="[% item.type.code | replace('[^a-zA-Z0-9_-]', '') %]">
328
                                                                <span class="label">[% item.type.description | html %]: </span>
328
                                                                <span class="label">[% item.type.description | html %]: </span>
329
                                                                [% item.description | html_line_break %]
329
                                                                [% IF item.type.is_date %]
330
                                                                    [% item.description | $KohaDates %]
331
                                                                [% ELSE %]
332
                                                                    [% item.description | html_line_break %]
333
                                                                [% END %]
330
                                                            </li>
334
                                                            </li>
331
                                                        [% END %]
335
                                                        [% END %]
332
                                                    </ol>
336
                                                    </ol>
(-)a/members/memberentry.pl (-1 / +1 lines)
Lines 853-858 sub patron_attributes_form { Link Here
853
            category          => $attr_type->authorised_value_category(),
853
            category          => $attr_type->authorised_value_category(),
854
            category_code     => $attr_type->category_code(),
854
            category_code     => $attr_type->category_code(),
855
            mandatory         => $attr_type->mandatory(),
855
            mandatory         => $attr_type->mandatory(),
856
            is_date           => $attr_type->is_date(),
856
        };
857
        };
857
        if (exists $attr_hash{$attr_type->code()}) {
858
        if (exists $attr_hash{$attr_type->code()}) {
858
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
859
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
859
- 

Return to bug 32610