"Availability Selector"
Bootstrap 4.0.0 Snippet by HectorMF

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 ---------->
<div class="container pt-5">
<table class="table table-bordered availability-table">
<thead class="table-inverse">
<tr>
<th></th>
<th>Day</th>
<th>Evening</th>
<th>Night</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Sunday
</td>
<td>
<label class="custom-control availability-checkbox checkbox-day">
<input type="checkbox" class="custom-control-input">
<span class="custom-control-indicator"></span>
</label>
</td>
<td>
<label class="custom-control availability-checkbox checkbox-evening">
<input type="checkbox" class="custom-control-input">
<span class="custom-control-indicator"></span>
</label>
</td>
<td>
<label class="custom-control availability-checkbox checkbox-night">
<input type="checkbox" class="custom-control-input">
<span class="custom-control-indicator"></span>
</label>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
html {
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-size: 14px;
}
/*
* This is the table that shows default availability for doctors
*/
.availability-table
{
width: 1px;
margin-left:auto;
margin-right:auto;
border: none;
}
.availability-table thead th:first-child {
pointer-events: none;
background: white;
border: none;
}
.availability-table td {
vertical-align: middle;
}
.availability-table th
{
text-align: center;
}
/*
* Custom checkbox CSS, below are three color classes, day, evening, and night
*/
.availability-checkbox {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: