intermediate commit

This commit is contained in:
iIronside
2022-01-07 15:04:11 +03:00
parent e16e72dcc1
commit d31a4757ff
32 changed files with 5163 additions and 270 deletions

View File

@ -19,6 +19,8 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'title') ?>
<?= $form->field($model, 'field_template') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>

View File

@ -12,8 +12,10 @@ $this->params['breadcrumbs'][] = $this->title;
?>
<div class="document-field-index">
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Создать поле документа', ['create'], ['class' => 'btn btn-success']) ?>
<?= Html::a('Создать новое поле', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
@ -23,6 +25,12 @@ $this->params['breadcrumbs'][] = $this->title;
['class' => 'yii\grid\SerialColumn'],
'title',
[
'attribute' => 'field_template',
'value' => function($model) {
return '${' . $model->field_template . '}';
},
],
['class' => 'yii\grid\ActionColumn'],
],

View File

@ -30,6 +30,10 @@ $this->params['breadcrumbs'][] = $this->title;
'attributes' => [
'id',
'title',
[
'attribute' => 'field_template',
'value' => '${' . $model->field_template . '}',
],
],
]) ?>