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

35 lines
1.2 KiB
Cheetah
Raw Normal View History

2020-05-20 11:13:14 +02:00
{{define "title"}}Autorisation{{end}}
2020-04-08 08:56:42 +02:00
{{define "body"}}
2020-05-20 11:13:14 +02:00
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column is-4 is-offset-4">
{{template "flash" .}}
<p class="has-text-black title has-text-centered">
Demande d'autorisation
</p>
<p class="has-text-black subtitle has-text-centered">
Autorisez vous l'application à utiliser ces informations vous concernant ?
</p>
<div class="box">
<form action="/consent" method="POST">
{{range .RequestedScope}}
<div class="">
<label class="checkbox">
<input type="checkbox" name="scope_{{ . }}">
{{ . }}
</label>
</div>
{{end}}
{{ .csrfField }}
<input name="challenge" type="hidden" value="{{ .ConsentChallenge }}" />
<button type="submit" class="button is-link is-medium is-block is-fullwidth">Autoriser</button>
</form>
</div>
</div>
</div>
2020-04-08 08:56:42 +02:00
</div>
</section>
{{end}}
{{template "base" .}}