{# /** * @file * Default theme implementation for a fieldset element and its children. * * Available variables: * - attributes: HTML attributes for the fieldset element. * - required: The required marker or empty if the associated fieldset is * not required. * - legend: The legend element containing the following properties: * - title: Title of the fieldset, intended for use as the text of the legend. * - attributes: HTML attributes to apply to the legend. * - description: The description element containing the following properties: * - content: The description content of the fieldset. * - attributes: HTML attributes to apply to the description container. * - children: The rendered child elements of the fieldset. * - prefix: The content to add before the fieldset children. * - suffix: The content to add after the fieldset children. * * @see template_preprocess_fieldset() * * @ingroup themeable */ #} {% if legend.title is not empty or required -%} {# Always wrap fieldset legends in a SPAN for CSS positioning. #} {{ legend.title }}{{ required }} {%- endif %}
{% if prefix %} {{ prefix }} {% endif %} {{ children }} {% if suffix %} {{ suffix }} {% endif %} {% if description.content %} {{ description.content }}
{% endif %}