{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} -
-
- {% for category, message in messages %} -
- × - {{message}} -
- {% endfor %} -
-
- {% endif %} +
+
+
+ {% for category, message in messages %} +
+ × + {{message}} +
+ {% endfor %} +
+
+
+{% endif %} {% endwith %} {% block content %}{% endblock %} diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html index a6e2883..29deea0 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html @@ -31,12 +31,12 @@ {% elif form %} -
+
{{ form.username(placeholder="Username", class_="form-control mr-sm-1 my-auto") }} {{ form.password(placeholder="Password", class_="form-control mr-sm-1 my-auto") }} - +