diff options
Diffstat (limited to 'templates/login.html.template')
| -rw-r--r-- | templates/login.html.template | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/templates/login.html.template b/templates/login.html.template index 1aef0f2..ce46bd1 100644 --- a/templates/login.html.template +++ b/templates/login.html.template @@ -1,22 +1,24 @@ {{define "head"}}<title>Login</title>{{end}} -<section> - {{if .Error}} - <p class="login-error"><img class="inline" src="/static/angry.webp">Incorrect password</p> - {{end}} - <form class="password-form" method="post"> - <table> - <tr class="password-form-row"> - <td><label class="password-label" for="password">Enter password</label></td> - <td><input id="password" class="password" type="password" name="password" autofocus></td> - </tr> - <tr class="password-form-row"> - <td><label class="password-label" for="auth">Google authenticator code</label></td> - <td><input id="auth" class="password" name="auth"></td> - </tr> - <tr> - <td></td> - <td><input type="image" width="100" class="submit" src="/static/point.webp" alt="Submit"></td> - </table> - </form> -</section> +{{define "body" -}} + <section> + {{- if .Error}} + <p class="login-error"><img class="inline" src="/static/angry.webp">Incorrect password</p> + {{- end}} + <form class="password-form" method="post"> + <table> + <tr class="password-form-row"> + <td><label class="password-label" for="password">Enter password</label></td> + <td><input id="password" class="password" type="password" name="password" autofocus></td> + </tr> + <tr class="password-form-row"> + <td><label class="password-label" for="auth">Google authenticator code</label></td> + <td><input id="auth" class="password" name="auth"></td> + </tr> + <tr> + <td></td> + <td><input type="image" width="100" class="submit" src="/static/point.webp" alt="Submit"></td> + </table> + </form> + </section> +{{- end}} |
