plz / templates / login.html
38 lines · 33 sloc · 901 bytes · 39bb677e657ad02c120a500c85e41b6e16aa7750
Raw
1<!DOCTYPE html>
2<html>
3 <head>
4 @include 'layout/head.html'
5 </head>
6 <body>
7 @include 'layout/header.html'
8
9 <div class="content">
10 <h1>Login</h1>
11
12 .form-error {
13 @ctx.form_error
14 }
15
16 <div class="form">
17 <form method='post' action='/login'>
18 <div class="field">
19 <input type='text' name='username' placeholder='Username' required autofocus>
20 </div>
21 <div class="field">
22 <input type='password' name='password' placeholder='Password' required>
23 </div>
24 <div class="field">
25 <input type='submit' value='Login'>
26 </div>
27 </form>
28 </div>
29
30 @if app.settings.oauth_client_id != ''
31 <a class='github-auth' href='https://github.com/login/oauth/authorize?response_type=code&state=@[email protected]_client_id'>%login_via_github</a>
32 @end
33 </div>
34
35 @js '/js/block-form.js'
36 @include 'layout/footer.html'
37 </body>
38</html>
39