webseite-grav/plugins/form/templates/forms/fields/number/number.html.twig

9 lines
385 B
Twig
Raw Normal View History

2021-04-30 11:23:26 +02:00
{% 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 %}