2013-07-20 23:53:24 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @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.
|
2014-05-08 13:40:44 +00:00
|
|
|
* - title_attributes: HTML attributes for the title wrapper.
|
2013-07-20 23:53:24 +00:00
|
|
|
* - description: Description text for the form element.
|
2014-09-17 23:16:41 +00:00
|
|
|
* - required: An indicator for whether the associated form element is required.
|
2013-07-20 23:53:24 +00:00
|
|
|
*
|
|
|
|
* @see template_preprocess_datetime_wrapper()
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
2014-09-17 23:16:41 +00:00
|
|
|
{%
|
|
|
|
set title_classes = [
|
|
|
|
required ? 'form-required',
|
|
|
|
]
|
|
|
|
%}
|
2013-07-20 23:53:24 +00:00
|
|
|
{% if title %}
|
2014-09-17 23:16:41 +00:00
|
|
|
<h4{{ title_attributes.addClass(title_classes) }}>{{ title }}</h4>
|
2013-07-20 23:53:24 +00:00
|
|
|
{% endif %}
|
|
|
|
{{ content }}
|
2015-06-02 16:41:21 +00:00
|
|
|
{{ description }}
|