hydra-passwordless/cmd/server/template/layouts/login.html.tmpl

43 lines
2.0 KiB
Cheetah
Raw Normal View History

2020-04-08 08:56:42 +02:00
{{define "title"}}Connexion{{end}}
{{define "body"}}
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<div class="columns">
<div class="column is-4 is-offset-4">
2020-04-24 09:27:07 +02:00
{{template "flash" .}}
2020-04-08 08:56:42 +02:00
<p class="has-text-black title">
2020-05-26 11:11:53 +02:00
Connexion à <a href="{{.ClientURI }}" class="has-text-info">{{ .ClientName }}</a>
2020-04-08 08:56:42 +02:00
</p>
<p class="has-text-black subtitle">
Veuillez entrer votre adresse courriel.
</p>
<div class="box">
<form action="/login" method="POST">
<div class="field">
<div class="control">
<input class="input is-large" type="email"
2020-04-24 09:27:07 +02:00
id="email" value="{{ .Email }}"
2020-04-08 08:56:42 +02:00
name="email" placeholder="john.doe@email.com" />
</div>
</div>
2020-05-26 11:11:53 +02:00
<div class="field is-grouped is-grouped-right">
<p class="control">
<label class="checkbox">
<input type="checkbox" name="rememberMe">
Se souvenir de moi
</label>
</p>
</div>
2020-04-08 08:56:42 +02:00
{{ .csrfField }}
2020-04-24 09:27:07 +02:00
<input name="challenge" type="hidden" value="{{ .LoginChallenge }}" />
2020-04-08 08:56:42 +02:00
<button type="submit" class="button is-link is-medium is-block is-fullwidth">Envoyer</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
{{end}}
{{template "base" .}}