polycule-connect/polyculeconnect/templates/approval.html
Melora Hugues d89ce46a47
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
wip
2024-03-29 18:21:26 +01:00

39 lines
No EOL
1.3 KiB
HTML

{{ template "header.html" . }}
<script src="/static/scripts/approval.js" defer></script>
<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" id="approvalform">
<div>
<input type="checkbox" id="rememberme" name="remember" class="form-checkbox">
<label for="remember-me" class="form-checkbox-label">Remember my choice</label>
</div>
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
<input id="approval" type="hidden" name="approval" value="approve">
<button onclick="submitApproval(true)" class="button button-accept">
<span>Grant Access</span>
</button>
<button onclick="submitApproval(false)" class="button button-cancel">
<span>Cancel</span>
</button>
</form>
</div>
</div>
{{ template "footer.html" . }}