| 1 | {{ define "page" -}} |
| 2 | <section class="shithub-auth"> |
| 3 | <h1>Sign in to shithub</h1> |
| 4 | {{ with .Error }}<p class="shithub-flash shithub-flash-error" role="alert">{{ . }}</p>{{ end }} |
| 5 | {{ with .Notice }}<p class="shithub-flash shithub-flash-notice" role="status">{{ . }}</p>{{ end }} |
| 6 | <form method="POST" action="/login" novalidate> |
| 7 | <input type="hidden" name="csrf_token" value="{{ .CSRFToken }}"> |
| 8 | <input type="hidden" name="next" value="{{ .Next }}"> |
| 9 | <label> |
| 10 | <span>Username or email address</span> |
| 11 | <input type="text" name="username" required autocomplete="username" autofocus |
| 12 | value="{{ .Form.Username }}"> |
| 13 | </label> |
| 14 | <label> |
| 15 | <span>Password</span> |
| 16 | <input type="password" name="password" required autocomplete="current-password"> |
| 17 | </label> |
| 18 | <button type="submit" class="shithub-button shithub-button-primary">Sign in</button> |
| 19 | </form> |
| 20 | <p class="shithub-auth-aside"> |
| 21 | <a href="/password/reset">Forgot password?</a> · <a href="/signup">Create account</a> |
| 22 | </p> |
| 23 | </section> |
| 24 | {{- end }} |