input--form-control.html.twig in Open Social 8.2
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/form/input--form-control.html.twig
- 8 themes/socialbase/templates/form/input--form-control.html.twig
- 8.3 themes/socialbase/templates/form/input--form-control.html.twig
- 8.4 themes/socialbase/templates/form/input--form-control.html.twig
- 8.5 themes/socialbase/templates/form/input--form-control.html.twig
- 8.6 themes/socialbase/templates/form/input--form-control.html.twig
- 8.7 themes/socialbase/templates/form/input--form-control.html.twig
- 8.8 themes/socialbase/templates/form/input--form-control.html.twig
Default theme implementation for an 'input__textfield' #type form element.
Available variables:
- attributes: A list of HTML attributes for the input element.
- children: Optional additional rendered elements.
- icon: An icon.
- input_group: Flag to display as an input group.
- icon_position: Where an icon should be displayed.
- prefix: Markup to display before the input element.
- suffix: Markup to display after the input element.
- type: The type of input.
File
themes/socialbase/templates/form/input--form-control.html.twigView source
-
- {#
- /**
- * @file
- * Default theme implementation for an 'input__textfield' #type form element.
- *
- * Available variables:
- * - attributes: A list of HTML attributes for the input element.
- * - children: Optional additional rendered elements.
- * - icon: An icon.
- * - input_group: Flag to display as an input group.
- * - icon_position: Where an icon should be displayed.
- * - prefix: Markup to display before the input element.
- * - suffix: Markup to display after the input element.
- * - type: The type of input.
- *
- * @ingroup templates
- *
- * @see \Drupal\bootstrap\Plugin\Preprocess\Input
- * @see template_preprocess_input()
- */
- #}
- {%
- set classes = [
- 'form-control',
- ]
- %}
-
- {% spaceless %}
- {% if input_group %}
- {{ attach_library('socialbase/form--input-groups') }}
-
- <div class="input-group">
- {% endif %}
-
- {% if prefix %}
- {{ prefix }}
- {% endif %}
-
- {% block input %}
- <input{{ attributes.addClass(classes) }} />
- {% endblock %}
-
- {% if suffix %}
- {{ suffix }}
- {% endif %}
-
- {% if input_group %}
- </div>
- {% endif %}
-
- {% endspaceless %}