From e1db8dc1018a6be544dcbfd2901e30eac6769bdb Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 27 Feb 2022 13:34:35 -0500 Subject: [PATCH] Wowzers! Copied the login modal example from the w3css web site. Looks better than what I did ... of course. --- webcit-ng/static/js/login.js | 42 +++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/webcit-ng/static/js/login.js b/webcit-ng/static/js/login.js index bc13e00f2..2d8a510fa 100644 --- a/webcit-ng/static/js/login.js +++ b/webcit-ng/static/js/login.js @@ -15,19 +15,35 @@ // It appears in the "ctdl_big_modal" div which is defined in index.html and is used for several different modals. // If you want to change the look of the login dialog, this is where to change it. function display_login_screen(any_message) { - document.getElementById("ctdl_big_modal").innerHTML = - "
" - + "
" - + "

FIXME put a login banner here, dummy

" - + "

" + any_message + "

" - + "
" - + _("User name:") + "
" - + _("Password:") + "

" - + "

" - + "" - + "

" - + "
" - + "
"; + document.getElementById("ctdl_big_modal").innerHTML = ` +
+ +

+ × + +
+ +
+
+ ${any_message} +
+
+ + + + + + Remember me +
+
+ +
+ + Forgot password? +
+
+ `; + document.getElementById("ctdl_big_modal").style.display = "block"; } -- 2.39.2