polycule-connect/polyculeconnect/templates/approval.html
Melora Hugues d18c91da23
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/deploy unknown status
feat #32: improve approval UI
2023-11-04 09:18:34 +01:00

36 lines
No EOL
1.1 KiB
HTML

{{ template "header.html" . }}
<div class="container">
<div class="container-content">
{{ if .Scopes }}
<div>{{ .Client }} would like to:</div>
<ul>
{{ range $scope := .Scopes }}
<li>{{ $scope }}</li>
{{ end }}
</ul>
{{ else }}
<div>{{ .Client }} has not requested any personal information</div>
{{ end }}
</div>
<div class="form-buttons">
<form method="post" class="container-form">
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
<input type="hidden" name="approval" value="approve">
<button type="submit" class="button button-accept">
<span>Grant Access</span>
</button>
</form>
<form method="post" class="container-form">
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
<input type="hidden" name="approval" value="rejected">
<button type="submit" class="button button-cancel">
<span>Cancel</span>
</button>
</form>
</div>
</div>
{{ template "footer.html" . }}