diff --git a/backend/modules/company/views/company/_form.php b/backend/modules/company/views/company/_form.php index c2e3291..7cff194 100644 --- a/backend/modules/company/views/company/_form.php +++ b/backend/modules/company/views/company/_form.php @@ -1,5 +1,6 @@ 'dropDownList', 'title' => 'Поле', 'defaultValue' => null, - 'items' => \yii\helpers\ArrayHelper::map(\backend\modules\fields\models\AdditionalFields::find() + 'items' => \yii\helpers\ArrayHelper::map(AdditionalFields::find() ->joinWith('useFields') ->where(['`use_field`.`use`' => \common\models\UseStatus::USE_COMPANY]) ->all(), @@ -68,7 +69,7 @@ use yii\widgets\ActiveForm;
- = Html::a('Create Company', ['create'], ['class' => 'btn btn-success']) ?> + = Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ @@ -24,7 +24,7 @@ $this->params['breadcrumbs'][] = $this->title; 'columns' => [ ['class' => 'yii\grid\SerialColumn'], - 'id', + //'id', 'name', 'description:ntext', 'status_id', diff --git a/backend/modules/company/views/company/update.php b/backend/modules/company/views/company/update.php index 3983682..6da2fd0 100644 --- a/backend/modules/company/views/company/update.php +++ b/backend/modules/company/views/company/update.php @@ -5,10 +5,10 @@ use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model backend\modules\company\models\Company */ -$this->title = 'Update Company: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => 'Companies', 'url' => ['index']]; +$this->title = 'Редактировать компанию: ' . $model->name; +$this->params['breadcrumbs'][] = ['label' => 'Компании', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update'; +$this->params['breadcrumbs'][] = 'Редактировать'; ?>