File size: 3,467 Bytes
1d7fce6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login | EduSultan ERP</title>
    <link rel="stylesheet" href="/static/css/login.css">
</head>
<body class="login-page bg-gradient-to-r from-blue-500 to-blue-700">
    <div class="language-switcher absolute top-4 right-4">
        <button class="lang-btn bg-white px-3 py-1 rounded-md mr-2">FR</button>
        <button class="lang-btn bg-white px-3 py-1 rounded-md">عربية</button>
    </div>
    
    <div class="login-container bg-white p-8 rounded-lg shadow-xl">
        <div class="logo mb-6 text-center">
            <img src="/static/images/logo.png" alt="EduSultan Logo" class="h-16 mx-auto">
            <h1 class="text-2xl font-bold mt-2 text-gray-800">EduSultan ERP</h1>
        </div>
        
        <form id="loginForm" class="space-y-4">
            <div>
                <label for="email" class="block text-sm font-medium text-gray-700">Email</label>
                <input type="email" id="email" name="email" required 
                    class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
            </div>
            
            <div>
                <label for="password" class="block text-sm font-medium text-gray-700">Password</label>
                <input type="password" id="password" name="password" required 
                    class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm">
            </div>
            
            <div class="flex items-center justify-between">
                <div class="flex items-center">
                    <input id="remember" name="remember" type="checkbox" 
                        class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
                    <label for="remember" class="ml-2 block text-sm text-gray-700">Remember me</label>
                </div>
                
                <div class="text-sm">
                    <a href="/forgot-password" class="font-medium text-blue-600 hover:text-blue-500">
                        Forgot password?
                    </a>
                </div>
            </div>
            
            <div>
                <button type="submit" 
                    class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700">
                    Sign in
                </button>
            </div>
            
            <div class="text-center text-sm text-gray-600">
                <p>Don't have an account? <a href="/register" class="text-blue-600">Contact admin</a></p>
            </div>
        </form>
        
        <div class="role-selector mt-6 text-center">
            <p class="text-sm text-gray-500">Select role to see demo:</p>
            <div class="flex justify-center space-x-2 mt-2">
                <button class="role-btn px-3 py-1 bg-gray-100 rounded-md text-xs">Admin</button>
                <button class="role-btn px-3 py-1 bg-gray-100 rounded-md text-xs">Teacher</button>
                <button class="role-btn px-3 py-1 bg-gray-100 rounded-md text-xs">Student</button>
                <button class="role-btn px-3 py-1 bg-gray-100 rounded-md text-xs">Parent</button>
            </div>
        </div>
    </div>
    
    <script src="/static/js/login.js"></script>
</body>
</html>