HTML validation + Actually associate messages to errors + Fix inverted behavior on new blog and post form

This commit is contained in:
Bat
2018-07-07 22:51:48 +02:00
parent e5c1b3259d
commit 3775d3a9c9
10 changed files with 34 additions and 24 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
{% block content %}
<h1>{{ "Create a blog" | _ }}</h1>
<form method="post">
{{ macros::input(name="title", label="Title", errors=errors, form=form) }}
{{ macros::input(name="title", label="Title", errors=errors, form=form, props='required minlength="1"') }}
<input type="submit" value="{{ "Create blog" | _ }}"/>
</form>