fix company
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
use backend\modules\settings\models\AdditionalFields;
 | 
			
		||||
use unclead\multipleinput\MultipleInput;
 | 
			
		||||
use yii\helpers\Html;
 | 
			
		||||
use yii\widgets\ActiveForm;
 | 
			
		||||
@@ -38,7 +39,7 @@ use yii\widgets\ActiveForm;
 | 
			
		||||
                        'type'  => '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;
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="form-group">
 | 
			
		||||
        <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
 | 
			
		||||
        <?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <?php ActiveForm::end(); ?>
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
?>
 | 
			
		||||
<div class="company-create">
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
?>
 | 
			
		||||
<div class="company-index">
 | 
			
		||||
@@ -15,7 +15,7 @@ $this->params['breadcrumbs'][] = $this->title;
 | 
			
		||||
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
 | 
			
		||||
 | 
			
		||||
    <p>
 | 
			
		||||
        <?= Html::a('Create Company', ['create'], ['class' => 'btn btn-success']) ?>
 | 
			
		||||
        <?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
 | 
			
		||||
    </p>
 | 
			
		||||
 | 
			
		||||
    <?= GridView::widget([
 | 
			
		||||
@@ -24,7 +24,7 @@ $this->params['breadcrumbs'][] = $this->title;
 | 
			
		||||
        'columns' => [
 | 
			
		||||
            ['class' => 'yii\grid\SerialColumn'],
 | 
			
		||||
 | 
			
		||||
            'id',
 | 
			
		||||
            //'id',
 | 
			
		||||
            'name',
 | 
			
		||||
            'description:ntext',
 | 
			
		||||
            'status_id',
 | 
			
		||||
 
 | 
			
		||||
@@ -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'][] = 'Редактировать';
 | 
			
		||||
?>
 | 
			
		||||
<div class="company-update">
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user