Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme implementation of a datetime form wrapper. Chris@0: * Chris@0: * Available variables: Chris@0: * - content: The form element to be output, usually a datelist, or datetime. Chris@0: * - title: The title of the form element. Chris@0: * - title_attributes: HTML attributes for the title wrapper. Chris@0: * - description: Description text for the form element. Chris@0: * - required: An indicator for whether the associated form element is required. Chris@0: * Chris@0: * @see template_preprocess_datetime_wrapper() Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: {% Chris@0: set title_classes = [ Chris@0: required ? 'js-form-required', Chris@0: required ? 'form-required', Chris@0: ] Chris@0: %} Chris@0: {% if title %} Chris@0: {{ title }} Chris@0: {% endif %} Chris@0: {{ content }} Chris@0: {% if errors %} Chris@0:
Chris@0: {{ errors }} Chris@0:
Chris@0: {% endif %} Chris@0: {% if description %} Chris@0: Chris@0: {{ description }} Chris@0: Chris@0: {% endif %}