From 77fd5619f6423320c269e9d04f083b3a0f58a6fa Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 13 Nov 2020 17:07:15 +1100 Subject: [PATCH] now using wtforms for fields, formatting is still not right with bootstrap4, but it will have to do --- templates/author.html | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/templates/author.html b/templates/author.html index 518702c..6bd696c 100644 --- a/templates/author.html +++ b/templates/author.html @@ -6,37 +6,32 @@ - + + {% import "bootstrap/wtf.html" as wtf %} -

Author

+

Author

+ {% if message|length %}
{{message}}
{% endif %} -
-
- -
- -
- -
-
-
- -
- -
-
-
-
- -
-
+
+ + {{ wtf.form_field( author_form.id, form_type='inline' ) }} +
+ {{ wtf.form_field( author_form.firstnames, form_type='horizontal', horizontal_columns=('xl', 2, 10), style="width:100%" ) }} +
+
+ {{ wtf.form_field( author_form.surname, form_type='horizontal', horizontal_columns=('xl', 2, 10), style="width:100%" ) }} +
+
+

+
+ {{ wtf.form_field( author_form.submit, button_map={'submit':'primary'}, horizontal_columns=('xl', 2, 10), class="btn btn-primary offset-xl-1 col-xl-2" )}}