You are here

better-field-descriptions-text.html.twig in Better Field Descriptions 8

Better field descriptions theme implementation of a pure text description.

Available variables:

  • {{ label }}: The label of the description.
  • {{ description }}: The description itself.

File

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