Bug 32199: (follow-up) Add page-section to list of validated discharges
This requires that a discharge is added to the patron account first. Then you'll see that the 'Aready validated discharges' appear within the white page section. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
1fda4eb66c
commit
db78c0d676
1 changed files with 23 additions and 19 deletions
|
@ -62,30 +62,34 @@
|
|||
[% IF patron.holds.count %]
|
||||
<p>Patron has holds. They will be cancelled if the discharge is generated.</p>
|
||||
[% END %]
|
||||
<form method="post">
|
||||
<input type="submit" name="discharge" class="btn btn-primary" value="Generate discharge" />
|
||||
<input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
|
||||
</form>
|
||||
<div class="btn-toolbar">
|
||||
<form method="post">
|
||||
<input type="submit" name="discharge" class="btn btn-primary" value="Generate discharge" />
|
||||
<input type="hidden" value="[% patron.borrowernumber | html %]" name="borrowernumber" />
|
||||
</form>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF validated_discharges %]
|
||||
<h2>Already validated discharges</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requested</th>
|
||||
<th>Validated</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOR d IN validated_discharges %]
|
||||
<div class="page-section">
|
||||
<h2>Already validated discharges</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>[% d.needed | $KohaDates with_hours = 1 %]</td>
|
||||
<td>[% d.validated | $KohaDates with_hours = 1 %]</td>
|
||||
<th>Requested</th>
|
||||
<th>Validated</th>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOR d IN validated_discharges %]
|
||||
<tr>
|
||||
<td>[% d.needed | $KohaDates with_hours = 1 %]</td>
|
||||
<td>[% d.validated | $KohaDates with_hours = 1 %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
</main>
|
||||
|
|
Loading…
Reference in a new issue