Skip to content

Commit 4e8b446

Browse files
committed
Login form style.
1 parent d8707a5 commit 4e8b446

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/webapi/templates/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</div>
6666
</nav>
6767

68-
{{ if .WebApiCfg.Debug }}
68+
{{ if not .WebApiCfg.Debug }}
6969
<div class="container">
7070
<div class="alert alert-danger my-2 w-100 text-center font-weight-bold">
7171
Web server is running in debug mode - don't do this in production!

internal/webapi/templates/login.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<div class="py-4 container">
44
<h1>Login</h1>
5-
<form class="py-3" action="/admin" method="post">
5+
<form action="/admin" method="post">
66

7-
<input type="password" name="password" autofocus required placeholder="Enter password">
7+
<input class="form-control w-auto my-2" type="password" name="password" autofocus required placeholder="Enter password">
88

99
<p class="my-1 vsp-text-orange" style="visibility:{{ if .FailedLoginMsg }}visible{{ else }}hidden{{ end }};">{{ .FailedLoginMsg }}</p>
1010

11-
<button class="btn btn-primary" type="submit">Login</button>
11+
<button class="btn btn-primary my-2" type="submit">Login</button>
1212
</form>
1313

1414
</div>

0 commit comments

Comments
 (0)