dex/web/templates/approval.html

41 lines
1.1 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>
<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>
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 01:48:12 +05:30
<button type="submit" class="dex-btn dex-btn-provider">
<span class="dex-btn-text">Cancel</span>
2016-08-26 01:33:41 +05:30
</button>
</form>
</div>
</div>
</div>
{{ template "footer.html" . }}