Example #1
0
?>
<div class="reservationinfo-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Добавить', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <p>
        <?php 
echo Html::a('Добавить несколько', ['create-many'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', ['attribute' => 'objreservation_id', 'label' => 'Экскурсия', 'format' => 'text', 'content' => function ($data) {
    return $data->getObjreservationName();
}], ['attribute' => 'date_begin', 'value' => 'date_begin', 'format' => ['date', 'Y/MM/dd HH:mm'], 'filter' => DateTimePicker::widget(['attribute' => 'date_begin', 'model' => $searchModel, 'options' => ['lang' => 'ru']])], ['attribute' => 'date_end', 'value' => 'date_end', 'format' => ['date', 'Y/MM/dd HH:mm'], 'filter' => DateTimePicker::widget(['attribute' => 'date_end', 'model' => $searchModel, 'options' => ['lang' => 'ru']])], 'qty', ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>