?> <div class="incident-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <p> <?php echo ButtonDropdown::widget(['label' => 'Create Incident', 'options' => ['class' => 'btn btn-success'], 'containerOptions' => ['class' => 'margin-bottom_20'], 'dropdown' => ['items' => array_map(function ($data) { return ['label' => $data->species_long, 'url' => ['incident/create', 'raptor_id' => $data->id]]; }, Incident::raptors())]]); ?> </p> <?php Pjax::begin(['timeout' => Yii::$app->constants->pjaxTimeout]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => ActionColumn::className(), 'template' => '{update}{view}', 'headerOptions' => ['style' => 'width: 100px;'], 'buttonOptions' => ['style' => 'padding: 5px;'], 'contentOptions' => ['style' => 'text-align: center;']], 'raptor_id', 'address', 'city', 'state']]); ?> <?php Pjax::end(); ?> </div>