| {{ define "title" }}dodo: sign in{{ end }} |
| {{ define "main" }} |
| <div class="terminal"> |
| <div class="logo" aria-hidden="true"> |
| <span>do</span><span>do:</span> |
| </div> |
| <h1>Sign in</h1> |
| <form id="login-form" action="{{ .FormAction }}" method="POST"> |
| {{ if .GeneralNotice }} |
| <div role="alert"> |
| <p>{{ .GeneralNotice }}</p> |
| </div> |
| {{ end }} |
| <label for="login-username">Username</label> |
| <input id="login-username" type="text" name="username" autocomplete="username" autocapitalize="none" spellcheck="false" required /> |
| <label for="login-password">Password</label> |
| <input id="login-password" type="password" name="password" autocomplete="current-password" required /> |
| <input id="login-csrf-token" type="hidden" name="csrf_token" value="{{ .CSRFToken }}" /> |
| <button id="login-submit" class="subbmit-button" type="submit">Sign in</button> |
| </form> |
| {{- if .EnableRegistration }} |
| <nav aria-label="Registration"> |
| <a href="/register">Create account</a> |
| </nav> |
| {{- end }} |
| </div> |
| {{ end }} |