title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Templates', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; YiiAsset::register($this); ?>

$model->id], ['class' => 'btn btn-primary']) ?> $model->id], ['class' => 'btn btn-primary']) ?> $model->id], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => 'Are you sure you want to delete this item?', 'method' => 'post', ], ]) ?>

$model, 'attributes' => [ 'id', [ 'attribute'=>'title', 'format'=>'raw', 'value' => function($model){ return $model->title . Html::a( '', ['update', 'id' => $model->id], [ 'title' => 'Update', 'class' => 'pull-right detail-button', ] ); } ], 'created_at', 'updated_at', [ 'label'=>'template_file_name', 'format'=>'raw', 'value' => function($model){ return $model->template_file_name . Html::a('', Url::to(['actualizar', 'id' => $model->id]), [ 'title' => 'Actualizar', // 'class' => 'pull-right detail-button', ]); } ] ], ]) ?> ', Url::to(['delete', 'id' => $model->id]), [ 'title' => 'Eliminar', 'class' => 'pull-right detail-button', 'data' => [ 'confirm' => '¿Realmente deseas eliminar este elemento?', 'method' => 'post', ] ]); $button2 = Html::a('', Url::to(['actualizar', 'id' => $model->id]), [ 'title' => 'Actualizar', 'class' => 'pull-right detail-button', ]); ?>

$templateFieldDataProvider, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'field_id', 'filter' => DocumentField::find()->select(['title', 'id'])->indexBy('id')->column(), 'value' => 'field.title', ], [ 'class' => 'yii\grid\ActionColumn', 'template' => '{view}{delete}', 'controller' => 'template-document-field', 'buttons' => [ 'delete' => function ($url,$model) { return Html::a( '', [ 'template-document-field/delete', 'id' => $model['id'], 'template_id' => $model['template_id'] ], [ 'data' => ['confirm' => 'Вы уверены, что хотите удалить этот вопрос?', 'method' => 'post'] ] ); }, ], ], ], ]); ?>

$model->id], ['class' => 'btn btn-primary'] ) ?>