aboutsummaryrefslogtreecommitdiffstats
path: root/templates/html/login.html
blob: 0e88e838024c2957c9a00e0136d712201892d0de (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Sign in &middot; Fripost Admin Panel</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/css/font-awesome.min.css" rel="stylesheet">
    <link href="/static/css/fripost.css" rel="stylesheet">
  </head>

  <body>
    <header class="container pagination-center lead text-center">
      <a class="brand" href="https://fripost.org/"><b>fripost</b> | demokratisk e-post</a>
    </header>

    <div class="login">
      <TMPL_IF NAME=ALERT>
      <div id="alert" class="alert alert-<TMPL_VAR NAME=ALERT_TYPE> alert-dismissible fade in" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
          <span aria-hidden="true"><i class="fa fa-close icon-small"></i></span>
        </button>
        <p><TMPL_VAR NAME=ALERT ESCAPE=NONE></p>
      </div>
      </TMPL_IF>

      <div class="well well-lg">
        <form method="post" action="/login<TMPL_IF NAME=GOTO>?goto=<TMPL_VAR NAME=GOTO ESCAPE=URL></TMPL_IF>">
          <div class="input-group input-group-lg">
            <span class="input-group-addon"><i class="fa fa-user"></i></span>
            <input
              name="username"
              type="text"
              class="form-control"
              placeholder="Username or email address"
              required
            >
          </div>
          <div class="input-group input-group-lg">
            <span class="input-group-addon"><i class="fa fa-lock"></i></span>
            <input
              name="password"
              type="password"
              class="form-control"
              placeholder="Passphrase"
              required
            >
          </div>
          <input type="hidden" name="csrf-token" value="<TMPL_VAR NAME=CSRF_TOKEN>">
          <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
        </form>
      </div>
      <div class="well-footer text-center small">
        Not a member? <a href="https://fripost.org/medlemskap/">Join us!</a>
      </div>
    </div>

    <footer class="container">
      <div class="row">
        <div class="col-md-8 text-muted small">
          <p>Your browser needs to accept sessions
            cookies<TMPL_IF NAME=DOMAIN> for <tt><TMPL_VAR NAME=DOMAIN ESCAPE=HTML></tt></TMPL_IF>.
            We also recommend enabling JavaScript for better usability.</p>
        </div>
        <div class="col-md-4 text-muted text-right small">
          <p><a href="https://git.fripost.org/fripost-panel/tree/COPYING">Copyright</a> &copy; 2012-2018 Fripost
            (<a href="https://git.fripost.org/fripost-panel/">source</a>)
            &ndash; <a href="https://fripost.org/kontakt/">contact</a></p>
        </div>
      </div>
    </footer>

    <!-- Place JS at the end of the document so the pages load faster -->
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
  </body>
</html>