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;
- 'btn btn-success']) ?> + 'btn btn-success']) ?>
diff --git a/backend/modules/company/views/company/create.php b/backend/modules/company/views/company/create.php index 828cd7e..0f9cd62 100644 --- a/backend/modules/company/views/company/create.php +++ b/backend/modules/company/views/company/create.php @@ -6,8 +6,8 @@ use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model backend\modules\company\models\Company */ -$this->title = 'Create Company'; -$this->params['breadcrumbs'][] = ['label' => 'Companies', 'url' => ['index']]; +$this->title = 'Создать компанию'; +$this->params['breadcrumbs'][] = ['label' => 'Компании', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
diff --git a/backend/modules/company/views/company/index.php b/backend/modules/company/views/company/index.php index 28ecdc8..8c994f3 100644 --- a/backend/modules/company/views/company/index.php +++ b/backend/modules/company/views/company/index.php @@ -7,7 +7,7 @@ use yii\grid\GridView; /* @var $searchModel backend\modules\company\models\CompanySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ -$this->title = 'Companies'; +$this->title = 'Компании'; $this->params['breadcrumbs'][] = $this->title; ?>
@@ -15,7 +15,7 @@ $this->params['breadcrumbs'][] = $this->title; render('_search', ['model' => $searchModel]); ?>

- 'btn btn-success']) ?> + 'btn btn-success']) ?>

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'][] = 'Редактировать'; ?>