feat #32: improve approval UI
This commit is contained in:
parent
0083624204
commit
d18c91da23
2 changed files with 25 additions and 29 deletions
|
@ -63,7 +63,7 @@ body {
|
||||||
|
|
||||||
.form-buttons {
|
.form-buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-input {
|
.form-input {
|
||||||
|
@ -92,3 +92,7 @@ body {
|
||||||
.button-accept {
|
.button-accept {
|
||||||
background-color: var(--logo-blue);
|
background-color: var(--logo-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-cancel {
|
||||||
|
background-color: var(--logo-pink);
|
||||||
|
}
|
|
@ -1,43 +1,35 @@
|
||||||
{{ template "header.html" . }}
|
{{ template "header.html" . }}
|
||||||
|
|
||||||
<div class="theme-panel">
|
<div class="container">
|
||||||
<h2 class="theme-heading">Grant Access</h2>
|
<div class="container-content">
|
||||||
|
|
||||||
<hr class="dex-separator">
|
|
||||||
<div>
|
|
||||||
{{ if .Scopes }}
|
{{ if .Scopes }}
|
||||||
<div class="dex-subtle-text">{{ .Client }} would like to:</div>
|
<div>{{ .Client }} would like to:</div>
|
||||||
<ul class="dex-list">
|
<ul>
|
||||||
{{ range $scope := .Scopes }}
|
{{ range $scope := .Scopes }}
|
||||||
<li>{{ $scope }}</li>
|
<li>{{ $scope }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="dex-subtle-text">{{ .Client }} has not requested any personal information</div>
|
<div>{{ .Client }} has not requested any personal information</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<hr class="dex-separator">
|
|
||||||
|
|
||||||
<div>
|
<div class="form-buttons">
|
||||||
<div class="theme-form-row">
|
<form method="post" class="container-form">
|
||||||
<form method="post">
|
|
||||||
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
|
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
|
||||||
<input type="hidden" name="approval" value="approve">
|
<input type="hidden" name="approval" value="approve">
|
||||||
<button type="submit" class="dex-btn theme-btn--success">
|
<button type="submit" class="button button-accept">
|
||||||
<span class="dex-btn-text">Grant Access</span>
|
<span>Grant Access</span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
<form method="post" class="container-form">
|
||||||
<div class="theme-form-row">
|
|
||||||
<form method="post">
|
|
||||||
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
|
<input type="hidden" name="req" value="{{ .AuthReqID }}" />
|
||||||
<input type="hidden" name="approval" value="rejected">
|
<input type="hidden" name="approval" value="rejected">
|
||||||
<button type="submit" class="dex-btn theme-btn-provider">
|
<button type="submit" class="button button-cancel">
|
||||||
<span class="dex-btn-text">Cancel</span>
|
<span>Cancel</span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue