aboutsummaryrefslogtreecommitdiff
path: root/templates/login.html
diff options
context:
space:
mode:
authorJoris2021-01-03 13:40:40 +0100
committerJoris2021-01-03 13:54:20 +0100
commit11052951b74b9ad4b6a9412ae490086235f9154b (patch)
tree64526ac926c1bf470ea113f6cac8a33158684e8d /templates/login.html
parent371449b0e312a03162b78797b83dee9d81706669 (diff)
Rewrite in Rust
Diffstat (limited to 'templates/login.html')
-rw-r--r--templates/login.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/login.html b/templates/login.html
new file mode 100644
index 0000000..fd4cfe9
--- /dev/null
+++ b/templates/login.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Connexion
+{% endblock title %}
+
+{% block main %}
+
+ <div>
+ <form class="g-Login g-Form" action="/login" method="POST">
+
+ {% if error %}
+ <div class="g-Form__Error">{{ error }}</div>
+ {% endif %}
+
+ <label class="g-Form__Label" for="email">Email</label>
+ <input name="email" class="g-Form__Input" id="email" required autofocus />
+
+ <label class="g-Form__Label" for="password">Mot de passe</label>
+ <input name="password" type="password" class="g-Form__Input" id="password" required />
+
+ <div>
+ <input class="g-Login__Button g-Button__Validate" type="submit" value="Connexion" />
+ </div>
+
+ </form>
+ </div>
+
+{% endblock main %}