mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Merge pull request #2314 from alphagov/validate-rtgl
Don’t trigger HTML5 validation on any form
This commit is contained in:
20
app/templates/components/form.html
Normal file
20
app/templates/components/form.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user