Exemplo n.º 1
0
/* @var $form yii\widgets\ActiveForm */
?>

<div class="tasks-search">

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

    <?php 
//= $form->field($model, 'id')
?>
    <div style="clear: both;">
        <div class="col-md-2" style="margin-left: 0; padding-left: 0;">
            <?php 
echo $form->field($model, 'active')->dropDownList(Tasks::getStatusesArray(), array('prompt' => 'Все'));
?>
        </div>
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'client')->dropDownList(Clients::getClients(), array('prompt' => 'Любой'));
?>
        </div>
        <div class="col-md-3">
            <?php 
echo '<label class="control-label">Даты</label>';
echo DatePicker::widget(['model' => $model, 'attribute' => 'fromDate', 'attribute2' => 'toDate', 'type' => DatePicker::TYPE_RANGE, 'form' => $form, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
        </div>
        <div class="col-md-3">
            <?php