summaryrefslogtreecommitdiffstats
path: root/core/modules/datetime/templates/datetime-wrapper.html.twig
blob: a4acf70cfee796d47de5d6068ea76e3937e861f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{#
/**
 * @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 %}