Lines 31-36
Link Here
|
31 |
[% END %] |
31 |
[% END %] |
32 |
[% WRAPPER tab_item tabname="bookings" %] |
32 |
[% WRAPPER tab_item tabname="bookings" %] |
33 |
[% SET bookings_count = patron.bookings.filter_by_active.count %] |
33 |
[% SET bookings_count = patron.bookings.filter_by_active.count %] |
|
|
34 |
[% SET expired_bookings_count = patron.bookings.count - bookings_count %] |
34 |
<span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span> |
35 |
<span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span> |
35 |
[% END %] |
36 |
[% END %] |
36 |
[% END %] |
37 |
[% END %] |
Lines 232-237
Link Here
|
232 |
<a id="expired_filter" class="filtered"><i class="fa fa-bars"></i> Show expired</a> |
233 |
<a id="expired_filter" class="filtered"><i class="fa fa-bars"></i> Show expired</a> |
233 |
</fieldset> |
234 |
</fieldset> |
234 |
<table id="bookings_table" style="width: 100% !Important;"></table> |
235 |
<table id="bookings_table" style="width: 100% !Important;"></table> |
|
|
236 |
[% ELSIF ( expired_bookings_count ) %] |
237 |
<fieldset class="action filters" style="cursor:pointer;"> |
238 |
<a id="expired_filter"><i class="fa fa-filter"></i> Hide expired</a> |
239 |
</fieldset> |
240 |
<table id="bookings_table" style="width: 100% !Important;"></table> |
235 |
[% ELSE %] |
241 |
[% ELSE %] |
236 |
<p>Patron has nothing booked.</p> |
242 |
<p>Patron has nothing booked.</p> |
237 |
[% END %] |
243 |
[% END %] |