This repository was archived by the owner on Jul 27, 2023. It is now read-only.
File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -81,22 +81,22 @@ public function init()
81
81
public function run ()
82
82
{
83
83
if ($ this ->form ) {
84
- Html::addCssClass ($ this ->options , 'form-control datepicker-from ' );
85
- Html::addCssClass ($ this ->optionsTo , 'form-control datepicker-to ' );
84
+ Html::addCssClass ($ this ->options , 'datepicker-from ' );
85
+ Html::addCssClass ($ this ->optionsTo , 'datepicker-to ' );
86
86
$ inputFrom = $ this ->form ->field (
87
87
$ this ->model ,
88
88
$ this ->attribute ,
89
89
[
90
90
'template ' => '{input}{error} ' ,
91
- 'options ' => ['class ' => 'datepicker-range form-control ' ],
91
+ 'options ' => ['class ' => 'input-group datepicker-range ' ],
92
92
]
93
93
)->textInput ($ this ->options );
94
94
$ inputTo = $ this ->form ->field (
95
95
$ this ->model ,
96
96
$ this ->attributeTo ,
97
97
[
98
98
'template ' => '{input}{error} ' ,
99
- 'options ' => ['class ' => 'datepicker-range form-control ' ],
99
+ 'options ' => ['class ' => 'input-group datepicker-range ' ],
100
100
]
101
101
)->textInput ($ this ->optionsTo );
102
102
} else {
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ public function testRenderWithModel()
22
22
'attribute ' => 'date_from ' ,
23
23
'attributeTo ' => 'date_to '
24
24
]);
25
- $ expected = '<div class="input-group input-daterange"><div class="datepicker-range form-control field-post-date_from">
26
- <input type="text" id="post-date_from" class="form-control form-control datepicker-from" name="Post[date_from]"><p class="help-block help-block-error"></p>
27
- </div><span class="input-group-addon">to</span><div class="datepicker-range form-control field-post-date_to">
28
- <input type="text" id="post-date_to" class="form-control form-control datepicker-to" name="Post[date_to]"><p class="help-block help-block-error"></p>
25
+ $ expected = '<div class="input-group input-daterange"><div class="input-group datepicker-range field-post-date_from">
26
+ <input type="text" id="post-date_from" class="form-control datepicker-from" name="Post[date_from]"><p class="help-block help-block-error"></p>
27
+ </div><span class="input-group-addon">to</span><div class="input-group datepicker-range field-post-date_to">
28
+ <input type="text" id="post-date_to" class="form-control datepicker-to" name="Post[date_to]"><p class="help-block help-block-error"></p>
29
29
</div></div> ' ;
30
30
31
31
$ this ->assertEqualsWithoutLE ($ expected , $ out );
You can’t perform that action at this time.
0 commit comments