web/templates: port templates from v1
This commit is contained in:
parent
68746fd795
commit
91ff8a16cd
42
web/templates/approval.html
Normal file
42
web/templates/approval.html
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{{ template "header.html" . }}
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<h2 class="heading">Grant Access</h2>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<div class="list-with-title">
|
||||||
|
<div class="subtle-text">{{ .Client }} would like to:</div>
|
||||||
|
{{ range $scope := .Scopes }}
|
||||||
|
<li class="bullet-point">
|
||||||
|
<div class="subtle-text">
|
||||||
|
{{ $scope }}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="form-row">
|
||||||
|
<form method="post">
|
||||||
|
<input type="hidden" name="state" value="{{ .State }}"/>
|
||||||
|
<input type="hidden" name="approval" value="approve">
|
||||||
|
<button type="submit" class="btn btn-success">
|
||||||
|
<span class="btn-text">Grant Access</span>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<form method="post">
|
||||||
|
<input type="hidden" name="state" value="{{ .State }}"/>
|
||||||
|
<input type="hidden" name="approval" value="rejected">
|
||||||
|
<button type="submit" class="btn btn-provider">
|
||||||
|
<span class="btn-text">Cancel</span>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ template "footer.html" . }}
|
3
web/templates/footer.html
Normal file
3
web/templates/footer.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
240
web/templates/header.html
Normal file
240
web/templates/header.html
Normal file
File diff suppressed because one or more lines are too long
22
web/templates/login.html
Normal file
22
web/templates/login.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{{ template "header.html" . }}
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<h2 class="heading">Log in to {{ .Issuer }} </h2>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{{ range $c := .Connectors }}
|
||||||
|
<div class="form-row">
|
||||||
|
<a href="{{ $c.URL }}?state={{ $.State }}" target="_self">
|
||||||
|
<button class="btn btn-provider">
|
||||||
|
<span class="btn-icon btn-icon-{{ $c.ID }}"></span>
|
||||||
|
<span class="btn-text">Log in with {{ $c.Name }}</span>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{ template "footer.html" . }}
|
31
web/templates/password.html
Normal file
31
web/templates/password.html
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{{ template "header.html" . }}
|
||||||
|
|
||||||
|
<div class="panel">
|
||||||
|
<h2 class="heading">Log in to Your Account</h2>
|
||||||
|
<form method="post" action="{{ .PostURL }}">
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="input-desc">
|
||||||
|
<label for="userid">Username</label>
|
||||||
|
</div>
|
||||||
|
<input tabindex="1" required id="login" name="login" type="text" class="input-box" placeholder="username" {{ if .Username }}value="{{ .Username }}" {{ else }} autofocus {{ end }}/>
|
||||||
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="input-desc">
|
||||||
|
<label for="password">Password</label>
|
||||||
|
</div>
|
||||||
|
<input tabindex="2" required id="password" name="password" type="password" class="input-box" placeholder="password" {{ if .Invalid }} autofocus {{ end }}/>
|
||||||
|
</div>
|
||||||
|
<input type="hidden" name="state" value="{{ .State }}"/>
|
||||||
|
|
||||||
|
{{ if .Invalid }}
|
||||||
|
<div class="error-box">
|
||||||
|
Invalid username and password.
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<button tabindex="3" type="submit" class="btn btn-primary">Login</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ template "footer.html" . }}
|
Reference in New Issue
Block a user