forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
36 lines
1004 B
Twig
36 lines
1004 B
Twig
{% extends "input.html.twig" %}
|
|
{#
|
|
/**
|
|
* @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()
|
|
*/
|
|
#}
|
|
{% apply spaceless %}
|
|
{%
|
|
set classes = [
|
|
'form-control',
|
|
'form-number',
|
|
]
|
|
%}
|
|
{% block input %}
|
|
<button class="number-btn increment" type="button">+</button>
|
|
<input{{ attributes.addClass(classes) }} />
|
|
<button class="number-btn decrement" type="button">-</button>
|
|
{% endblock %}
|
|
{% endapply %}
|