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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt (-23 / +36 lines)
Lines 387-416 Link Here
387
                    <h3>Deliveries</h3>
387
                    <h3>Deliveries</h3>
388
                    [% housebound_visits = housebound_profile.housebound_visits %]
388
                    [% housebound_visits = housebound_profile.housebound_visits %]
389
                    [% IF  housebound_visits.count > 0 %]
389
                    [% IF  housebound_visits.count > 0 %]
390
                        <table border="0" width="100%" cellpadding="3" cellspacing="0">
390
                        <table id="deliveries">
391
                            <tr>
391
                            <thead>
392
                                <th>ID</th><th>Date</th><th>Chooser</th><th>Deliverer</th><th class="noExport">Actions</th>
393
                            </tr>
394
                            [% FOREACH entry IN housebound_visits %]
395
                                <tr>
392
                                <tr>
396
                                    <td>[% entry.id | html %]</td>
393
                                    <th>ID</th>
397
                                    <td>[% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %])</td>
394
                                    <th>Date</th>
398
                                    <td>
395
                                    <th>Chooser</th>
399
                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.chooser.borrowernumber | uri %]">
396
                                    <th>Deliverer</th>
400
                                        [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %]
397
                                    <th class="noExport">Actions</th>
401
                                        </a>
402
                                    </td>
403
                                    <td>
404
                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.deliverer.borrowernumber | uri %]">
405
                                        [% INCLUDE 'patron-title.inc' patron = entry.deliverer invert_name = 0 %]
406
                                        </a>
407
                                    </td>
408
                                    <td class="actions">
409
                                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&visit_id=[% entry.id | html %]&borrowernumber=[% patron.borrowernumber | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
410
                                        <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_delete&visit_id=[% entry.id | html %]&borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-trash-can"></i> Delete</a>
411
                                    </td>
412
                                </tr>
398
                                </tr>
413
                            [% END %]
399
                            </thead>
400
                            <tbody>
401
                                [% FOREACH entry IN housebound_visits %]
402
                                    <tr>
403
                                        <td>[% entry.id | html %]</td>
404
                                        <td>[% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %])</td>
405
                                        <td>
406
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.chooser.borrowernumber | uri %]">
407
                                            [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %]
408
                                            </a>
409
                                        </td>
410
                                        <td>
411
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.deliverer.borrowernumber | uri %]">
412
                                            [% INCLUDE 'patron-title.inc' patron = entry.deliverer invert_name = 0 %]
413
                                            </a>
414
                                        </td>
415
                                        <td class="actions">
416
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&visit_id=[% entry.id | html %]&borrowernumber=[% patron.borrowernumber | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
417
                                            <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_delete&visit_id=[% entry.id | html %]&borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-trash-can"></i> Delete</a>
418
                                        </td>
419
                                    </tr>
420
                                [% END %]
421
                            </tbody>
414
                        </table>
422
                        </table>
415
                    [% END %]
423
                    [% END %]
416
                    <div class="action">
424
                    <div class="action">
Lines 435-446 Link Here
435
443
436
[% MACRO jsinclude BLOCK %]
444
[% MACRO jsinclude BLOCK %]
437
    [% INCLUDE 'calendar.inc' %]
445
    [% INCLUDE 'calendar.inc' %]
446
    [% INCLUDE 'datatables.inc' %]
447
    [% INCLUDE 'columns_settings.inc' %]
438
    <script>
448
    <script>
439
        $(document).ready(function() {
449
        $(document).ready(function() {
440
            $("a.delete").click(function(){
450
            $("a.delete").click(function(){
441
                return confirm(_("Are you sure you want to delete this delivery?"));
451
                return confirm(_("Are you sure you want to delete this delivery?"));
442
            });
452
            });
443
        });
453
        });
454
        KohaTable("deliveries", {
455
            "sPaginationType": "full",
456
            "autoWidth": false,
457
        });
444
    </script>
458
    </script>
445
    [% INCLUDE 'str/members-menu.inc' %]
459
    [% INCLUDE 'str/members-menu.inc' %]
446
    [% Asset.js("js/members-menu.js") | $raw %]
460
    [% Asset.js("js/members-menu.js") | $raw %]
447
- 

Return to bug 34660