diff options
| author | Guilhem Moulin <guilhem@fripost.org> | 2018-09-02 04:57:06 +0200 | 
|---|---|---|
| committer | Guilhem Moulin <guilhem@fripost.org> | 2018-09-02 04:57:06 +0200 | 
| commit | c3af385908866291109afb8cf8779da555a9922a (patch) | |
| tree | 026c391d83c32e99af4332ab99ca91541ee56717 /templates/html | |
| parent | a0d7989835c98e9f0cb30a732e434d6b180afae4 (diff) | |
Simple login screen.
Diffstat (limited to 'templates/html')
| -rw-r--r-- | templates/html/login.html | 77 | ||||
| -rw-r--r-- | templates/html/overview.html | 26 | 
2 files changed, 103 insertions, 0 deletions
diff --git a/templates/html/login.html b/templates/html/login.html new file mode 100644 index 0000000..0e88e83 --- /dev/null +++ b/templates/html/login.html @@ -0,0 +1,77 @@ +<!DOCTYPE html> +<html lang="en"> +  <head> +    <meta charset="utf-8"> +    <title>Sign in · 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> © 2012-2018 Fripost +            (<a href="https://git.fripost.org/fripost-panel/">source</a>) +            – <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> diff --git a/templates/html/overview.html b/templates/html/overview.html new file mode 100644 index 0000000..fbf1b9d --- /dev/null +++ b/templates/html/overview.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html lang="en"> +  <head> +    <meta charset="utf-8"> +    <title>Account overview · 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> +    <div class="container"> +      <tt><TMPL_VAR NAME=AUTHZID ESCAPE=HTML></tt> +      <br/> +      <form method="post" action="/logout"> +       <input type="hidden" name="csrf-token" value="<TMPL_VAR NAME=CSRF_TOKEN>"> +       <input type="submit" value="logout"> +      </form> +    </div> + +    <!-- 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>  | 
