summaryrefslogtreecommitdiff
path: root/jimbrella/templates/auth.html
blob: a6a7b5acdda3a6bf74e273b28a531d7cd9cb988c (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
{# Login and register interface #}
<!DOCTYPE html>
<html>
    <head>
        <title>JI Umbrella</title>
        <link rel="stylesheet" href="/static/jimbrella.css" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
    </head>
    <body>
        {% if action == "login" %}
        <h1>Login to JI Umbrella</h1>
        {% else %}
        <h1>Register for JI Umbrella</h1>
        {% endif %}

        <div id="container">
            <div class="banner-container">
            {% if error %}
                <div class="banner error">{{ error }}</div>
            {% endif %}
                <div class="banner blue">
                    <form method="post" action="/{{ action }}">
                        <input name="username" placeholder="Username" /> <br /> <br />
                        <input name="password" type="password" placeholder="Password" /> <br /> <br />
                        <input type="submit" value="{{ action|capitalize }}" />
                    </form>
                </div>
            </div>
        </div>
    </body>
</html>