<!-- BEGIN [% component.name %] -->
[% # PROCESS dumper.tt dump = records %]
<div class="container">
[% IF records;
IF NOT records.size %]
<div class="row">
<div class="container alert alert-info my-3" role="alert">
No records found matching "[% params.search %]"
</div>
</div>
[% ELSE # have records %]
<div class="row">
<div class="container alert alert-info my-3" role="alert">
Total records: <strong>[% records.size %]</strong>
</div>
<table class="table table-bordered table-striped table-condensed">
<tr>
<th>Date</th>
<th>Detail</th>
</tr>
[% FOREACH entry IN records %]
<tr>
<td>[% entry.date %]</td>
<td>
<a href='#' hx-get="[% uri_for_section.moongate.document %]/[% entry.id %]"
hx-target="#hx-container">[% entry.description %]</a> [[% entry.comment %]]
<a href="[% uri_for_section.moongate.download %]/[% entry.filename %]"
target="_blank"><i class="bi bi-file-pdf"></i>
</a>
</td>
</tr>
[% END %]
</table>
</div>
</div>
[% END; END %]
<!-- END [% component.name %] -->