2026-02-06 23:57:16 -05:00
|
|
|
{#
|
|
|
|
|
Reusable dashboard card partial.
|
|
|
|
|
Usage (embed to allow overriding the `body` block):
|
|
|
|
|
{% embed 'custom/otssignange/views/partials/_dashboard-card.twig' with {'classes':'ots-displays-card'} %}
|
|
|
|
|
{% block body %}
|
|
|
|
|
... inner content ...
|
|
|
|
|
{% endblock %}
|
|
|
|
|
{% endembed %}
|
2026-03-23 21:09:27 -04:00
|
|
|
|
|
|
|
|
Optional blocks: badge, description, actions
|
|
|
|
|
These are additive — existing embeds that only use `body` are unaffected.
|
2026-02-06 23:57:16 -05:00
|
|
|
#}
|
|
|
|
|
<div class="dashboard-card {{ classes|default('') }}" {% if id is defined %}id="{{ id }}"{% endif %}>
|
|
|
|
|
{% if title is defined and title %}
|
|
|
|
|
<div class="dashboard-card-header">
|
|
|
|
|
{{ title|raw }}
|
2026-03-23 21:09:27 -04:00
|
|
|
{% block badge %}{% endblock %}
|
2026-02-06 23:57:16 -05:00
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<div class="dashboard-card-body">
|
|
|
|
|
{% block body %}{% endblock %}
|
2026-03-23 21:09:27 -04:00
|
|
|
{% block description %}{% endblock %}
|
2026-02-06 23:57:16 -05:00
|
|
|
</div>
|
2026-03-23 21:09:27 -04:00
|
|
|
|
|
|
|
|
{% block actions %}{% endblock %}
|
2026-02-06 23:57:16 -05:00
|
|
|
</div>
|