HTML
xxxxxxxxxx
1
<!-- Button trigger modal -->
2
<button type="button" data-mdb-button-init data-mdb-ripple-init class="btn btn-primary" data-mdb-modal-init data-mdb-target="#exampleModal">
3
Launch demo modal
4
</button>
5
6
<!-- Modal -->
7
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
8
<div class="modal-dialog mx-0 mx-sm-auto">
9
<div class="modal-content">
10
<div class="modal-header bg-primary">
11
<h5 class="modal-title text-white" id="exampleModalLabel">Feedback request</h5>
12
<button type="button" data-mdb-button-init data-mdb-ripple-init class="btn-close text-white" data-mdb-dismiss="modal" aria-label="Close"></button>
13
</div>
14
<div class="modal-body">
15
<div class="text-center">
16
<i class="far fa-file-alt fa-4x mb-3 text-primary"></i>
17
<p>
18
<strong>Your opinion matters</strong>
19
</p>
20
<p>
21
Have some ideas how to improve our product?
22
<strong>Give us your feedback.</strong>
23
</p>
24
</div>
25
26
<hr />
27
28
<form class="px-4" action="">
29
<p class="text-center"><strong>Your rating:</strong></p>
30
31
<div class="form-check mb-2">
32
<input class="form-check-input" type="radio" name="exampleForm" id="radio4Example1" />
33
<label class="form-check-label" for="radio4Example1">
34
Very good
35
</label>
36
</div>
37
<div class="form-check mb-2">
38
<input class="form-check-input" type="radio" name="exampleForm" id="radio4Example2" />
39
<label class="form-check-label" for="radio4Example2">
40
Good
41
</label>
42
</div>
43
<div class="form-check mb-2">
44
<input class="form-check-input" type="radio" name="exampleForm" id="radio4Example3" />
45
<label class="form-check-label" for="radio4Example3">
46
Medicore
47
</label>
48
</div>
49
<div class="form-check mb-2">
50
<input class="form-check-input" type="radio" name="exampleForm" id="radio4Example4" />
51
<label class="form-check-label" for="radio4Example4">
52
Bad
53
</label>
54
</div>
55
<div class="form-check mb-2">
56
<input class="form-check-input" type="radio" name="exampleForm" id="radio4Example5" />
57
<label class="form-check-label" for="radio4Example5">
58
Very bad
59
</label>
60
</div>
61
62
<p class="text-center"><strong>What could we improve?</strong></p>
63
64
<!-- Message input -->
65
<div data-mdb-input-init class="form-outline mb-4">
66
<textarea class="form-control" id="form4Example4" rows="4"></textarea>
67
<label class="form-label" for="form4Example4">Your feedback</label>
68
</div>
69
</form>
70
</div>
71
<div class="modal-footer">
72
<button type="button" data-mdb-button-init data-mdb-ripple-init class="btn btn-outline-primary" data-mdb-dismiss="modal">
73
Close
74
</button>
75
<button type="button" data-mdb-button-init data-mdb-ripple-init class="btn btn-primary">Submit</button>
76
</div>
77
</div>
78
</div>
79
</div>
CSS
1
1
JS
1
1
Console errors: 0