9 lines
385 B
Twig
9 lines
385 B
Twig
{% extends "forms/fields/text/text.html.twig" %}
|
|
|
|
{% block input_attributes %}
|
|
type="number"
|
|
{% if field.validate.min is defined %}min="{{ field.validate.min }}"{% endif %}
|
|
{% if field.validate.max is defined %}max="{{ field.validate.max }}"{% endif %}
|
|
{% if field.validate.step is defined %}step="{{ field.validate.step }}"{% endif %}
|
|
{{ parent() }}
|
|
{% endblock %} |