fix company
This commit is contained in:
parent
369cf94f23
commit
51952e8c0d
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use backend\modules\settings\models\AdditionalFields;
|
||||||
use unclead\multipleinput\MultipleInput;
|
use unclead\multipleinput\MultipleInput;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
use yii\widgets\ActiveForm;
|
use yii\widgets\ActiveForm;
|
||||||
@ -38,7 +39,7 @@ use yii\widgets\ActiveForm;
|
|||||||
'type' => 'dropDownList',
|
'type' => 'dropDownList',
|
||||||
'title' => 'Поле',
|
'title' => 'Поле',
|
||||||
'defaultValue' => null,
|
'defaultValue' => null,
|
||||||
'items' => \yii\helpers\ArrayHelper::map(\backend\modules\fields\models\AdditionalFields::find()
|
'items' => \yii\helpers\ArrayHelper::map(AdditionalFields::find()
|
||||||
->joinWith('useFields')
|
->joinWith('useFields')
|
||||||
->where(['`use_field`.`use`' => \common\models\UseStatus::USE_COMPANY])
|
->where(['`use_field`.`use`' => \common\models\UseStatus::USE_COMPANY])
|
||||||
->all(),
|
->all(),
|
||||||
@ -68,7 +69,7 @@ use yii\widgets\ActiveForm;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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(); ?>
|
||||||
|
@ -6,8 +6,8 @@ use yii\helpers\Html;
|
|||||||
/* @var $this yii\web\View */
|
/* @var $this yii\web\View */
|
||||||
/* @var $model backend\modules\company\models\Company */
|
/* @var $model backend\modules\company\models\Company */
|
||||||
|
|
||||||
$this->title = 'Create Company';
|
$this->title = 'Создать компанию';
|
||||||
$this->params['breadcrumbs'][] = ['label' => 'Companies', 'url' => ['index']];
|
$this->params['breadcrumbs'][] = ['label' => 'Компании', 'url' => ['index']];
|
||||||
$this->params['breadcrumbs'][] = $this->title;
|
$this->params['breadcrumbs'][] = $this->title;
|
||||||
?>
|
?>
|
||||||
<div class="company-create">
|
<div class="company-create">
|
||||||
|
@ -7,7 +7,7 @@ use yii\grid\GridView;
|
|||||||
/* @var $searchModel backend\modules\company\models\CompanySearch */
|
/* @var $searchModel backend\modules\company\models\CompanySearch */
|
||||||
/* @var $dataProvider yii\data\ActiveDataProvider */
|
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||||||
|
|
||||||
$this->title = 'Companies';
|
$this->title = 'Компании';
|
||||||
$this->params['breadcrumbs'][] = $this->title;
|
$this->params['breadcrumbs'][] = $this->title;
|
||||||
?>
|
?>
|
||||||
<div class="company-index">
|
<div class="company-index">
|
||||||
@ -15,7 +15,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
|
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?= Html::a('Create Company', ['create'], ['class' => 'btn btn-success']) ?>
|
<?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?= GridView::widget([
|
<?= GridView::widget([
|
||||||
@ -24,7 +24,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
'columns' => [
|
'columns' => [
|
||||||
['class' => 'yii\grid\SerialColumn'],
|
['class' => 'yii\grid\SerialColumn'],
|
||||||
|
|
||||||
'id',
|
//'id',
|
||||||
'name',
|
'name',
|
||||||
'description:ntext',
|
'description:ntext',
|
||||||
'status_id',
|
'status_id',
|
||||||
|
@ -5,10 +5,10 @@ use yii\helpers\Html;
|
|||||||
/* @var $this yii\web\View */
|
/* @var $this yii\web\View */
|
||||||
/* @var $model backend\modules\company\models\Company */
|
/* @var $model backend\modules\company\models\Company */
|
||||||
|
|
||||||
$this->title = 'Update Company: ' . $model->name;
|
$this->title = 'Редактировать компанию: ' . $model->name;
|
||||||
$this->params['breadcrumbs'][] = ['label' => 'Companies', 'url' => ['index']];
|
$this->params['breadcrumbs'][] = ['label' => 'Компании', 'url' => ['index']];
|
||||||
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
|
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
|
||||||
$this->params['breadcrumbs'][] = 'Update';
|
$this->params['breadcrumbs'][] = 'Редактировать';
|
||||||
?>
|
?>
|
||||||
<div class="company-update">
|
<div class="company-update">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user