aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates/login.html
blob: 22debbdeff92f9b5f44ba20c47ba0e6e79c04a89 (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 autofocus />
      <button type="submit">Login</button>
    </fieldset>
  </form>
</section>
{% end %}

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