<div class="wide form form-inline">

    <?php $form = $this->beginWidget('GxActiveForm', array(
        //'action' => Yii::app()->createUrl($this->route),
        'method' => 'get',
    )); ?>


    <div class="form-group">
        <?php echo $form->label($model, 'date_from'); ?>
        <?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
            'model' => $model,
            'attribute' => 'date_from',
            'value' => $model->date_from,
            'options' => array(
                'showButtonPanel' => true,
                'changeYear' => true,
                'dateFormat' => 'yy-mm-dd',
            ),
            'htmlOptions'=>array('class'=>'form-control')
        ));; ?>
    </div>


    <div class="form-group">
        <?php echo $form->label($model, 'date_to'); ?>
        <?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
            'model' => $model,
            'attribute' => 'date_to',
            'value' => $model->date_to,
            'options' => array(
                'showButtonPanel' => true,
                'changeYear' => true,
                'dateFormat' => 'yy-mm-dd',
            ),
            'htmlOptions'=>array('class'=>'form-control')
        ));; ?>
    </div>


    <div class="form-group ">
        <?php echo GxHtml::submitButton(Yii::t('app', 'Filtriraj'), array('class' => 'btn btn-info')); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- search-form -->
