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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt (-51 / +55 lines)
Lines 14-19 Link Here
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
15
[% INCLUDE 'patron-search.inc' %]
16
16
17
[% BLOCK 'homebound-details' %]
18
  <div class="rows">
19
    <ol>
20
      <li>
21
        <span class="label" class="required"> Delivery day:</span>
22
        [% hpd = housebound_profile.day %]
23
        [% IF hpd == 'any' %]
24
          Any
25
        [% ELSIF hpd == 'monday' %]
26
          Monday
27
        [% ELSIF hpd == 'tuesday' %]
28
          Tuesday
29
        [% ELSIF hpd == 'wednesday' %]
30
          Wednesday
31
        [% ELSIF hpd == 'thursday' %]
32
          Thursday
33
        [% ELSIF hpd == 'friday' %]
34
          Friday
35
        [% ELSIF hpd == 'saturday' %]
36
          Saturday
37
        [% ELSIF hpd == 'sunday' %]
38
          Sunday
39
        [% END %]
40
      </li>
41
      <li>
42
        <span class="label" class="required">Frequency:</span>
43
        [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency | html %]
44
      </li>
45
      <li>
46
        <span class="label">Material:</span>
47
        [% housebound_profile.fav_itemtypes | html %]
48
      </li>
49
      <li>
50
        <span class="label">Subjects:</span>
51
        [% housebound_profile.fav_subjects | html %]
52
      </li>
53
      <li>
54
        <span class="label">Authors:</span>
55
        [% housebound_profile.fav_authors | html %]
56
      </li>
57
      <li>
58
        <span class="label">Referral:</span>
59
        [% housebound_profile.referral | html %]
60
      </li>
61
      <li>
62
        <span class="label">Notes:</span>
63
        [% housebound_profile.notes | html %]
64
      </li>
65
    </ol>
66
  </div>
67
[% END %]
68
17
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
69
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18
    <ol>
70
    <ol>
19
        <li>
71
        <li>
Lines 329-389 Link Here
329
                  </a>
381
                  </a>
330
                </fieldset>
382
                </fieldset>
331
              </form>
383
              </form>
332
384
              <h3>Housebound details</h3>
385
              [% PROCESS 'homebound-details' %]
333
            <!-- Display a housebound_profile -->
386
            <!-- Display a housebound_profile -->
334
            [% ELSIF ( housebound_profile ) %]
387
            [% ELSIF ( housebound_profile ) %]
335
              <div class="rows">
388
                [% PROCESS 'homebound-details' %]
336
                <ol>
337
                  <li>
338
                    <span class="label" class="required"> Delivery day:</span>
339
                    [% hpd = housebound_profile.day %]
340
                    [% IF hpd == 'any' %]
341
                      Any
342
                    [% ELSIF hpd == 'monday' %]
343
                      Monday
344
                    [% ELSIF hpd == 'tuesday' %]
345
                      Tuesday
346
                    [% ELSIF hpd == 'wednesday' %]
347
                      Wednesday
348
                    [% ELSIF hpd == 'thursday' %]
349
                      Thursday
350
                    [% ELSIF hpd == 'friday' %]
351
                      Friday
352
                    [% ELSIF hpd == 'saturday' %]
353
                      Saturday
354
                    [% ELSIF hpd == 'sunday' %]
355
                      Sunday
356
                    [% END %]
357
                  </li>
358
                  <li>
359
                    <span class="label" class="required">Frequency:</span>
360
                    [% AuthorisedValues.GetByCode( 'HSBND_FREQ', housebound_profile.frequency, 0 ) || housebound_profile.frequency | html %]
361
                  </li>
362
                  <li>
363
                    <span class="label">Material:</span>
364
                    [% housebound_profile.fav_itemtypes | html %]
365
                  </li>
366
                  <li>
367
                    <span class="label">Subjects:</span>
368
                    [% housebound_profile.fav_subjects | html %]
369
                  </li>
370
                  <li>
371
                    <span class="label">Authors:</span>
372
                    [% housebound_profile.fav_authors | html %]
373
                  </li>
374
                  <li>
375
                    <span class="label">Referral:</span>
376
                    [% housebound_profile.referral | html %]
377
                  </li>
378
                  <li>
379
                    <span class="label">Notes:</span>
380
                    [% housebound_profile.notes | html %]
381
                  </li>
382
                </ol>
383
                <div class="action">
389
                <div class="action">
384
                  <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>
390
                  <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>
385
                </div>
391
                </div>
386
              </div>
387
              <div>
392
              <div>
388
                <h3>Deliveries</h3>
393
                <h3>Deliveries</h3>
389
                [% housebound_visits = housebound_profile.housebound_visits %]
394
                [% housebound_visits = housebound_profile.housebound_visits %]
390
- 

Return to bug 26544