Restructure, add README license and copyright
This commit is contained in:
20
ots-signs/views/partials/_dashboard-card.twig
Normal file
20
ots-signs/views/partials/_dashboard-card.twig
Normal file
@@ -0,0 +1,20 @@
|
||||
{#
|
||||
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 %}
|
||||
#}
|
||||
<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 }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="dashboard-card-body">
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user