forked from zuramai/mazer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-element-radio.html
174 lines (171 loc) · 8.79 KB
/
form-element-radio.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{% set title = 'Radio' %}
{% set filename = 'form-element-radio.html' %}
{% extends 'src/layouts/master.html' %}
{% block content %}
<div class="page-heading">
<div class="page-title">
<div class="row">
<div class="col-12 col-md-6 order-md-1 order-last">
<h3>Radio</h3>
<p class="text-subtitle text-muted">Choose one from a list with radio buttons.</p>
</div>
<div class="col-12 col-md-6 order-md-2 order-first">
<nav aria-label="breadcrumb" class="breadcrumb-header float-start float-lg-end">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page">Radio</li>
</ol>
</nav>
</div>
</div>
</div>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Default Radio</h4>
</div>
<div class="card-body">
<div class="form-check">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
<label class="form-check-label" for="flexRadioDefault1">
Default radio
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2"
checked>
<label class="form-check-label" for="flexRadioDefault2">
Default checked radio
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="flexRadioDisabled" id="flexRadioDisabled"
disabled>
<label class="form-check-label" for="flexRadioDisabled">
Disabled radio
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="flexRadioDisabled"
id="flexRadioCheckedDisabled" checked disabled>
<label class="form-check-label" for="flexRadioCheckedDisabled">
Disabled checked radio
</label>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Colors</h4>
</div>
<div class="card-body">
<p>Use class <code>.form-check-{color}</code> with <code>.form-check</code> to change radio
color</p>
<div class="form-check form-check-primary">
<input class="form-check-input" type="radio" name="Primary" id="Primary" checked>
<label class="form-check-label" for="Primary">
Primary
</label>
</div>
<div class="form-check form-check-secondary">
<input class="form-check-input" type="radio" name="Secondary" id="Secondary" checked>
<label class="form-check-label" for="Secondary">
Secondary
</label>
</div>
<div class="form-check form-check-warning">
<input class="form-check-input" type="radio" name="Warning" id="Warning" checked>
<label class="form-check-label" for="Warning">
Warning
</label>
</div>
<div class="form-check form-check-danger">
<input class="form-check-input" type="radio" name="Danger" id="Danger" checked>
<label class="form-check-label" for="Danger">
Danger
</label>
</div>
<div class="form-check form-check-success">
<input class="form-check-input" type="radio" name="Success" id="Success" checked>
<label class="form-check-label" for="Success">
Success
</label>
</div>
<div class="form-check form-check-dark">
<input class="form-check-input" type="radio" name="Dark" id="Dark" checked>
<label class="form-check-label" for="Dark">
Dark
</label>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Switches</h4>
</div>
<div class="card-body">
<p>A switch has the markup of a custom checkbox but uses the <code>.form-switch</code> class to
render a toggle switch. Switches also support the disabled attribute.</p>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Default switch checkbox
input</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
<label class="form-check-label" for="flexSwitchCheckChecked">Checked switch checkbox
input</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDisabled" disabled>
<label class="form-check-label" for="flexSwitchCheckDisabled">Disabled switch checkbox
input</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckCheckedDisabled" checked
disabled>
<label class="form-check-label" for="flexSwitchCheckCheckedDisabled">Disabled checked switch
checkbox input</label>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">With Buttons</h4>
</div>
<div class="card-body">
<p>A switch has the markup of a custom checkbox but uses the <code>.form-switch</code> class to
render a toggle switch. Switches also support the disabled attribute.</p>
<input type="radio" class="btn-check" name="options-outlined" id="success-outlined"
autocomplete="off" checked>
<label class="btn btn-outline-success" for="success-outlined">Checked success radio</label>
<input type="radio" class="btn-check" name="options-outlined" id="danger-outlined"
autocomplete="off">
<label class="btn btn-outline-danger" for="danger-outlined">Danger radio</label>
</div>
</div>
</div>
</div>
</section>
</div>
{% endblock %}