forked from jakiestfu/Submodal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
89 lines (80 loc) · 3.52 KB
/
demo.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Sub Modal Demo</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript' src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script type='text/javascript' src='bootstrap.submodal.js'></script>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<link rel="stylesheet" type="text/css" href="bootstrap.submodal.css">
<style type="text/css">
/* Demo Styles */
.demo-modal form .btn-mini{
margin: 4px 0;
}
.demo-modal form p, .control-label{
font-size: 12px;
color: #888;
}
.center{
text-align: center;
}
.sub-modal form{
margin: 0;
}
</style>
</head>
<body>
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade demo-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Your Account</h3>
</div>
<div class="modal-body">
<!-- Sub-Modal -->
<div id="mySubModal" class="modal sub-modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-body">
<p class="center">Are you sure you want to close your account?<br />You won't be able to undo this.</p>
<hr />
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputEmail">Confirm Your Password: </label>
<div class="controls">
<input type="text">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="submodal" aria-hidden="true">Cancel</button>
<button class="btn btn-danger" data-dismiss="submodal">Close Account</button>
</div>
</div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputEmail">Your Account</label>
<div class="controls">
<a href="#mySubModal" role="button" class="btn btn-mini" data-toggle="submodal">Close my account…</a>
<p>By closing your account, you will lose access to your financial data and your keys will be expired. This action is irreversible.</p>
</div>
</div>
<hr />
<div class="control-group">
<label class="control-label" for="inputEmail">Your Account</label>
<div class="controls">
<a href="#mySubModal" role="button" class="btn btn-mini" data-toggle="submodal">Close my account…</a>
<p>By closing your account, you will lose access to your financial data and your keys will be expired. This action is irreversible.</p>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary" data-dismiss="modal">Done</button>
</div>
</div>
</body>
</html>