1 |
|
2 | Copyright IBM Corp. 2016, 2018
|
3 |
|
4 | This source code is licensed under the Apache-2.0 license found in the
|
5 | LICENSE file in the root directory of this source tree.
|
6 | -->
|
7 |
|
8 |
|
9 | <div class="{{@root.prefix}}--form-item">
|
10 | <div data-date-picker data-date-picker-type="range"
|
11 | class="{{@root.prefix}}--date-picker {{@root.prefix}}--date-picker--range">
|
12 | <div class="{{@root.prefix}}--date-picker-container">
|
13 | <label for="date-picker-1" class="{{@root.prefix}}--label">Start date label</label>
|
14 | {{#if componentsX}}
|
15 | <div class="{{@root.prefix}}--date-picker-input__wrapper">
|
16 | <input type="text" id="date-picker-1" class="{{@root.prefix}}--date-picker__input"
|
17 | pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" data-date-picker-input-from />
|
18 | {{ carbon-icon 'Calendar16' class=(add @root.prefix '--date-picker__icon') data-date-picker-icon="true" }}
|
19 | </div>
|
20 | {{else}}
|
21 | <input type="text" id="date-picker-1" class="{{@root.prefix}}--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}"
|
22 | placeholder="mm/dd/yyyy" data-date-picker-input-from />
|
23 | {{/if}}
|
24 | </div>
|
25 | <div class="{{@root.prefix}}--date-picker-container">
|
26 | <label for="date-picker-2" class="{{@root.prefix}}--label">End date label</label>
|
27 | {{#if componentsX}}
|
28 | <div class="{{@root.prefix}}--date-picker-input__wrapper">
|
29 | <input type="text" id="date-picker-2" class="{{@root.prefix}}--date-picker__input"
|
30 | pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" data-date-picker-input-to />
|
31 | {{ carbon-icon 'Calendar16' class=(add @root.prefix '--date-picker__icon') data-date-picker-icon="true" }}
|
32 | </div>
|
33 | {{else}}
|
34 | <input type="text" id="date-picker-2" class="{{@root.prefix}}--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}"
|
35 | placeholder="mm/dd/yyyy" data-date-picker-input-to />
|
36 | {{/if}}
|
37 | </div>
|
38 | {{#unless componentsX}}
|
39 | <svg data-date-picker-icon class="{{@root.prefix}}--date-picker__icon" width="14" height="16" viewBox="0 0 14 16">
|
40 | <path
|
41 | d="M0 5h14v1H0V5zm3-5h1v4H3V0zm7 0h1v4h-1V0zM0 2.5A1.5 1.5 0 0 1 1.5 1h11A1.5 1.5 0 0 1 14 2.5v12a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 0 14.5v-12zm1 0v12a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-12a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5z"
|
42 | fill-rule="nonzero" />
|
43 | </svg>
|
44 | {{/unless}}
|
45 | </div>
|
46 | </div>
|
47 |
|
\ | No newline at end of file |