1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% macro link(href, text, id=none, style=none) -%}
<a href="{{ href }}"{% if id %} id="{{ id }}"{% endif %}{% if style %} style="{{ style }}"{% endif %}>{{ text }}</a>
{%- endmacro %}
{% macro page_header(title, pretitle=none) %}
<div class="page-header d-print-none">
<div class="row g-2 align-items-center">
<div class="col">
{% if pretitle %}<div class="page-pretitle">{{ pretitle }}</div>{% endif %}
<h2 class="page-title">{{ title }}</h2>
</div>
{% if caller is defined %}
{% set actions = caller() %}
{% if actions|trim %}
<div class="col-auto ms-auto">
<div class="btn-list">{{ actions }}</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endmacro %}
{% macro section(title, flush=false, open=true) %}
<details class="summary-section card mt-3"{% if open %} open{% endif %}>
<summary class="card-header summary-section-toggle">
<h2 class="card-title mb-0">{{ title }}</h2>
</summary>
<div class="{{ 'card-body p-0' if flush else 'card-body' }}">{{ caller() }}</div>
</details>
{% endmacro %}