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 106-112 Link Here
106
            [% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
106
            [% IF ( extendedattribute.type.display_checkout ) %] [%# FIXME We should filter in the line above %]
107
                [% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
107
                [% IF ( extendedattribute.attribute ) %] [%# FIXME Why that? why not if == 0? %]
108
                    <li class="patronattribute">
108
                    <li class="patronattribute">
109
                        <span class="patronattributelabel">[% extendedattribute.type.description | html %]</span>: [% extendedattribute.description | html %]
109
                        <span class="patronattributelabel">[% extendedattribute.type.description | html %]</span>:
110
                        [% IF extendedattribute.type.is_date %]
111
                            [% extendedattribute.description | $KohaDates %]
112
                        [% ELSE %]
113
                            [% extendedattribute.description | html %]
114
                        [% END %]
110
                    </li>
115
                    </li>
111
                [% END %]
116
                [% END %]
112
            [% END %]
117
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +13 lines)
Lines 1575-1587 legend:hover { Link Here
1575
                                                                </select>
1575
                                                                </select>
1576
                                                            [% ELSE %]
1576
                                                            [% ELSE %]
1577
                                                                [% IF patron_attribute.mandatory %]
1577
                                                                [% IF patron_attribute.mandatory %]
1578
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1578
                                                                    [% IF patron_attribute.is_date %]
1579
                                                                        <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" />
1580
                                                                    [% ELSE %]
1581
                                                                        <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" required="required">[% patron_attribute.value | html %]</textarea>
1582
                                                                    [% END %]
1579
                                                                [% ELSE %]
1583
                                                                [% ELSE %]
1580
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1584
                                                                    [% IF patron_attribute.is_date %]
1585
                                                                        <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" />
1586
                                                                    [% ELSE %]
1587
                                                                        <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1588
                                                                    [% END %]
1581
                                                                [% END %]
1589
                                                                [% END %]
1582
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1590
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1583
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1591
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1584
                                                            <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1592
                                                            [% IF ( !patron_attribute.is_date ) %]
1593
                                                                <a href="#" class="clear_attribute"><i class="fa fa-fw fa-trash"></i> Clear</a>
1594
                                                            [% END %]
1585
                                                            [% IF ( patron_attribute.repeatable ) %]
1595
                                                            [% IF ( patron_attribute.repeatable ) %]
1586
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1596
                                                                <a href="#" class="clone_attribute"><i class="fa fa-fw fa-plus"></i> New</a>
1587
                                                            [% END %]
1597
                                                            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +5 lines)
Lines 320-326 Link Here
320
                                                        [% FOREACH item IN attribute.items %]
320
                                                        [% FOREACH item IN attribute.items %]
321
                                                            <li>
321
                                                            <li>
322
                                                                <span class="label">[% item.type.description | html %]: </span>
322
                                                                <span class="label">[% item.type.description | html %]: </span>
323
                                                                [% item.description | html_line_break %]
323
                                                                [% IF item.type.is_date %]
324
                                                                    [% item.description | $KohaDates %]
325
                                                                [% ELSE %]
326
                                                                    [% item.description | html_line_break %]
327
                                                                [% END %]
324
                                                            </li>
328
                                                            </li>
325
                                                        [% END %]
329
                                                        [% END %]
326
                                                    </ol>
330
                                                    </ol>
(-)a/members/memberentry.pl (-1 / +1 lines)
Lines 864-869 sub patron_attributes_form { Link Here
864
            category          => $attr_type->authorised_value_category(),
864
            category          => $attr_type->authorised_value_category(),
865
            category_code     => $attr_type->category_code(),
865
            category_code     => $attr_type->category_code(),
866
            mandatory         => $attr_type->mandatory(),
866
            mandatory         => $attr_type->mandatory(),
867
            is_date           => $attr_type->is_date(),
867
        };
868
        };
868
        if (exists $attr_hash{$attr_type->code()}) {
869
        if (exists $attr_hash{$attr_type->code()}) {
869
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
870
            foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
870
- 

Return to bug 32610