polycule-connect/polyculeconnect/templates/approval.html

38 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2023-10-17 15:42:22 +00:00
{{ template "header.html" . }}
<script src="/static/scripts/approval.js" defer></script>
2023-11-04 08:14:41 +00:00
<div class="container">
<div class="container-content">
2023-10-17 15:42:22 +00:00
{{ if .Scopes }}
2023-11-04 08:14:41 +00:00
<div>{{ .Client }} would like to:</div>
<ul>
2023-10-17 15:42:22 +00:00
{{ range $scope := .Scopes }}
<li>{{ $scope }}</li>
{{ end }}
</ul>
{{ else }}
2023-11-04 08:14:41 +00:00
<div>{{ .Client }} has not requested any personal information</div>
2023-10-17 15:42:22 +00:00
{{ end }}
</div>
<div class="form-buttons" id="approvalform">
2023-11-04 08:14:41 +00:00
<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>
2023-10-17 15:42:22 +00:00
</div>
</div>
{{ template "footer.html" . }}