summaryrefslogtreecommitdiff
path: root/templates/login.html
blob: 8875cb18630bdf3aa30ee87664523b81157c1a00 (plain)
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <link rel="stylesheet" href="{{.Paths.Assets}}/css/style.css">
</head>
<body>
    <div class="container form-container">
        <h2>Login Required</h2>
        <form id="login-form" action="{{.Paths.Login}}" method="post">
            <div class="form-group">
                <label for="username">Username</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">Password</label>
                <input type="password" id="password" name="password" required>
            </div>
            <button type="submit">Login</button>
        </form>
        <p class="error">
            {{if .Error}}
                {{.Error}}
            {{end}}
        </p>
        <div style="text-align: center; margin-top: 1rem;">
            <a href="{{.Paths.Register}}">Don't have an account? Register</a>
        </div>
    </div>
    <script src="{{.Paths.Assets}}/js/auth.js"></script>
</body>
</html>