aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates/login.html
blob: 51d4cd12ce06d3739af2cc39561a901fe24118a5 (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
{#
 # Copyright (c) 2016 Weitian LI <liweitianux@live.com>
 # MIT license
 #
 # Login page for the Web UI of "fg21sim"
 #}

{% extends "base.html" %}

{% block subtitle %}Login |{% end %}

{% block main %}
<section id="login">
  <h2><span class="fa fa-key" aria-hidden="true"></span> Login</h2>
  <hr />

  <form action="/login" method="post">
    {% module xsrf_form_html() %}
    <fieldset>
      <label for="password">Password:
        {% if (error != "") %}
        <span class="label label-warning">{{ error }}</span>
        {% end %}
      </label>
      <input class="form-control" type="password" id="password" name="password" required />
      <button type="submit">Login</button>
    </fieldset>
  </form>
</section>
{% end %}