Skip to content

Commit 80ac8ce

Browse files
Adapt login form to to bootstrap 4
1 parent b6b4cde commit 80ac8ce

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

dist/templates/_loginForm.html

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/_loginForm.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<form class="form-signin" action="/login" method="post">
22
<div class="form-group">
3-
<label class="control-label" for="login_username">Username</label>
3+
<label class="col-form-label" for="login_username">Username</label>
44
<input type="text" class="form-control" id="login_username" placeholder="User name" required="required" autocomplete="username"
55
autofocus="autofocus"/>
66
</div>
77

88
<div class="form-group">
9-
<label class="control-label" for="login_password">Password</label>
9+
<label class="col-form-label" for="login_password">Password</label>
1010
<input type="text" class="form-control" id="login_password" placeholder="Password" required="required" autocomplete="current-password"/>
1111
</div>
1212

13-
<div class="checkbox">
14-
<label>
15-
<input type="checkbox" value="remember-me" id="login_remember"> Remember me
16-
</label>
13+
<div class="form-group form-check">
14+
<input type="checkbox" class="form-check-input" value="remember-me" id="login_remember">
15+
<label class="form-check-label">Remember me</label>
1716
</div>
18-
<span class="help-block">A random username and password is generated for you. However, you can use the same username and password next time to continue your work. Your previous username and password are stored as a cookie for your convenience.</span>
19-
<button class="btn btn-primary btn-block" type="submit">Login</button>
17+
<span class="form-text text-muted">A random username and password is generated for you. However, you can use the same username and password next time to continue your work. Your previous username and password are stored as a cookie for your convenience.</span>
18+
<button class="btn btn-primary mt-2 btn-block" type="submit">Login</button>
2019
</form>

0 commit comments

Comments
 (0)