This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/web/templates/approval.html

45 lines
1.2 KiB
HTML
Raw Normal View History

2016-08-26 01:33:41 +05:30
{{ template "header.html" . }}
2016-12-02 01:48:12 +05:30
<div class="theme-panel">
<h2 class="theme-heading">Grant Access</h2>
2016-08-26 01:33:41 +05:30
2016-12-02 01:48:12 +05:30
<hr class="dex-separator">
<div>
{{ if .Scopes }}
2016-12-02 01:48:12 +05:30
<div class="dex-subtle-text">{{ .Client }} would like to:</div>
<ul class="dex-list">
2016-08-26 01:33:41 +05:30
{{ range $scope := .Scopes }}
2016-12-02 01:48:12 +05:30
<li>{{ $scope }}</li>
2016-08-26 01:33:41 +05:30
{{ end }}
2016-12-02 01:48:12 +05:30
</ul>
{{ else }}
<div class="dex-subtle-text">{{ .Client }} has not requested any personal information</div>
{{ end }}
2016-08-26 01:33:41 +05:30
</div>
2016-12-02 01:48:12 +05:30
<hr class="dex-separator">
2016-08-26 01:33:41 +05:30
<div>
2016-12-02 01:48:12 +05:30
<div class="theme-form-row">
2016-08-26 01:33:41 +05:30
<form method="post">
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
2016-08-26 01:33:41 +05:30
<input type="hidden" name="approval" value="approve">
2016-12-02 01:48:12 +05:30
<button type="submit" class="dex-btn theme-btn--success">
<span class="dex-btn-text">Grant Access</span>
2016-08-26 01:33:41 +05:30
</button>
</form>
</div>
2016-12-02 01:48:12 +05:30
<div class="theme-form-row">
2016-08-26 01:33:41 +05:30
<form method="post">
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
2016-08-26 01:33:41 +05:30
<input type="hidden" name="approval" value="rejected">
2016-12-02 03:36:08 +05:30
<button type="submit" class="dex-btn theme-btn-provider">
2016-12-02 01:48:12 +05:30
<span class="dex-btn-text">Cancel</span>
2016-08-26 01:33:41 +05:30
</button>
</form>
</div>
</div>
</div>
{{ template "footer.html" . }}