| 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 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 | |