title = Yii::t('app', 'Languages');
$this->params['breadcrumbs'][] = $this->title;
echo $this->render('layout');
?>
render('_search', ['model' => $searchModel]); ?>
= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'layout' => "{items}",
'columns' => [
[
'class' => Column::className(),
'content' => function($model, $key, $index, $column) {
return '
';
}
],
'language_name',
'lang_code',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{create}',
'buttons' => [
'create' => function ($url, $model, $key) {
return Html::a('', $url, ['class' => 'glyphicon glyphicon-plus', 'title' => Yii::t('app', 'Create Language')]);
},
],
]
]
]); ?>
= Html::a(Yii::t('app', 'Cancel'), ['index'], ['class' => 'btn btn-success']) ?>