view items translate

This commit is contained in:
Leorne 2019-12-06 11:30:11 +03:00
parent 75d0b2191e
commit 48001992ff
2 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'use')->checkboxList((new \common\models\UseField())->statuses); ?> <?= $form->field($model, 'use')->checkboxList((new \common\models\UseField())->statuses); ?>
<div class="form-group"> <div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?> <?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
</div> </div>
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>

View File

@ -7,22 +7,22 @@ use yii\widgets\DetailView;
/* @var $model backend\modules\card\models\AdditionalFields */ /* @var $model backend\modules\card\models\AdditionalFields */
$this->title = $model->name; $this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Additional Fields', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => 'Дополнительные поля', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;
?> ?>
<div class="additional-fields-view"> <div class="additional-fields-view">
<h1><?= Html::encode($this->title) ?></h1>
<p> <p>
<?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->id], [ <?= Html::a('Удалить', ['delete', 'id' => $model->id], [
'class' => 'btn btn-danger', 'class' => 'btn btn-danger',
'data' => [ 'data' => [
'confirm' => 'Are you sure you want to delete this item?', 'confirm' => 'Вы действительно хотите удалить поле?',
'method' => 'post', 'method' => 'post',
], ],
]) ?> ]) ?>
<?= Html::a('Создать', ['create', 'id' => $model->id], ['class' => 'btn btn-success']) ?>
<?= Html::a('Показать все', ['index', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
</p> </p>
<?= DetailView::widget([ <?= DetailView::widget([