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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-7 / +12 lines)
Lines 270-285 Link Here
270
                                                    [% END %]
270
                                                    [% END %]
271
                                                </ul>
271
                                                </ul>
272
                                            </li>
272
                                            </li>
273
                                        [% ELSIF guarantor_relationships %]
273
                                        [% ELSIF guarantor_relationships.count > 0 %]
274
                                            [% FOREACH gr IN guarantor_relationships %]
275
                                                <li>
274
                                                <li>
275
                                                [% IF guarantor_relationships.count > 1 %]
276
                                                    <span class="label">Guarantors:</span>
277
                                                [% ELSE %]
276
                                                    <span class="label">Guarantor:</span>
278
                                                    <span class="label">Guarantor:</span>
277
                                                    [% SET guarantor = gr.guarantor %]
279
                                                [% END %]
278
                                                    [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
280
                                                    <ul>
279
                                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.id | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
281
                                                    [% FOREACH gr IN guarantor_relationships %]
282
                                                        [% SET guarantor = gr.guarantor %]
283
                                                        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
284
                                                            <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.id | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a></li>
285
                                                        [% END %]
280
                                                    [% END %]
286
                                                    [% END %]
287
                                                    </ul>
281
                                                </li>
288
                                                </li>
282
                                            [% END %]
283
                                        [% END %]
289
                                        [% END %]
284
                                    </ol>
290
                                    </ol>
285
                                </div> [% # /div.rows %]
291
                                </div> [% # /div.rows %]
286
- 

Return to bug 14570