Merge pull request #1961 from flant/make-example-app-form-prettier

chore: make example-app form prettier
This commit is contained in:
Márk Sági-Kazár 2021-02-10 00:16:56 +01:00 committed by GitHub
commit 728ae7b348
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>
<input type="text" name="cross_client" placeholder="list of client-ids">
</p> </p>
<p> <p>
Extra scopes:<input type="text" name="extra_scopes" placeholder="list of scopes"> <label>Extra scopes: </label>
<input type="text" name="extra_scopes" placeholder="list of scopes">
</p> </p>
<p> <p>
Connector ID:<input type="text" name="connector_id" placeholder="connector id"> <label>Connector ID: </label>
<input type="text" name="connector_id" placeholder="connector id">
</p> </p>
<p> <p>
Request offline access:<input type="checkbox" name="offline_access" value="yes" checked> <label>Request offline access: </label>
<input type="checkbox" name="offline_access" value="yes" checked>
</p> </p>
<p>
<input type="submit" value="Login"> <input type="submit" value="Login">
</p>
</form> </form>
</body> </body>
</html>`)) </html>`))