2017-11-20 00:10:04 -05:00
|
|
|
{{ define "title"}}{{ t "Sign In" }}{{ end }}
|
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="login-form">
|
|
|
|
<form action="{{ route "checkLogin" }}" method="post">
|
|
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
|
|
|
|
|
|
|
{{ if .errorMessage }}
|
|
|
|
<div class="alert alert-error">{{ t .errorMessage }}</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<label for="form-username">{{ t "Username" }}</label>
|
2017-12-22 19:30:17 -05:00
|
|
|
<input type="text" name="username" id="form-username" value="{{ .form.Username }}" required autofocus>
|
2017-11-20 00:10:04 -05:00
|
|
|
|
|
|
|
<label for="form-password">{{ t "Password" }}</label>
|
2017-12-22 19:30:17 -05:00
|
|
|
<input type="password" name="password" id="form-password" value="{{ .form.Password }}" required>
|
2017-11-20 00:10:04 -05:00
|
|
|
|
|
|
|
<div class="buttons">
|
|
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Sign in" }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2017-11-23 01:22:33 -05:00
|
|
|
{{ if hasOAuth2Provider "google" }}
|
|
|
|
<div class="oauth2">
|
|
|
|
<a href="{{ route "oauth2Redirect" "provider" "google" }}">{{ t "Sign in with Google" }}</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-11-20 00:10:04 -05:00
|
|
|
</section>
|
|
|
|
{{ end }}
|