Skip to content

Commit

Permalink
Reformat html in _search
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Klochok committed Dec 30, 2015
1 parent fb35545 commit f2c962a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/views/ticket/_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@
<div class="col-md-4">
<?= $search->field('subject') ?>

<?= $search->field('time_from')->widget(DatePicker::className(), [
'model' => $search->model,
'attribute' => 'time_from',
'attribute2' => 'time_till',
// 'separator' => Yii::t('app', '&larr; between &rarr;'),
'type' => DatePicker::TYPE_RANGE,
'pluginOptions' => [
'autoclose' => true,
'format' => 'dd.mm.yyyy',
],
])->label(Yii::t('app', 'Date')) ?>
<div class="form-group">
<?= Html::label(Yii::t('app', 'Date'))?>
<?= DatePicker::widget([
'model' => $search->model,
'attribute' => 'time_from',
'attribute2' => 'time_till',
'type' => DatePicker::TYPE_RANGE,
'pluginOptions' => [
'autoclose' => true,
'format' => 'dd.mm.yyyy',
],
]) ?>
</div>

<?= $search->field('state')->widget(StaticCombo::classname(), [
'data' => $state_data,
'hasId' => true,
Expand Down

0 comments on commit f2c962a

Please sign in to comment.