39 lines
No EOL
1.3 KiB
HTML
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" . }} |