aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates/login.html
blob: e0e98da7d9aadbd801e3175f0d6f06f9d8a8dc11 (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
{#
 # 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 id="login" 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 %}

{% block extra_script %}
  <script src="{{ static_url('js/login.js') }}"></script>
{% end %}