From d276a7b3c1f3f8f1e6a26ecb4537143882ef7fe9 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 15 Nov 2024 23:09:39 +1100 Subject: [PATCH] first cut of get ebook --- templates/get_ebook.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 templates/get_ebook.html diff --git a/templates/get_ebook.html b/templates/get_ebook.html new file mode 100644 index 0000000..aba7ad3 --- /dev/null +++ b/templates/get_ebook.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block main_content %} +
+

{{page_title}}

+
+
+ {% for field in form %} + {% if field.type == 'HiddenField' or field.type == 'CSRFTokenField' %} + {{field}} + {% elif field.type != 'SubmitField' %} +
+ {{ field.label( class="input-group-text col-2 justify-content-end" ) }} + {% if field.type == 'SelectField' %} + {{ field( class="form-select col-9" ) }} + {% else %} + {{ field( class="form-control col-9" ) }} + {% endif %} +
+ {% endif %} + {% endfor %} +
+ {{form.submit(class="btn btn-primary offset-2 col-2 mt-4" )}} +
+
+
+ +{% endblock main_content %}