summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/login.html
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-12-03 19:22:12 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-12-03 19:22:12 +0100
commit2cf2a68bd1c25d8fe4f3126f40bd57982cc6b2a4 (patch)
treeb5c8ed0e1cfe8eac311829296a9aca062bb1abc1 /src/jwebmail/templates/login.html
initial commit
Diffstat (limited to 'src/jwebmail/templates/login.html')
-rw-r--r--src/jwebmail/templates/login.html83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/jwebmail/templates/login.html b/src/jwebmail/templates/login.html
new file mode 100644
index 0000000..2915de3
--- /dev/null
+++ b/src/jwebmail/templates/login.html
@@ -0,0 +1,83 @@
+{% extends 'mainlayout.html' %}
+
+{% block content %}
+<section class=section>
+ <div class="container is-max-desktop box">
+
+ <h1 class=title>
+ {% trans %}Login{% endtrans %}
+ </h1>
+ <h2 class=subtitle>
+ JWebmail
+ </h2>
+
+{% if login_form.errors %}
+ <div class="message is-warning">
+ <div class=message-header>
+ {{ login_form.errors }}
+ </div>
+ </div>
+{% endif %}
+{% if warn %}
+ <div class="message is-warning">
+ <div class=message-header>
+ {{ warn }}
+ </div>
+ </div>
+{% endif %}
+
+ <form name="login1" method="POST" class="pure-form pure-form-aligned jwm-round">
+
+ {{ login_form.csrf_token }}
+
+ <div class="field is-horizontal">
+ <div class="field-label is-normal">
+ {{ login_form.username.label(class='label') }}
+ </div>
+ <div class=field-body>
+ <div class=field>
+ <div class=control>
+ {{ login_form.username(class='input') }}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="field is-horizontal">
+ <div class="field-label is-normal">
+ {{ login_form.password.label(class='label') }}
+ </div>
+ <div class=field-body>
+ <div class=field>
+ <div class=control>
+ {{ login_form.password(class='input') }}
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="field is-horizontal">
+ <div class=field-label>
+ </div>
+ <div class=field-body>
+ <div class=field>
+ <div class=control>
+ <input type=submit class="button is-primary" name=submit_button value="{{ gettext('Login') }}">
+ </div>
+ </div>
+ </div>
+ </div>
+ </form>
+
+ </div>
+</section>
+{% endblock %}
+
+{% block scripts %}
+ <script type="text/javascript">
+ if (!document.login1.userid.value) {
+ document.login1.userid.focus();
+ } else {
+ document.login1.password.focus();
+ }
+ </script>
+{% endblock %}