From ddba4b103b1c014315879eafc0d7d2b80fa28468 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 22 Sep 2022 16:23:01 -0400 Subject: [PATCH] Significant writing.jinja2 cleanup. --- flaskr/templates/writing.jinja2 | 60 ++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 23 deletions(-) diff --git a/flaskr/templates/writing.jinja2 b/flaskr/templates/writing.jinja2 index 1cd7737..87e2858 100644 --- a/flaskr/templates/writing.jinja2 +++ b/flaskr/templates/writing.jinja2 @@ -5,30 +5,37 @@ UnderCover - + +

-
+

The secret cover letter generator

+ {% from "_formhelpers.jinja2" import render_field %}
@@ -40,24 +47,31 @@ {{ render_field(form.body, 'class=bigtext') }} {{ render_field(form.closingtext) }}
+ {% if errors %} -
-

Your letter has errors.

-

There is likely a typo in one of your variables (the {\blabla} bits). -
Make sure each is spelled correctly, and has the correct brackets on either - side

-

- {% for error in errors %} - {{ error }}
- {% endfor %} -

-
- {% endif %} - +

Your letter has errors.

+

+ There is likely a typo in one of your variables (the {\blabla} bits).
+ Make sure each is spelled correctly, and has the correct brackets on either side +

+

+ {% for error in errors %} + {{ error }}
+ {% endfor %} +

+ {% endif %} + +
+