fieldset_top.twig 498 B

1234567891011121314151617
  1. <fieldset
  2. {%- for key, value in attributes -%}
  3. {{- ' ' }}{{ key }}="{{ value }}"
  4. {%- endfor %}>
  5. <legend>{{ title }}</legend>
  6. {% if description is not empty %}
  7. <p>{{ description|raw }}</p>
  8. {% endif %}
  9. {# This must match with displayErrors() in scripts.js #}
  10. {% if errors is iterable and errors|length > 0 %}
  11. <dl class="errors">
  12. {% for error in errors %}
  13. <dd>{{ error }}</dd>
  14. {% endfor %}
  15. </dl>
  16. {% endif %}
  17. <table width="100%" cellspacing="0">