better-field-descriptions-fieldset.html.twig in Better Field Descriptions 8
Better field descriptions theme implementation of a fieldset description.
Available variables:
- {{ label }}: The label of the description.
- {{ description }}: The description itself.
File
templates/better-field-descriptions-fieldset.html.twigView source
- {#
- /**
- * @file
- * Better field descriptions theme implementation of a fieldset description.
- *
- * Available variables:
- * - {{ label }}: The label of the description.
- * - {{ description }}: The description itself.
- */
- #}
- <details class="collapsible collapsed form-wrapper better-descriptions">
- <summary class="fieldset-legend">{{ label }}
- {% if required %}
- <legend>
- <span class="fieldset-legend js-form-required form-required"></span>
- </legend>
- {% endif %}
- </summary>
- <div class="details-wrapper">{{ description }}</div>
- </details>