Skip to content
Snippets Groups Projects
Unverified Commit a8287983 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1594 from OpenTechFund/fix/move-javascript-form-warning-to-bottom

Move the javascript form warning to bottom to avoid flicker.
parents 7fe3205d e5135abc
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
{# the page has no open rounds and we arent on a round page #} {# the page has no open rounds and we arent on a round page #}
<h3>{% blocktrans %}Sorry this {{ page|verbose_name }} is not accepting applications at the moment{% endblocktrans %}</h3> <h3>{% blocktrans %}Sorry this {{ page|verbose_name }} is not accepting applications at the moment{% endblocktrans %}</h3>
{% else%} {% else%}
<p class="wrapper--error message-no-js js-hidden">You must have Javascript enabled to use this form.</p>
<form class="form application-form" action="/test500/" method="POST" enctype="multipart/form-data"> <form class="form application-form" action="/test500/" method="POST" enctype="multipart/form-data">
{{ form.media }} {{ form.media }}
{% csrf_token %} {% csrf_token %}
...@@ -46,6 +45,7 @@ ...@@ -46,6 +45,7 @@
{% endfor %} {% endfor %}
<button class="link link--button-secondary" type="submit" disabled>{% if page.action_text %}{{ page.action_text|safe }}{% else %}Submit for review{% endif %}</button> <button class="link link--button-secondary" type="submit" disabled>{% if page.action_text %}{{ page.action_text|safe }}{% else %}Submit for review{% endif %}</button>
</form> </form>
<p class="wrapper--error message-no-js js-hidden">You must have Javascript enabled to use this form.</p>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<div class="wrapper wrapper--medium wrapper--light-grey-bg wrapper--form"> <div class="wrapper wrapper--medium wrapper--light-grey-bg wrapper--form">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{{ page.intro|richtext }} {{ page.intro|richtext }}
<p class="wrapper--error message-no-js js-hidden">You must have Javascript enabled to use this form.</p>
<form class="form wagtail-form" action="#" data-actionpath="{% pageurl page %}" method="post" enctype="multipart/form-data"> <form class="form wagtail-form" action="#" data-actionpath="{% pageurl page %}" method="post" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{{ form.media }} {{ form.media }}
...@@ -18,6 +17,7 @@ ...@@ -18,6 +17,7 @@
{% endfor %} {% endfor %}
<button class="link link--button-secondary" type="submit" disabled>Submit</button> <button class="link link--button-secondary" type="submit" disabled>Submit</button>
</form> </form>
<p class="wrapper--error message-no-js js-hidden">You must have Javascript enabled to use this form.</p>
</div> </div>
{% endblock %} {% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment