Better style for form errors

This commit is contained in:
Bat
2018-07-18 15:34:18 +02:00
parent e22bd7a588
commit eef9e6b7ea
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
{% block content %}
<h1>{{ "Create a post" | _ }}</h1>
<form class="new-post" method="post">
{{ macros::input(name="title", label="Title", errors=errors, form=form) }}
{{ macros::input(name="title", label="Title", errors=errors, form=form, props="required") }}
{% if errors is defined and errors.content %}
{% for err in errors.content %}