all repos — nirvash @ main

modular CMS using the quartzgun library

templates/login.html (raw)

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
{{ $tryagain := .FormValue "tryagain" }}

<!DOCTYPE html>
<html lang='en'>
  <head>
    <meta charset='utf-8'>
    <meta name='description' content='Nirvash CMS'/>
    <meta name='viewport' content='width=device-width,initial-scale=1'>
    <title>Nirvash &mdash; Login</title>
    <link rel='stylesheet' type='text/css' href='/static/style.css'>
    <link rel='shortcut icon' href='/static/favicon.png'>
    <script src='/static/theme.js' type='text/javascript'></script>
  </head>
  <body class="login-body">
    <div class="login">
    <h1>Nirvash</h1>
    {{ if $tryagain }}
    <span class="error">Incorrect credentials; please try again.</span>
    {{ end }}
    <form action='/login' method='post'>
      <label for="user-input">Username</label>
      <input type="text" id="user-input" name="user" placeholder="user"><br/>
      <label for="password-input">Password</label>
      <input type="password" id="password-input" name="password" placeholder="password"><br/>
      <input type="submit" value="Login">
    </form>
    </div>
  </body>
  <script src='/static/theme2.js' type='text/javascript'></script>
</html>