Merge pull request #2314 from alphagov/validate-rtgl

Don’t trigger HTML5 validation on any form
This commit is contained in:
Chris Hill-Scott
2018-10-01 14:18:16 +01:00
committed by GitHub
72 changed files with 257 additions and 170 deletions

View File

@@ -0,0 +1,20 @@
{% macro form_wrapper(
method="post",
action=None,
autocomplete=False,
class=None,
id=None,
module=None
) %}
<form
method="{{ method }}"
{% if action %}action="{{ action }}"{% endif %}
{% if not autocomplete %}autocomplete="off"{% endif %}
{% if class %}class="{{ class }}"{% endif %}
{% if id %}id="{{ id }}"{% endif %}
{% if module %}data-module="{{ module }}"{% endif %}
novalidate
>
{{ caller() }}
</form>
{% endmacro %}