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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt (-44 / +48 lines)
Lines 369-419 Link Here
369
                  </a>
369
                  </a>
370
                </fieldset>
370
                </fieldset>
371
              </form>
371
              </form>
372
              <h3>Housebound details</h3>
372
                <div class="page-section">
373
              [% PROCESS 'homebound-details' %]
373
                    <h3>Housebound details</h3>
374
            <!-- Display a housebound_profile -->
374
                    [% PROCESS 'homebound-details' %]
375
                    <!-- Display a housebound_profile -->
376
                </div> <!-- /.page-section -->
375
            [% ELSIF ( housebound_profile ) %]
377
            [% ELSIF ( housebound_profile ) %]
376
                [% PROCESS 'homebound-details' %]
378
                <div class="page-section">
377
                <div class="action">
379
                    [% PROCESS 'homebound-details' %]
378
                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | html %]&method=update_or_create"><i class="fa fa-pencil"></i> Edit</a>
380
                    <div class="action">
379
                </div>
381
                        <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | html %]&method=update_or_create"><i class="fa fa-pencil"></i> Edit</a>
380
              <div>
382
                    </div>
381
                <h3>Deliveries</h3>
383
                </div> <!-- /.page-section -->
382
                [% housebound_visits = housebound_profile.housebound_visits %]
384
383
                [% IF  housebound_visits.count > 0 %]
385
                <div class="page-section">
384
                <table border="0" width="100%" cellpadding="3" cellspacing="0">
386
                    <h3>Deliveries</h3>
385
                  <tr>
387
                    [% housebound_visits = housebound_profile.housebound_visits %]
386
                    <th>ID</th><th>Date</th><th>Chooser</th><th>Deliverer</th><th class="noExport">Actions</th>
388
                    [% IF  housebound_visits.count > 0 %]
387
                  </tr>
389
                        <table border="0" width="100%" cellpadding="3" cellspacing="0">
388
                    [% FOREACH entry IN housebound_visits %]
390
                            <tr>
389
                    <tr>
391
                                <th>ID</th><th>Date</th><th>Chooser</th><th>Deliverer</th><th class="noExport">Actions</th>
390
                      <td>[% entry.id | html %]</td>
392
                            </tr>
391
                      <td>[% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %])</td>
393
                            [% FOREACH entry IN housebound_visits %]
392
                      <td>
394
                                <tr>
393
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.chooser.borrowernumber | uri %]">
395
                                    <td>[% entry.id | html %]</td>
394
                          [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %]
396
                                    <td>[% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %])</td>
395
                        </a>
397
                                    <td>
396
                      </td>
398
                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.chooser.borrowernumber | uri %]">
397
                      <td>
399
                                        [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %]
398
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.deliverer.borrowernumber | uri %]">
400
                                        </a>
399
                          [% INCLUDE 'patron-title.inc' patron = entry.deliverer invert_name = 0 %]
401
                                    </td>
400
                        </a>
402
                                    <td>
401
                      </td>
403
                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% entry.deliverer.borrowernumber | uri %]">
402
                      <td class="actions">
404
                                        [% INCLUDE 'patron-title.inc' patron = entry.deliverer invert_name = 0 %]
403
                        <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 fa-pencil"></i> Edit</a>
405
                                        </a>
404
                        <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"></i> Delete</a>
406
                                    </td>
405
                      </td>
407
                                    <td class="actions">
406
                    </tr>
408
                                        <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 fa-pencil"></i> Edit</a>
409
                                        <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"></i> Delete</a>
410
                                    </td>
411
                                </tr>
412
                            [% END %]
413
                        </table>
407
                    [% END %]
414
                    [% END %]
408
                </table>
415
                    <div class="action">
409
                [% END %]
416
                    <a href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&borrowernumber=[% patron.borrowernumber | uri %]"
410
                <div class="action">
417
                        class="btn btn-default btn-sm">
411
                  <a href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&borrowernumber=[% patron.borrowernumber | uri %]"
418
                        <i class="fa fa-plus"></i> Add a new delivery
412
                    class="btn btn-default btn-sm">
419
                    </a>
413
                    <i class="fa fa-plus"></i> Add a new delivery
420
                    </div>
414
                  </a>
421
                </div> <!-- /.page-section -->
415
                </div>
416
              </div>
417
422
418
            [% END %]
423
            [% END %]
419
424
420
- 

Return to bug 32600