Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme implementation for a details element. Chris@0: * Chris@0: * Available variables Chris@0: * - attributes: A list of HTML attributes for the details element. Chris@0: * - errors: (optional) Any errors for this details element, may not be set. Chris@0: * - title: (optional) The title of the element, may not be set. Chris@0: * - description: (optional) The description of the element, may not be set. Chris@0: * - children: (optional) The children of the element, may not be set. Chris@0: * - value: (optional) The value of the element, may not be set. Chris@0: * Chris@0: * @see template_preprocess_details() Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: Chris@0: {% Chris@0: set summary_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: Chris@0: {% if errors %} Chris@0:
Chris@0: {{ errors }} Chris@0:
Chris@0: {% endif %} Chris@0: Chris@0: {{ description }} Chris@0: {{ children }} Chris@0: {{ value }} Chris@0: