Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit 911594a

Browse files
authored
Merge pull request #5 from coreui/dev-vnext
feat(basic-forms): add missing date-input
2 parents be5b912 + 498a48c commit 911594a

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

Diff for: pug/views/base/forms.html

+7
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@
141141
<span class="help-block">Please enter a complex password</span>
142142
</div>
143143
</div>
144+
<div class="form-group row">
145+
<label class="col-md-3 col-form-label" for="date-input">Date Input</label>
146+
<div class="col-md-9">
147+
<input class="form-control" id="date-input" type="date" name="date-input" placeholder="date">
148+
<span class="help-block">Please enter a valid date</span>
149+
</div>
150+
</div>
144151
<div class="form-group row">
145152
<label class="col-md-3 col-form-label" for="disabled-input">Disabled Input</label>
146153
<div class="col-md-9">

Diff for: pug/views/base/forms.pug

+11-6
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ block view
113113
.col-md-9
114114
input#password-input.form-control(type='password', name='password-input', placeholder='Password')
115115
span.help-block Please enter a complex password
116+
.form-group.row
117+
label.col-md-3.col-form-label(for='date-input') Date Input
118+
.col-md-9
119+
input#date-input.form-control(type='date', name='date-input', placeholder='date')
120+
span.help-block Please enter a valid date
116121
.form-group.row
117122
label.col-md-3.col-form-label(for='disabled-input') Disabled Input
118123
.col-md-9
@@ -302,7 +307,7 @@ block view
302307
| Reset
303308
.card
304309
.card-header
305-
| Input
310+
| Input
306311
strong Grid
307312
.card-body
308313
form.form-horizontal(action='', method='post')
@@ -345,7 +350,7 @@ block view
345350
| Reset
346351
.card
347352
.card-header
348-
| Input
353+
| Input
349354
strong Sizes
350355
.card-body
351356
form.form-horizontal(action='', method='post')
@@ -490,7 +495,7 @@ block view
490495
.input-group
491496
.input-group-prepend
492497
button.btn.btn-primary.dropdown-toggle(type='button', data-toggle='dropdown')
493-
| Action
498+
| Action
494499
span.caret
495500
.dropdown-menu
496501
a.dropdown-item(href='#') Action
@@ -505,7 +510,7 @@ block view
505510
input#input2-group3.form-control(type='email', name='input2-group3', placeholder='Email')
506511
.input-group-append
507512
button.btn.btn-primary.dropdown-toggle(type='button', data-toggle='dropdown')
508-
| Action
513+
| Action
509514
span.caret
510515
.dropdown-menu.dropdown-menu-right
511516
a.dropdown-item(href='#') Action
@@ -547,7 +552,7 @@ block view
547552
.col-md-6
548553
.card
549554
.card-header
550-
| Use the grid for big devices!
555+
| Use the grid for big devices!
551556
small
552557
code .col-lg-*
553558
code .col-md-*
@@ -588,7 +593,7 @@ block view
588593
.col-md-6
589594
.card
590595
.card-header
591-
| Input Grid for small devices!
596+
| Input Grid for small devices!
592597
small
593598
code .col-*
594599
.card-body

Diff for: src/views/base/forms.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@
146146
<span class="help-block">Please enter a complex password</span>
147147
</div>
148148
</div>
149+
<div class="form-group row">
150+
<label class="col-md-3 col-form-label" for="date-input">Date Input</label>
151+
<div class="col-md-9">
152+
<input class="form-control" id="date-input" type="date" name="date-input" placeholder="date">
153+
<span class="help-block">Please enter a valid date</span>
154+
</div>
155+
</div>
149156
<div class="form-group row">
150157
<label class="col-md-3 col-form-label" for="disabled-input">Disabled Input</label>
151158
<div class="col-md-9">
@@ -1065,4 +1072,4 @@
10651072
<!-- /.col-->
10661073
</div>
10671074
<!-- /.row-->
1068-
</div>
1075+
</div>

0 commit comments

Comments
 (0)