]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/login.js
Grammar change in the license declaration.
[citadel.git] / webcit-ng / static / js / login.js
index 48950202206508d224daa286b2122a3c23c50a99..11592ee62fd7febad0e1a554960f8c6ac5ef0f8f 100644 (file)
@@ -1,7 +1,7 @@
-// Copyright (c) 2016-2022 by the citadel.org team
+// Copyright (c) 2016-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or
-// disclosure are subject to the GNU General Public License v3.
+// disclosure is subject to the GNU General Public License v3.
 
 
 // This is where the login screen (modal) is displayed.
@@ -15,19 +15,21 @@ function display_login_screen(any_message) {
                                <span>${any_message}</span>
                </div>
 
-               <div class="ctdl-modal-main">
-                       <label><b>${_("User name:")}</b></label>
-                       <input type="text" id="username" required>
-                       <br>
-                       <label><b>${_("Password:")}</b></label>
-                       <input type="password" id="password" required>
-                       <br>
-                       <input type="checkbox" checked="checked"> Remember me
-               </div>
-
-               <div class="ctdl-modal-footer">
-                       <button onClick="javascript:login_button()">${_("Log in")}</button>
-                       <button type="button">Cancel</button>
+               <div class="ctdl-login-screen-grid-container">
+                       <div class="ctdl-login-screen-grid-item"><label><b>${_("User name:")}</b></label></div>
+                       <div class="ctdl-login-screen-grid-item"><input type="text" id="username" required></div>
+                       <div class="ctdl-login-screen-grid-item"><label><b>${_("Password:")}</b></label></div>
+                       <div class="ctdl-login-screen-grid-item"><input type="password" id="password" required></div>
+                       <div class="ctdl-login-screen-grid-item"></div>
+                       <div class="ctdl-login-screen-grid-item">
+                               <input type="checkbox" checked="checked">
+                               Remember me
+                       </div>
+                       <div class="ctdl-login-screen-grid-item"></div>
+                       <div class="ctdl-login-screen-grid-item">
+                               <button onClick="javascript:login_button()">${_("Log in")}</button>
+                               <button type="button">Cancel</button>
+                       </div>
                </div>
        `;
 
@@ -38,10 +40,10 @@ function display_login_screen(any_message) {
 // When the user elects to log out, we just call /ctdl/a/logout and let the system flush the session.
 // When we go back to ctdl_startup() it will detect that we are no longer logged in, and do the right thing.
 //function logout() {
-logout = async() => {
-       response = await fetch("/ctdl/a/logout");
-       ctdl_startup();                                 // let the regular startup code take care of everything else
-}
+//logout = async() => {
+       //response = await fetch("/ctdl/a/logout");
+       //ctdl_startup();                                       // let the regular startup code take care of everything else
+//}
 
 
 function login_button(username) {