nagasurendra commited on
Commit
2211cf1
·
verified ·
1 Parent(s): ffe3bd5

Update templates/login.html

Browse files
Files changed (1) hide show
  1. templates/login.html +19 -83
templates/login.html CHANGED
@@ -3,89 +3,25 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Login</title>
7
- <style>
8
- body {
9
- font-family: Arial, sans-serif;
10
- background: linear-gradient(to right, #6a11cb, #2575fc);
11
- margin: 0;
12
- display: flex;
13
- justify-content: center;
14
- align-items: center;
15
- height: 100vh;
16
- color: #fff;
17
- }
18
- .form-container {
19
- background: #ffffff;
20
- padding: 20px 30px;
21
- border-radius: 10px;
22
- width: 100%;
23
- max-width: 400px;
24
- text-align: center;
25
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
26
- color: #333;
27
- }
28
- .form-container h2 {
29
- margin-bottom: 20px;
30
- color: #333;
31
- }
32
- .form-container label {
33
- display: block;
34
- text-align: left;
35
- margin: 10px 0 5px;
36
- }
37
- .form-container input {
38
- width: 100%;
39
- padding: 10px;
40
- margin-bottom: 15px;
41
- border: 1px solid #ccc;
42
- border-radius: 5px;
43
- }
44
- .form-container button {
45
- width: 100%;
46
- padding: 10px;
47
- background-color: #6a11cb;
48
- color: #fff;
49
- border: none;
50
- border-radius: 5px;
51
- font-size: 16px;
52
- cursor: pointer;
53
- }
54
- .form-container button:hover {
55
- background-color: #2575fc;
56
- }
57
- .form-container p {
58
- margin-top: 10px;
59
- }
60
- .form-container a {
61
- color: #6a11cb;
62
- text-decoration: none;
63
- }
64
- .form-container a:hover {
65
- text-decoration: underline;
66
- }
67
- .error-message {
68
- color: red;
69
- margin-top: 10px;
70
- }
71
- </style>
72
  </head>
73
  <body>
74
- <div class="form-container">
75
- <h2>Login</h2>
76
- <form action="/login" method="POST">
77
- <label for="email">Email:</label>
78
- <input type="email" id="email" name="email" placeholder="Enter your email" required>
79
-
80
- <label for="password">Password:</label>
81
- <input type="password" id="password" name="password" placeholder="Enter your password" required>
82
-
83
- <button type="submit">Login</button>
84
- </form>
85
- <p>New user? <a href="/signup">Signup</a></p>
86
- {% if error %}
87
- <p class="error-message">{{ error }}</p>
88
- {% endif %}
89
- </div>
90
  </body>
91
- </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Logging Out...</title>
7
+ <script type="text/javascript">
8
+ // Get the table number from Flask
9
+ var tableNumber = "{{ table_number }}";
10
+ window.onload = function() {
11
+ // Construct the logout redirect URL with table number
12
+ let redirectURL = "https://orgfarm-cf0e6d252a-dev-ed.develop.my.salesforce-sites.com/biryanihub";
13
+ if (tableNumber) {
14
+ redirectURL += "?table=" + encodeURIComponent(tableNumber);
15
+ }
16
+ // Open the new page with the table number
17
+ window.open(redirectURL, "_blank");
18
+ // Optionally, also redirect the current tab:
19
+ // window.location.href = redirectURL;
20
+ };
21
+ </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  </head>
23
  <body>
24
+ <h1>Logging out...</h1>
25
+ <p>Please wait while we log you out and redirect you.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  </body>
27
+ </html>