Skip to content
Snippets Groups Projects
Commit e6687c49 authored by Martin Mareš's avatar Martin Mareš
Browse files

Use flash-error instead of error where appropriate

It's nicer :)
parent 63507c66
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
<h2>Join a new course{% if course %}: {{ course.name }}{% endif %}</h2>
{% if error %}
<p class=error>{{ error }}</p>
<p class="flash flash-error">{{ error }}
<div class=buttons>
<a href='{{ url_for('index') }}' class=button>Go to main page</a>
</div>
......
......@@ -4,7 +4,7 @@
<h2>Join a new course</h2>
{% if error %}
<p class=error>{{ error }}
<p class="flash flash-error">{{ error }}
{% else %}
<p>To join a course, you need to enter a code distributed by your teacher.
{% endif %}
......
......@@ -10,7 +10,7 @@
</form>
{% if error %}
<p class=error>{{ error }}
<p class="flash flash-error">{{ error }}
{% endif %}
<form method="POST" action="?">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment