 fe8e8c7e64
			
		
	
	
		fe8e8c7e64
		
	
	
	
	
		
			
			Refactored HTML templates for improved strucutre and clarity Moved styles to a separate CSS file for better maintainablilty
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			822 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			822 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en">
 | |
| 
 | |
| <head>
 | |
|   <meta charset="UTF-8">
 | |
|   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|   <title>Admin Login</title>
 | |
|   <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
 | |
| </head>
 | |
| 
 | |
| <body>
 | |
|   <h1>Admin Login</h1>
 | |
|   {% with messages = get_flashed_messages(with_categories=true) %}
 | |
|   {% if messages %}
 | |
|   {% for category, message in messages %}
 | |
|   <div class="flash">{{ message }}</div>
 | |
|   {% endfor %}
 | |
|   {% endif %}
 | |
|   {% endwith %}
 | |
|   <form action="{{ url_for('login') }}" method="POST">
 | |
|     <label for="username">Username:</label>
 | |
|     <input type="text" name="username" required />
 | |
|     <label for="password">Password:</label>
 | |
|     <input type="password" name="password" required />
 | |
|     <button type="submit">Login</button>
 | |
|   </form>
 | |
| </body>
 | |
| 
 | |
| </html>
 |