27 lines
727 B
Twig
27 lines
727 B
Twig
{#
|
|
/**
|
|
* @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">
|
|
{{ '!title!required'|t({ '!title': title, '!required': required }) }}
|
|
</h4>
|
|
{% endif %}
|
|
{{ content }}
|
|
{% if description %}
|
|
<div class="description">{{ description }}</div>
|
|
{% endif %}
|