Changed the way error messages are displayed
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
<h1 class="desc">Custom URL Shortener</h1>
|
||||
</div>
|
||||
|
||||
<div class="error-message">
|
||||
<h1>{{ error_message }}</h1>
|
||||
</div>
|
||||
<ul class="error-message">
|
||||
<li><h1>{{ error_code }}</h1></li>
|
||||
<li><h1>{{ error_message }}</h1></li>
|
||||
</ul>
|
||||
</body>
|
||||
{% endblock %}
|
||||
@@ -19,7 +19,7 @@
|
||||
<form method="POST" action="">
|
||||
{{ form.hidden_tag() }}
|
||||
<div class="inputs">
|
||||
{{ form.url(placeholder="Enter the URL here", class="url") }}
|
||||
{{ form.url(placeholder="Enter the URL here", autofocus=true, class="url") }}
|
||||
{{ form.submit(class="button") }}
|
||||
</div>
|
||||
{% if form.url.errors %}
|
||||
|
||||
Reference in New Issue
Block a user