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 1594-1606 legend:hover { Link Here
1594
                                                                </select>
1594
                                                                </select>
1595
                                                            [% ELSE %]
1595
                                                            [% ELSE %]
1596
                                                                [% IF patron_attribute.mandatory %]
1596
                                                                [% IF patron_attribute.mandatory %]
1597
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1597
                                                                    [% IF patron_attribute.is_date %]
1598
                                                                        <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" />
1599
                                                                    [% ELSE %]
1600
                                                                        <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1601
                                                                    [% END %]
1598
                                                                [% ELSE %]
1602
                                                                [% ELSE %]
1599
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1603
                                                                    [% IF patron_attribute.is_date %]
1604
                                                                        <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" />
1605
                                                                    [% ELSE %]
1606
                                                                        <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1607
                                                                    [% END %]
1600
                                                                [% END %]
1608
                                                                [% END %]
1601
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1609
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1602
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1610
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1603
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash-can"></i> Clear</a>
1611
                                                            [% IF ( !patron_attribute.is_date ) %]
1612
                                                                <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash-can"></i> Clear</a>
1613
                                                            [% END %]
1604
                                                            [% IF ( patron_attribute.repeatable ) %]
1614
                                                            [% IF ( patron_attribute.repeatable ) %]
1605
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1615
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1606
                                                            [% END %]
1616
                                                            [% 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 890-895 sub patron_attributes_form { Link Here
890
            category          => $attr_type->authorised_value_category(),
890
            category          => $attr_type->authorised_value_category(),
891
            category_code     => $attr_type->category_code(),
891
            category_code     => $attr_type->category_code(),
892
            mandatory         => $attr_type->mandatory(),
892
            mandatory         => $attr_type->mandatory(),
893
            is_date           => $attr_type->is_date(),
893
        };
894
        };
894
        if (exists $attr_hash{$attr_type->code()}) {
895
        if (exists $attr_hash{$attr_type->code()}) {
895
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
896
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
896
- 

Return to bug 32610