From ceb264b6bdfed8c51e54deed2b6132fecff3934d Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Sun, 6 Jul 2025 15:13:27 +0200 Subject: Added the basic login --- app/templates/index.j2 | 9 +++++++++ app/templates/login.j2 | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 app/templates/login.j2 (limited to 'app/templates') diff --git a/app/templates/index.j2 b/app/templates/index.j2 index ce0d531..656b187 100644 --- a/app/templates/index.j2 +++ b/app/templates/index.j2 @@ -7,6 +7,15 @@ {{ navbar(url_for) }}
+ {% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} + {% endwith %} {{ footer() }} diff --git a/app/templates/login.j2 b/app/templates/login.j2 new file mode 100644 index 0000000..fe898cb --- /dev/null +++ b/app/templates/login.j2 @@ -0,0 +1,25 @@ +{% from "macros.j2" import header, footer, navbar %} + + + {{ header(url_for) }} + +
+ {{ navbar(url_for) }} +

Sign In

+
+ {{ form.hidden_tag() }} +

+ {{ form.username.label }}
+ {{ form.username(size=32) }} +

+

+ {{ form.password.label }}
+ {{ form.password(size=32) }} +

+

{{ form.remember_me() }} {{ form.remember_me.label }}

+

{{ form.submit() }}

+
+ {{ footer() }} +
+ + -- cgit v1.3.1