title = Yii::t('app', 'termin'); $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a(Yii::t('app', 'Create'), ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'termin_title', //'value' => 'terminLangs.termin_title' ], [ 'attribute' => 'termin_parent_title', 'value' => 'terminStructures.parent.terminLangs.termin_title', 'content' => function($model, $key, $index, $column) { if($model->terminStructures[0]->parent instanceof Termin) { return $model->terminStructures[0]->parent->terminLangs[0]->termin_title; } else { return NULL; } } ], 'termin_name', 'is_book', ['class' => 'yii\grid\ActionColumn'], ], ]); ?>