Skip to content

Commit

Permalink
Login form style.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Nov 1, 2024
1 parent d8707a5 commit 4e8b446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/webapi/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</div>
</nav>

{{ if .WebApiCfg.Debug }}
{{ if not .WebApiCfg.Debug }}
<div class="container">
<div class="alert alert-danger my-2 w-100 text-center font-weight-bold">
Web server is running in debug mode - don't do this in production!
Expand Down
6 changes: 3 additions & 3 deletions internal/webapi/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<div class="py-4 container">
<h1>Login</h1>
<form class="py-3" action="/admin" method="post">
<form action="/admin" method="post">

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

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

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

</div>
Expand Down

0 comments on commit 4e8b446

Please sign in to comment.