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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-4 / +14 lines)
Lines 9-21 Link Here
9
    [% IF CAN_user_borrowers_edit_borrowers %]
9
    [% IF CAN_user_borrowers_edit_borrowers %]
10
        <a id="editpatron" class="btn btn-default" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=circ&amp;borrowernumber=[% patron.borrowernumber | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
10
        <a id="editpatron" class="btn btn-default" href="/cgi-bin/koha/members/memberentry.pl?op=edit_form&amp;destination=circ&amp;borrowernumber=[% patron.borrowernumber | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
11
    [% END %]
11
    [% END %]
12
12
    [% SET guarantee_categories = Categories.limited( can_be_guarantee => 1 ).unblessed  %]
13
    [% IF CAN_user_borrowers_edit_borrowers %]
13
    [% IF CAN_user_borrowers_edit_borrowers %]
14
        [% IF patron.is_adult AND Koha.Preference("borrowerRelationship") %]
14
        [% IF patron.is_adult AND Koha.Preference("borrowerRelationship") %]
15
            <a id="addchild" class="btn btn-default" href="/cgi-bin/koha/members/memberentry.pl?op=add_form&amp;guarantor_id=[% patron.borrowernumber | html %]"><i class="fa fa-plus"></i> Add guarantee</a>
15
            [% IF guarantee_categories.size > 1 %]
16
        [% END %]
16
                <div id="addchild" class="btn-group">
17
                    <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> Add guarantee</button>
18
                        <ul class="dropdown-menu">
19
                            [% FOREACH cat IN guarantee_categories %]
20
                                <li><a class="dropdown-item" href="/cgi-bin/koha/members/memberentry.pl?op=add_form&amp;guarantor_id=[% patron.borrowernumber | html %]&categorycode=[%  cat.categorycode | html %]">[% cat.description | html%]</a></li>
21
                            [% END %]
22
                        </ul>
23
                </div>
24
            [% ELSE %]
25
                <a id="addchild" class="btn btn-default" href="/cgi-bin/koha/members/memberentry.pl?op=add_form&amp;guarantor_id=[% patron.borrowernumber | html %]"><i class="fa fa-plus"></i> Add guarantee</a>
26
            [% END %]
17
        <a id="changepassword" class="btn btn-default" href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | html %]"><i class="fa fa-lock"></i> Change password</a>
27
        <a id="changepassword" class="btn btn-default" href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | html %]"><i class="fa fa-lock"></i> Change password</a>
18
        <a id="duplicate" class="btn btn-default" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-copy"></i> Duplicate</a>
28
        <a id="duplicate" class="btn btn-default" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-copy"></i> Duplicate</a>
29
        [% END %]
19
    [% END %]
30
    [% END %]
20
31
21
    [% IF CAN_user_circulate_circulate_remaining_permissions %]
32
    [% IF CAN_user_circulate_circulate_remaining_permissions %]
22
- 

Return to bug 38429