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

57 lines
2.4 KiB
Scheme
Raw Normal View History

2018-12-20 19:52:07 +01:00
<% with $SearchResults %>
<div id="PageContainer" class="page{$CSSClass} pageSearch action{$Action}">
2020-12-25 00:18:03 +01:00
<div class="element">
<div class="element page-header-element d-block no-elements">
<div class="element-container {$Top.DefaultContainer}">
<h1 class="page-header">
$Title
</h1>
</div>
</div>
</div>
2018-12-20 19:52:07 +01:00
2020-12-25 00:18:03 +01:00
<div class="page-content page-content-main page-content-extra">
<div class="elemental-area">
<div class="element">
<div class="element-container {$Top.DefaultContainer}">
<% if $Results %>
<div id="SearchAccordion{$ID}">
<% loop $Results %>
<div class="card">
<div class="card-header" id="Heading{$ID}{$Up.ID}">
<h3
class="mb-0 a"
2021-08-19 00:10:45 +02:00
data-bs-toggle="collapse"
data-bs-target="#Collapse{$ID}{$Up.ID}"
2020-12-25 00:18:03 +01:00
aria-expanded="false"
aria-controls="Collapse{$ID}{$Up.ID}"
>
$Title
<i class="fas fa-plus accordion-icon pull-right"></i>
</h3>
</div>
2018-12-20 19:52:07 +01:00
2020-12-25 00:18:03 +01:00
<div
id="Collapse{$ID}{$Up.ID}"
class="collapse"
aria-labelledby="Heading{$ID}{$Up.ID}"
2021-08-19 00:10:45 +02:00
data-bs-parent="#SearchAccordion{$Up.ID}"
2020-12-25 00:18:03 +01:00
>
<div class="card-body">
<p>$Summary(100)</p>
<a href="{$Link}">Learn More</a>
</div>
</div>
2018-12-20 19:52:07 +01:00
</div>
2020-12-25 00:18:03 +01:00
<% end_loop %>
2018-12-20 19:52:07 +01:00
</div>
2020-12-25 00:18:03 +01:00
<% else %>
<h3>Nothing was found.</h3>
<% end_if %>
</div>
2018-12-20 19:52:07 +01:00
</div>
</div>
</div>
</div>
2018-12-21 03:56:42 +01:00
<% end_with %>