"Login form in modal"
Bootstrap 4.0.0 Snippet by Bubelbub

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<div id="login-overlay" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="myModalLabel">Login</h2>
</div>
<div class="modal-body">
<div class="row">
<div class="col">
<div class="card">
<div class="card-block">
<form id="loginForm" method="POST" action="/login/" novalidate="novalidate">
<div class="form-group">
<label for="username" class="form-control-label">Username</label>
<input type="text" class="form-control" id="username" name="username" value="" required="" title="Please enter you username" placeholder="example@gmail.com">
<small class="form-text text-muted"></small>
</div>
<div class="form-group has-danger">
<label for="password" class="form-control-label">Password</label>
<input type="password" class="form-control form-control-danger" id="password" name="password" value="" required="" title="Please enter your password">
<div class="form-control-feedback">Sorry, that password is wrong!</div>
<small class="form-text text-muted"></small>
</div>
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="remember" id="remember"> Remember me
<small class="form-text text-muted">(if this is a private computer)</small>
</label>
<button type="submit" class="btn btn-success btn-block">Login</button>
<a href="/forgot/" class="btn btn-secondary btn-block">Help to login</a>
</form>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: