From 331dbc3d28b75205bca9dffa33ef732d6fcbfa48 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 12 May 2020 20:29:50 +0100 Subject: [PATCH] pw requirements now loaded with jinja over js Originally i loaded the requirements through calling the web api in javascript, but decided to switch it to jinja as i only recently found out its capable of stuff more complicated than replacing strings. --- .gitignore | 4 +++ data/templates/form.html | 57 ++++++++++-------------------------- jellyfin_accounts/web.py | 5 +++- jellyfin_accounts/web_api.py | 8 ----- setup.py | 2 -- 5 files changed, 24 insertions(+), 52 deletions(-) diff --git a/.gitignore b/.gitignore index 07e17fa..c375fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,7 @@ data/node_modules/ *.egg-info/ pw-reset/ jfa/ +colors.txt +theme.css +data/static/bootstrap-jf.css +old/ diff --git a/data/templates/form.html b/data/templates/form.html index 2b655cc..cd14dab 100644 --- a/data/templates/form.html +++ b/data/templates/form.html @@ -78,52 +78,27 @@ + {% if validate %} +
+
+
Password Requirements
+
+
    + {% for key, value in requirements.items() %} +
  • +
    {{ value }}
    +
  • + {% endfor %} +
+
+
+
+ {% endif %}