You are here

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.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Better field descriptions theme implementation of a fieldset description.
  5. *
  6. * Available variables:
  7. * - {{ label }}: The label of the description.
  8. * - {{ description }}: The description itself.
  9. */
  10. #}
  11. <details class="collapsible collapsed form-wrapper better-descriptions">
  12. <summary class="fieldset-legend">{{ label }}
  13. {% if required %}
  14. <legend>
  15. <span class="fieldset-legend js-form-required form-required"></span>
  16. </legend>
  17. {% endif %}
  18. </summary>
  19. <div class="details-wrapper">{{ description }}</div>
  20. </details>