Skip to content

Commit

Permalink
Merge pull request #424 from coreui/dev-vnext
Browse files Browse the repository at this point in the history
feat(basic-forms): add missing date-input
  • Loading branch information
xidedix authored Sep 25, 2018
2 parents 1cd87ee + 068ed76 commit 2d7ecf3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## vNext
- feat(basic-forms): add missing `date-input`

## v2.1.3
- fix(sidebar.pug): split icons/flags `li.nav-item`
- update: `@coreui/coreui` to `2.0.9`
Expand Down
7 changes: 7 additions & 0 deletions pug/views/base/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@
<span class="help-block">Please enter a complex password</span>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label" for="date-input">Date Input</label>
<div class="col-md-9">
<input class="form-control" id="date-input" type="date" name="date-input" placeholder="date">
<span class="help-block">Please enter a valid date</span>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label" for="disabled-input">Disabled Input</label>
<div class="col-md-9">
Expand Down
17 changes: 11 additions & 6 deletions pug/views/base/forms.pug
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ block view
.col-md-9
input#password-input.form-control(type='password', name='password-input', placeholder='Password')
span.help-block Please enter a complex password
.form-group.row
label.col-md-3.col-form-label(for='date-input') Date Input
.col-md-9
input#date-input.form-control(type='date', name='date-input', placeholder='date')
span.help-block Please enter a valid date
.form-group.row
label.col-md-3.col-form-label(for='disabled-input') Disabled Input
.col-md-9
Expand Down Expand Up @@ -302,7 +307,7 @@ block view
| Reset
.card
.card-header
| Input
| Input
strong Grid
.card-body
form.form-horizontal(action='', method='post')
Expand Down Expand Up @@ -345,7 +350,7 @@ block view
| Reset
.card
.card-header
| Input
| Input
strong Sizes
.card-body
form.form-horizontal(action='', method='post')
Expand Down Expand Up @@ -490,7 +495,7 @@ block view
.input-group
.input-group-prepend
button.btn.btn-primary.dropdown-toggle(type='button', data-toggle='dropdown')
| Action
| Action
span.caret
.dropdown-menu
a.dropdown-item(href='#') Action
Expand All @@ -505,7 +510,7 @@ block view
input#input2-group3.form-control(type='email', name='input2-group3', placeholder='Email')
.input-group-append
button.btn.btn-primary.dropdown-toggle(type='button', data-toggle='dropdown')
| Action
| Action
span.caret
.dropdown-menu.dropdown-menu-right
a.dropdown-item(href='#') Action
Expand Down Expand Up @@ -547,7 +552,7 @@ block view
.col-md-6
.card
.card-header
| Use the grid for big devices!
| Use the grid for big devices!
small
code .col-lg-*
code .col-md-*
Expand Down Expand Up @@ -588,7 +593,7 @@ block view
.col-md-6
.card
.card-header
| Input Grid for small devices!
| Input Grid for small devices!
small
code .col-*
.card-body
Expand Down
7 changes: 7 additions & 0 deletions src/base/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,13 @@
<span class="help-block">Please enter a complex password</span>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label" for="date-input">Date Input</label>
<div class="col-md-9">
<input class="form-control" id="date-input" type="date" name="date-input" placeholder="date">
<span class="help-block">Please enter a valid date</span>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label" for="disabled-input">Disabled Input</label>
<div class="col-md-9">
Expand Down

0 comments on commit 2d7ecf3

Please sign in to comment.