polycule-connect/polyculeconnect/templates/approval.html

39 lines
1.3 KiB
HTML
Raw 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>
2024-03-29 17:21:26 +00:00
<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>
2023-11-04 08:14:41 +00:00
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
2024-03-29 17:21:26 +00:00
<input id="approval" type="hidden" name="approval" value="approve">
<button onclick="submitApproval(true)" class="button button-accept">
2023-11-04 08:14:41 +00:00
<span>Grant Access</span>
</button>
2024-03-29 17:21:26 +00:00
<button onclick="submitApproval(false)" class="button button-cancel">
2023-11-04 08:14:41 +00:00
<span>Cancel</span>
</button>
</form>
2023-10-17 15:42:22 +00:00
</div>
</div>
{{ template "footer.html" . }}