-
Notifications
You must be signed in to change notification settings - Fork 346
Expand file tree
/
Copy pathforms-basic.html
More file actions
executable file
·382 lines (365 loc) · 16 KB
/
forms-basic.html
File metadata and controls
executable file
·382 lines (365 loc) · 16 KB
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!doctype html>
<html lang="en">
<head>
{{> head title="Basic Forms"}}
</head>
<body>
<div class="wrapper">
{{> sidebar-ela}}
<div class="main-content">
{{> header-ela}}
<main class="content">
<!-- Breadcrumbs -->
<div class="row mb-4">
<div class="col-sm-4">
<h4 class="page-title">Basic Forms</h4>
</div>
<div class="col-sm-8">
<nav aria-label="breadcrumb">
<ol class="breadcrumb float-sm-end">
<li class="breadcrumb-item"><a href="/">Dashboard</a></li>
<li class="breadcrumb-item"><a href="#">Forms</a></li>
<li class="breadcrumb-item active" aria-current="page">Basic Forms</li>
</ol>
</nav>
</div>
</div>
<div class="row">
<!-- Basic Form Elements -->
<div class="col-lg-6">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Basic Form Elements</h5>
</div>
<div class="card-body">
<form>
<div class="mb-3">
<label for="companyName" class="form-label">Company</label>
<input
type="text"
class="form-control"
id="companyName"
placeholder="Enter your company name"
/>
</div>
<div class="mb-3">
<label for="emailInput" class="form-label">Email</label>
<input
type="email"
class="form-control"
id="emailInput"
placeholder="Enter email"
/>
<small class="form-text text-muted"
>We'll never share your email with anyone else.</small
>
</div>
<div class="mb-3">
<label for="passwordInput" class="form-label">Password</label>
<input
type="password"
class="form-control"
id="passwordInput"
placeholder="Password"
/>
</div>
<div class="mb-3">
<label for="textArea" class="form-label">Textarea</label>
<textarea
class="form-control"
id="textArea"
rows="3"
placeholder="Enter description..."
></textarea>
</div>
<div class="mb-3">
<label for="selectInput" class="form-label">Select</label>
<select class="form-select" id="selectInput">
<option selected>Choose...</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</div>
<div class="mb-3">
<label for="multiSelect" class="form-label">Multiple Select</label>
<select class="form-select" id="multiSelect" multiple>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</select>
</div>
<button type="submit" class="btn bg-flat-color-1 text-white">Submit</button>
<button type="reset" class="btn bg-flat-color-4 text-white">Reset</button>
</form>
</div>
</div>
</div>
<!-- Form Controls Sizing -->
<div class="col-lg-6">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Form Control Sizing</h5>
</div>
<div class="card-body">
<form>
<div class="mb-3">
<label for="largeInput" class="form-label">Large Input</label>
<input
type="text"
class="form-control form-control-lg"
id="largeInput"
placeholder="Large input"
/>
</div>
<div class="mb-3">
<label for="defaultInput" class="form-label">Default Input</label>
<input
type="text"
class="form-control"
id="defaultInput"
placeholder="Default input"
/>
</div>
<div class="mb-3">
<label for="smallInput" class="form-label">Small Input</label>
<input
type="text"
class="form-control form-control-sm"
id="smallInput"
placeholder="Small input"
/>
</div>
<div class="mb-3">
<label class="form-label">Disabled Input</label>
<input
type="text"
class="form-control"
placeholder="Disabled input"
disabled
/>
</div>
<div class="mb-3">
<label class="form-label">Readonly Input</label>
<input type="text" class="form-control" value="Readonly input" readonly />
</div>
<div class="mb-3">
<label for="fileInput" class="form-label">File Input</label>
<input class="form-control" type="file" id="fileInput" />
</div>
<div class="mb-3">
<label for="multipleFiles" class="form-label">Multiple Files</label>
<input class="form-control" type="file" id="multipleFiles" multiple />
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row mt-4">
<!-- Checkboxes and Radios -->
<div class="col-lg-6">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Checkboxes and Radios</h5>
</div>
<div class="card-body">
<form>
<div class="mb-3">
<label class="form-label">Checkboxes</label>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="check1" />
<label class="form-check-label" for="check1"> Default checkbox </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value=""
id="check2"
checked
/>
<label class="form-check-label" for="check2"> Checked checkbox </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value=""
id="check3"
disabled
/>
<label class="form-check-label" for="check3"> Disabled checkbox </label>
</div>
</div>
<div class="mb-3">
<label class="form-label">Radio Buttons</label>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="radioOptions"
id="radio1"
value="option1"
checked
/>
<label class="form-check-label" for="radio1"> Default radio </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="radioOptions"
id="radio2"
value="option2"
/>
<label class="form-check-label" for="radio2"> Second radio </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="radioOptions"
id="radio3"
value="option3"
disabled
/>
<label class="form-check-label" for="radio3"> Disabled radio </label>
</div>
</div>
<div class="mb-3">
<label class="form-label">Inline Checkboxes</label>
<div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="inlineCheck1"
value="option1"
/>
<label class="form-check-label" for="inlineCheck1">1</label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="inlineCheck2"
value="option2"
/>
<label class="form-check-label" for="inlineCheck2">2</label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="inlineCheck3"
value="option3"
/>
<label class="form-check-label" for="inlineCheck3">3</label>
</div>
</div>
</div>
<div class="mb-3">
<label class="form-label">Switches</label>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="switch1" />
<label class="form-check-label" for="switch1">Default switch</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="switch2" checked />
<label class="form-check-label" for="switch2">Checked switch</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="switch3" disabled />
<label class="form-check-label" for="switch3">Disabled switch</label>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- Input Groups -->
<div class="col-lg-6">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Input Groups</h5>
</div>
<div class="card-body">
<form>
<div class="mb-3">
<label class="form-label">With Text</label>
<div class="input-group">
<span class="input-group-text">@</span>
<input type="text" class="form-control" placeholder="Username" />
</div>
</div>
<div class="mb-3">
<div class="input-group">
<input
type="text"
class="form-control"
placeholder="Recipient's username"
/>
<span class="input-group-text">@example.com</span>
</div>
</div>
<div class="mb-3">
<label class="form-label">With Icon</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-user"></i></span>
<input type="text" class="form-control" placeholder="Username" />
</div>
</div>
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-envelope"></i></span>
<input type="email" class="form-control" placeholder="Email" />
</div>
</div>
<div class="mb-3">
<label class="form-label">With Button</label>
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for..." />
<button class="btn bg-flat-color-3 text-white" type="button">Search</button>
</div>
</div>
<div class="mb-3">
<label class="form-label">With Dropdown</label>
<div class="input-group">
<button
class="btn bg-flat-color-2 text-white dropdown-toggle"
type="button"
data-bs-toggle="dropdown"
>
Dropdown
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
<input type="text" class="form-control" />
</div>
</div>
<div class="mb-3">
<label class="form-label">Multiple Inputs</label>
<div class="input-group">
<span class="input-group-text">First and last name</span>
<input type="text" class="form-control" placeholder="First name" />
<input type="text" class="form-control" placeholder="Last name" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</main>
{{> footer}}
</div>
</div>
{{> scripts}}
</body>
</html>