Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme implementation for an individual form element. Chris@0: * Chris@0: * Available variables for all fields: Chris@0: * - multiple: Whether there are multiple instances of the field. Chris@0: * Chris@0: * Available variables for single cardinality fields: Chris@0: * - elements: Form elements to be rendered. Chris@0: * Chris@0: * Available variables when there are multiple fields. Chris@0: * - table: Table of field items. Chris@0: * - description: The description element containing the following properties: Chris@0: * - content: The description content of the form element. Chris@0: * - attributes: HTML attributes to apply to the description container. Chris@0: * - button: "Add another item" button. Chris@0: * Chris@0: * @see template_preprocess_field_multiple_value_form() Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: {% if multiple %} Chris@18: {% Chris@18: set classes = [ Chris@18: 'js-form-item', Chris@18: 'form-item' Chris@18: ] Chris@18: %} Chris@18: