Skip to content
datetime-wrapper.html.twig 732 B
Newer Older
{#
/**
 * @file
 * Default theme implementation of a datetime form wrapper.
 *
 * Available variables:
 * - content: The form element to be output, usually a datelist, or datetime.
 * - title: The title of the form element.
 * - attributes: HTML attributes for the form wrapper.
 * - required: (optional) A marker indicating that the form element is required.
 * - description: Description text for the form element.
 *
 * @see template_preprocess_datetime_wrapper()
 *
 * @ingroup themeable
 */
#}
{% if title %}
  <h4 class="label">
    {% trans %}{{ title|passthrough }}{{ required|passthrough }}{% endtrans %}
  </h4>
{% endif %}
{{ content }}
{% if description %}
  <div class="description">{{ description }}</div>
{% endif %}