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

41 lines
1.1 KiB
HTML
Raw Normal View History

2016-08-25 20:03:41 +00:00
{{ template "header.html" . }}
2016-12-01 20:18:12 +00:00
<div class="theme-panel">
<h2 class="theme-heading">Grant Access</h2>
2016-08-25 20:03:41 +00:00
2016-12-01 20:18:12 +00:00
<hr class="dex-separator">
<div>
<div class="dex-subtle-text">{{ .Client }} would like to:</div>
<ul class="dex-list">
2016-08-25 20:03:41 +00:00
{{ range $scope := .Scopes }}
2016-12-01 20:18:12 +00:00
<li>{{ $scope }}</li>
2016-08-25 20:03:41 +00:00
{{ end }}
2016-12-01 20:18:12 +00:00
</ul>
2016-08-25 20:03:41 +00:00
</div>
2016-12-01 20:18:12 +00:00
<hr class="dex-separator">
2016-08-25 20:03:41 +00:00
<div>
2016-12-01 20:18:12 +00:00
<div class="theme-form-row">
2016-08-25 20:03:41 +00:00
<form method="post">
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
2016-08-25 20:03:41 +00:00
<input type="hidden" name="approval" value="approve">
2016-12-01 20:18:12 +00:00
<button type="submit" class="dex-btn theme-btn--success">
<span class="dex-btn-text">Grant Access</span>
2016-08-25 20:03:41 +00:00
</button>
</form>
</div>
2016-12-01 20:18:12 +00:00
<div class="theme-form-row">
2016-08-25 20:03:41 +00:00
<form method="post">
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
2016-08-25 20:03:41 +00:00
<input type="hidden" name="approval" value="rejected">
2016-12-01 20:18:12 +00:00
<button type="submit" class="dex-btn dex-btn-provider">
<span class="dex-btn-text">Cancel</span>
2016-08-25 20:03:41 +00:00
</button>
</form>
</div>
</div>
</div>
{{ template "footer.html" . }}