Skip to content
Snippets Groups Projects
Commit affc122e authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Stop the no jvascript error to flicker by adding the js-hidden class.

parent db876665
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
{# 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>
{% else%}
<p class="wrapper--error message-no-js">You must have Javascript enabled to use this contact form.</p>
<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.media }}
{% csrf_token %}
......
......@@ -5,7 +5,7 @@
<div class="wrapper wrapper--medium wrapper--light-grey-bg wrapper--form">
<h1>{{ page.title }}</h1>
{{ page.intro|richtext }}
<p class="wrapper--error message-no-js">You must have Javascript enabled to use this contact form.</p>
<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-pageurl="{% pageurl page %}" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.media }}
......
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