aboutsummaryrefslogtreecommitdiff
path: root/templates/homepage.html.jinja
blob: 39ed94f4fdc32aa47e5f5fb3266b5a7f4e4fdf82 (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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{#
  UGE / L2 / Intro to relational databases / Python project prototype
  Author: Pacien TRAN-GIRARD
  Licence: EUPL-1.2
#}

{% extends '_base.html.jinja' %}

{% block title %}Homepage{% endblock %}

{% block content %}
<div class="pure-g">

  <form
    method="post"
    action="/account/register"
    class="pure-form pure-form-aligned pure-u-1 pure-u-md-1-2">

    <h2>Create a new account</h2>

    <fieldset>
      <div class="pure-control-group">
        <label for="register-name">Username</label>
        <input
          type="text"
          id="register-name"
          name="username"
          minlength="4"
          maxlength="16"
          required />
      </div>
      <div class="pure-control-group">
        <label for="register-password">Password</label>
        <input
          type="password"
          id="register-password"
          name="password"
          minlength="4"
          maxlength="32"
          required />
      </div>
      <div class="pure-controls">
        <label for="register-terms" class="pure-checkbox">
          <input type="checkbox" id="register-terms" required />
          I trust you*
        </label>

        <button
          type="submit"
          class="pure-button pure-button-primary dark-blue-bg">
          ✎ Open an account
        </button>
      </div>
    </fieldset>
  </form>

  <form
    method="post"
    action="/account/login"
    class="pure-form pure-form-aligned pure-u-1 pure-u-md-1-2">

    <h2>Log in into your account</h2>

    <fieldset>
      <div class="pure-control-group">
        <label for="login-name">Username</label>
        <input
          type="text"
          id="login-name"
          name="username"
          minlength="4"
          maxlength="16"
          required />
        </div>
      <div class="pure-control-group">
        <label for="login-password">Password</label>
        <input
          type="password"
          id="login-password"
          name="password"
          minlength="4"
          maxlength="32"
          required />      </div>
      <div class="pure-controls">
        <button
          type="submit"
          class="pure-button pure-button-primary light-blue-bg">
          🔑 Log in
        </button>
      </div>
    </fieldset>
  </form>

</div>
{% endblock %}