Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / templates / input / input.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for an 'input' #type form element.
5  *
6  * Available variables:
7  * - attributes: A list of HTML attributes for the input element.
8  * - children: Optional additional rendered elements.
9  * - icon: An icon.
10  * - input_group: Flag to display as an input group.
11  * - icon_position: Where an icon should be displayed.
12  * - prefix: Markup to display before the input element.
13  * - suffix: Markup to display after the input element.
14  * - type: The type of input.
15  *
16  * @ingroup templates
17  *
18  * @see \Drupal\bootstrap\Plugin\Preprocess\Input
19  * @see template_preprocess_input()
20  */
21 #}
22 {% spaceless %}
23   {% if input_group %}
24     <div class="input-group">
25   {% endif %}
26
27   {% if prefix %}
28     {{ prefix }}
29   {% endif %}
30
31   {% block input %}
32     <input{{ attributes }} />
33   {% endblock %}
34
35   {% if suffix %}
36     {{ suffix }}
37   {% endif %}
38
39   {% if input_group %}
40     </div>
41   {% endif %}
42
43   {{ children }}
44 {% endspaceless %}