silverstripe-webpack/app/templates/Layout/PageController_search.ss

49 lines
1.9 KiB
Scheme
Raw Normal View History

2018-12-20 19:52:07 +01:00
<% with $SearchResults %>
2022-07-03 15:19:00 +02:00
<div class="element page-header-element d-block no-elements">
<div class="element-container {$Top.DefaultContainer}">
<h1 class="page-header">
$Title
</h1>
2020-12-25 00:18:03 +01:00
</div>
</div>
2018-12-20 19:52:07 +01:00
2022-07-03 15:19:00 +02:00
<div class="element element-search-results">
<div class="element-container {$Top.DefaultContainer}">
<% if $Results %>
2023-04-28 19:49:03 +02:00
<div id="SearchAccordion{$ID}" class="accordion accordion-flush">
2022-07-03 15:19:00 +02:00
<% loop $Results %>
2023-04-28 19:49:03 +02:00
<div class="accordion-item">
<h3 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#Collapse{$ID}{$Up.ID}"
aria-expanded="false"
aria-controls="Collapse{$ID}{$Up.ID}"
>
$Title
</button>
</h3>
2018-12-20 19:52:07 +01:00
2022-07-03 15:19:00 +02:00
<div
id="Collapse{$ID}{$Up.ID}"
2023-04-28 19:49:03 +02:00
class="accordion-collapse collapse"
2022-07-03 15:19:00 +02:00
aria-labelledby="Heading{$ID}{$Up.ID}"
data-bs-parent="#SearchAccordion{$Up.ID}"
>
2023-04-28 19:49:03 +02:00
<div class="accordion-body">
2022-07-03 15:19:00 +02:00
<p>$Summary(100)</p>
<a href="{$Link}">Learn More</a>
2018-12-20 19:52:07 +01:00
</div>
2022-07-03 15:19:00 +02:00
</div>
2018-12-20 19:52:07 +01:00
</div>
2022-07-03 15:19:00 +02:00
<% end_loop %>
2018-12-20 19:52:07 +01:00
</div>
2022-07-03 15:19:00 +02:00
<% else %>
2023-04-28 19:49:03 +02:00
<h3 class="alert alert-danger not-found">Nothing was found.</h3>
2022-07-03 15:19:00 +02:00
<% end_if %>
2018-12-20 19:52:07 +01:00
</div>
</div>
2018-12-21 03:56:42 +01:00
<% end_with %>