wiki-grav/plugins/form/templates/forms/fields/url/url.html.twig

10 lines
469 B
Twig
Raw Permalink Normal View History

{% extends "forms/field.html.twig" %}
{% block input_attributes %}
type="url"
{% if field.size %}size="{{ field.size }}"{% endif %}
{% if field.minlength is defined or field.validate.min is defined %}minlength="{{ field.minlength | default(field.validate.min) }}"{% endif %}
{% if field.maxlength is defined or field.validate.max is defined %}maxlength="{{ field.maxlength | default(field.validate.max) }}"{% endif %}
{{ parent() }}
{% endblock %}