Files
myep/templates/components/form/section.html.twig
T

12 lines
488 B
Twig

{#- A titled card grouping the fields of a long admin form. No overflow-hidden: the "⋯" menus
inside must be able to open past its edge. -#}
<div {{ attributes.defaults({class: 'card'}).without('title') }}>
<div class="flex items-center justify-between gap-4 border-b border-line px-5 py-3">
<h2 class="section-title">{{ title }}</h2>
{% block actions %}{% endblock %}
</div>
<div class="p-5">
{% block content %}{% endblock %}
</div>
</div>