forked from mystiq/dex
chore: make example-app form prettier
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
parent
e3383564b9
commit
f2f19fa0d7
1 changed files with 27 additions and 13 deletions
|
@ -7,21 +7,35 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var indexTmpl = template.Must(template.New("index.html").Parse(`<html>
|
var indexTmpl = template.Must(template.New("index.html").Parse(`<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
form { display: table; }
|
||||||
|
p { display: table-row; }
|
||||||
|
label { display: table-cell; }
|
||||||
|
input { display: table-cell; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form action="/login" method="post">
|
<form action="/login" method="post">
|
||||||
<p>
|
<p>
|
||||||
Authenticate for:<input type="text" name="cross_client" placeholder="list of client-ids">
|
<label> Authenticate for: </label>
|
||||||
</p>
|
<input type="text" name="cross_client" placeholder="list of client-ids">
|
||||||
<p>
|
</p>
|
||||||
Extra scopes:<input type="text" name="extra_scopes" placeholder="list of scopes">
|
<p>
|
||||||
</p>
|
<label>Extra scopes: </label>
|
||||||
<p>
|
<input type="text" name="extra_scopes" placeholder="list of scopes">
|
||||||
Connector ID:<input type="text" name="connector_id" placeholder="connector id">
|
</p>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
<label>Connector ID: </label>
|
||||||
Request offline access:<input type="checkbox" name="offline_access" value="yes" checked>
|
<input type="text" name="connector_id" placeholder="connector id">
|
||||||
</p>
|
</p>
|
||||||
<input type="submit" value="Login">
|
<p>
|
||||||
|
<label>Request offline access: </label>
|
||||||
|
<input type="checkbox" name="offline_access" value="yes" checked>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="submit" value="Login">
|
||||||
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>`))
|
</html>`))
|
||||||
|
|
Loading…
Reference in a new issue