added consent template
This commit is contained in:
parent
f48fa210bb
commit
3c3ca3e7a7
6 changed files with 31 additions and 6 deletions
24
pkg/server/templates/consent.html
Normal file
24
pkg/server/templates/consent.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{{define "body"}}
|
||||
{{if .Data}}
|
||||
<div class="row">
|
||||
<div class="col-xs-4 offset-4">
|
||||
<div class="card border-primary mx-auto">
|
||||
<div class="card-header">
|
||||
<strong>{{.BodyTitle}}</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<pre>
|
||||
{{.Data.Info}}
|
||||
</pre>
|
||||
<form class="form-horizontal" action="/consent" method="post">
|
||||
<input type="hidden" name="token" value="{{.Token}}">
|
||||
<input type="hidden" name="consent_challenge" value="{{.Data.ConsentChallenge}}">
|
||||
<button class="btn btn-sm btn-primary" type="submit" name="Approve">Approve</button>
|
||||
<button class="btn btn-sm btn-primary" type="submit" name="Reject">Reject</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue