Lines 4-25
Link Here
|
4 |
<table id="recalls-table"> |
4 |
<table id="recalls-table"> |
5 |
<thead> |
5 |
<thead> |
6 |
<tr> |
6 |
<tr> |
7 |
[% IF checkboxes %]<th class="recall-checkbox no-sort"> </th>[% END %] |
7 |
<th data-colname="completed" class="recall-completed no-sort no-export"></th> |
8 |
<th class="recall-title anti-the">Title</th> |
8 |
[% IF checkboxes %]<th data-colname="checkbox" class="recall-checkbox no-sort no-export"> </th>[% END %] |
9 |
[% UNLESS specific_patron %]<th class="recall-patron">Requested by</th>[% END %] |
9 |
<th data-colname="title" class="recall-title anti-the">Title</th> |
10 |
<th class="recall-date">Placed on</th> |
10 |
[% UNLESS specific_patron %]<th data-colname="requested_by" class="recall-patron">Requested by</th>[% END %] |
11 |
<th class="recall-expiry">Expires on</th> |
11 |
<th data-colname="placed_on" class="recall-date">Placed on</th> |
12 |
<th class="recall-branch">Pickup location</th> |
12 |
<th data-colname="expires_on" class="recall-expiry">Expires on</th> |
13 |
<th class="recall-status">Status</th> |
13 |
<th data-colname="pickup_location" class="recall-branch">Pickup location</th> |
14 |
[% UNLESS viewing_old %]<th class="recall-duedate">Due date</th>[% END %] |
14 |
<th data-colname="status" class="recall-status">Status</th> |
15 |
[% UNLESS viewing_old %]<th class="recall-actions no-sort"> </th>[% END %] |
15 |
[% UNLESS viewing_old %]<th data-colname="due_date" class="recall-duedate">Due date</th>[% END %] |
|
|
16 |
[% UNLESS viewing_old %]<th data-colname="actions" class="recall-actions no-sort no-export"> </th>[% END %] |
16 |
</tr> |
17 |
</tr> |
17 |
</thead> |
18 |
</thead> |
18 |
|
19 |
|
19 |
<tbody> |
20 |
<tbody> |
20 |
[% FOREACH recall IN recalls %] |
21 |
[% FOREACH recall IN recalls %] |
21 |
[% SET tr_class = recall.completed ? 'old' : '' %] |
22 |
<tr> |
22 |
<tr class="[% tr_class | html %]"> |
23 |
<td class="recall-completed"> [% recall.completed | html %] </td> |
23 |
[% IF checkboxes %] |
24 |
[% IF checkboxes %] |
24 |
<td class="recall-checkbox"> |
25 |
<td class="recall-checkbox"> |
25 |
[% IF recall.completed %] |
26 |
[% IF recall.completed %] |
Lines 90-96
Link Here
|
90 |
[% IF recall.completed %] |
91 |
[% IF recall.completed %] |
91 |
|
92 |
|
92 |
[% ELSE %] |
93 |
[% ELSE %] |
93 |
<div class="btn-group"> |
94 |
<div class="btn-group dropup"> |
94 |
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Actions </button> |
95 |
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Actions </button> |
95 |
<ul class="dropdown-menu dropdown-menu-end"> |
96 |
<ul class="dropdown-menu dropdown-menu-end"> |
96 |
[% IF ( recall.requested or recall.overdue ) %] |
97 |
[% IF ( recall.requested or recall.overdue ) %] |