Commit 4bf0d870bf528b774bb1580231295a37c7167b0f
Merge branch 'master' of gitlab.artweb.com.ua:root/test_1
Showing
113 changed files
with
522 additions
and
362 deletions
Show diff stats
backend/views/accounts-vin/_form.php
@@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | @@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | ||
29 | <?= $form->field($model, 'timestamp')->textInput() ?> | 29 | <?= $form->field($model, 'timestamp')->textInput() ?> |
30 | 30 | ||
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 32 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
33 | </div> | 33 | </div> |
34 | 34 | ||
35 | <?php ActiveForm::end(); ?> | 35 | <?php ActiveForm::end(); ?> |
backend/views/accounts-vin/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\AccountsVin */ | 6 | /* @var $model common\models\AccountsVin */ |
7 | 7 | ||
8 | -$this->title = 'Update Accounts Vin: ' . ' ' . $model->account_id; | 8 | +$this->title = 'Редактировать Accounts Vin: ' . ' ' . $model->account_id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Accounts Vins', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Accounts Vins', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->account_id, 'url' => ['view', 'account_id' => $model->account_id, 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->account_id, 'url' => ['view', 'account_id' => $model->account_id, 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="accounts-vin-update"> | 13 | <div class="accounts-vin-update"> |
14 | 14 |
backend/views/accounts-vin/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'account_id' => $model->account_id, 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'account_id' => $model->account_id, 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'account_id' => $model->account_id, 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'account_id' => $model->account_id, 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/accounts/_form.php
@@ -85,7 +85,7 @@ use kartik\date\DatePicker; | @@ -85,7 +85,7 @@ use kartik\date\DatePicker; | ||
85 | 85 | ||
86 | 86 | ||
87 | <div class="form-group"> | 87 | <div class="form-group"> |
88 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 88 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
89 | </div> | 89 | </div> |
90 | 90 | ||
91 | <?php ActiveForm::end(); ?> | 91 | <?php ActiveForm::end(); ?> |
backend/views/accounts/create.php
@@ -6,8 +6,8 @@ use yii\helpers\Html; | @@ -6,8 +6,8 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\Accounts */ | 7 | /* @var $model common\models\Accounts */ |
8 | 8 | ||
9 | -$this->title = 'Добавить Accounts'; | ||
10 | -$this->params['breadcrumbs'][] = ['label' => 'Accounts', 'url' => ['index']]; | 9 | +$this->title = 'Добавить'; |
10 | +$this->params['breadcrumbs'][] = ['label' => 'Покупатели', 'url' => ['index']]; | ||
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="Accounts-create"> | 13 | <div class="Accounts-create"> |
backend/views/accounts/index.php
@@ -7,7 +7,7 @@ use yii\grid\GridView; | @@ -7,7 +7,7 @@ use yii\grid\GridView; | ||
7 | /* @var $searchModel common\models\AccountsSearch */ | 7 | /* @var $searchModel common\models\AccountsSearch */ |
8 | /* @var $dataProvider yii\data\ActiveDataProvider */ | 8 | /* @var $dataProvider yii\data\ActiveDataProvider */ |
9 | 9 | ||
10 | -$this->title = 'Accounts'; | 10 | +$this->title = 'Покупатели'; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="Accounts-index"> | 13 | <div class="Accounts-index"> |
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Добавить Accounts', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/accounts/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Accounts */ | 6 | /* @var $model common\models\Accounts */ |
7 | 7 | ||
8 | -$this->title = 'Update Accounts: ' . ' ' . $model->name; | ||
9 | -$this->params['breadcrumbs'][] = ['label' => 'Accounts', 'url' => ['index']]; | 8 | +$this->title = 'Редактировать: ' . ' ' . $model->name; |
9 | +$this->params['breadcrumbs'][] = ['label' => 'Покупатели', 'url' => ['index']]; | ||
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="Accounts-update"> | 13 | <div class="Accounts-update"> |
14 | 14 |
backend/views/accounts/view.php
@@ -7,7 +7,7 @@ use yii\widgets\DetailView; | @@ -7,7 +7,7 @@ use yii\widgets\DetailView; | ||
7 | /* @var $model common\models\Accounts */ | 7 | /* @var $model common\models\Accounts */ |
8 | 8 | ||
9 | $this->title = $model->name; | 9 | $this->title = $model->name; |
10 | -$this->params['breadcrumbs'][] = ['label' => 'Accounts', 'url' => ['index']]; | 10 | +$this->params['breadcrumbs'][] = ['label' => 'Пользователи', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="Accounts-view"> | 13 | <div class="Accounts-view"> |
@@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | - 'confirm' => 'Are you sure you want to delete this item?', | 22 | + 'confirm' => 'Вы увереннны что хотите удалить этот элемент?', |
23 | 'method' => 'post', | 23 | 'method' => 'post', |
24 | ], | 24 | ], |
25 | ]) ?> | 25 | ]) ?> |
backend/views/art-history/_form.php
@@ -19,7 +19,7 @@ use yii\widgets\ActiveForm; | @@ -19,7 +19,7 @@ use yii\widgets\ActiveForm; | ||
19 | <?= $form->field($model, 'dt')->textInput(['maxlength' => true]) ?> | 19 | <?= $form->field($model, 'dt')->textInput(['maxlength' => true]) ?> |
20 | 20 | ||
21 | <div class="form-group"> | 21 | <div class="form-group"> |
22 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 22 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
23 | </div> | 23 | </div> |
24 | 24 | ||
25 | <?php ActiveForm::end(); ?> | 25 | <?php ActiveForm::end(); ?> |
backend/views/art-history/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\ArtHistory */ | 6 | /* @var $model common\models\ArtHistory */ |
7 | 7 | ||
8 | -$this->title = 'Update Art History: ' . ' ' . $model->id; | 8 | +$this->title = 'Редактировать Art History: ' . ' ' . $model->id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Art Histories', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Art Histories', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="art-history-update"> | 13 | <div class="art-history-update"> |
14 | 14 |
backend/views/art-history/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/brands-replace/update.php
@@ -8,7 +8,7 @@ use yii\helpers\Html; | @@ -8,7 +8,7 @@ use yii\helpers\Html; | ||
8 | $this->title = 'Редактирование: ' . ' ' . $model->from_brand; | 8 | $this->title = 'Редактирование: ' . ' ' . $model->from_brand; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Brands Replaces', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Brands Replaces', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->from_brand, 'url' => ['view', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->from_brand, 'url' => ['view', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="brands-replace-update"> | 13 | <div class="brands-replace-update"> |
14 | 14 |
backend/views/brands/update.php
@@ -8,7 +8,7 @@ use yii\helpers\Html; | @@ -8,7 +8,7 @@ use yii\helpers\Html; | ||
8 | $this->title = 'Редактирование бренда: ' . ' ' . $model->BRAND; | 8 | $this->title = 'Редактирование бренда: ' . ' ' . $model->BRAND; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Brands', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Brands', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->BRAND, 'url' => ['view', 'id' => $model->BRAND]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->BRAND, 'url' => ['view', 'id' => $model->BRAND]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="brands-update"> | 13 | <div class="brands-update"> |
14 | 14 |
backend/views/brands/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->BRAND], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->BRAND], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->BRAND], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->BRAND], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/cart/_form.php
@@ -37,7 +37,7 @@ use yii\widgets\ActiveForm; | @@ -37,7 +37,7 @@ use yii\widgets\ActiveForm; | ||
37 | <?= $form->field($model, 'timestamp')->textInput() ?> | 37 | <?= $form->field($model, 'timestamp')->textInput() ?> |
38 | 38 | ||
39 | <div class="form-group"> | 39 | <div class="form-group"> |
40 | - <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 40 | + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Редактировать'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
41 | </div> | 41 | </div> |
42 | 42 | ||
43 | <?php ActiveForm::end(); ?> | 43 | <?php ActiveForm::end(); ?> |
backend/views/cat/_form.php
@@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | @@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | ||
21 | <?= $form->field($model, 'parent_id')->textInput() ?> | 21 | <?= $form->field($model, 'parent_id')->textInput() ?> |
22 | 22 | ||
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 24 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
25 | </div> | 25 | </div> |
26 | 26 | ||
27 | <?php ActiveForm::end(); ?> | 27 | <?php ActiveForm::end(); ?> |
backend/views/cat/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Cat */ | 6 | /* @var $model common\models\Cat */ |
7 | 7 | ||
8 | -$this->title = 'Update Cat: ' . ' ' . $model->id; | 8 | +$this->title = 'Редактировать Cat: ' . ' ' . $model->id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Cats', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Cats', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="cat-update"> | 13 | <div class="cat-update"> |
14 | 14 |
backend/views/cat/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/currency/update.php
@@ -8,7 +8,7 @@ use yii\helpers\Html; | @@ -8,7 +8,7 @@ use yii\helpers\Html; | ||
8 | $this->title = 'Обновить валюту: ' . ' ' . $model->name; | 8 | $this->title = 'Обновить валюту: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Currencies', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Currencies', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="currency-update"> | 13 | <div class="currency-update"> |
14 | 14 |
backend/views/currency/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/deliveries/_form.php
@@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | @@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | ||
21 | <?= $form->field($model, 'is_default')->textInput() ?> | 21 | <?= $form->field($model, 'is_default')->textInput() ?> |
22 | 22 | ||
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 24 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
25 | </div> | 25 | </div> |
26 | 26 | ||
27 | <?php ActiveForm::end(); ?> | 27 | <?php ActiveForm::end(); ?> |
backend/views/deliveries/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\Deliveries */ | 7 | /* @var $model common\models\Deliveries */ |
8 | 8 | ||
9 | -$this->title = 'Create Deliveries'; | 9 | +$this->title = 'Добавить Deliveries'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/deliveries/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Deliveries */ | 6 | /* @var $model common\models\Deliveries */ |
7 | 7 | ||
8 | -$this->title = 'Update Deliveries: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Deliveries: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="deliveries-update"> | 13 | <div class="deliveries-update"> |
14 | 14 |
backend/views/deliveries/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/details-crosses/_form.php
@@ -23,7 +23,7 @@ use yii\widgets\ActiveForm; | @@ -23,7 +23,7 @@ use yii\widgets\ActiveForm; | ||
23 | <?= $form->field($model, 'timestamp')->textInput() ?> | 23 | <?= $form->field($model, 'timestamp')->textInput() ?> |
24 | 24 | ||
25 | <div class="form-group"> | 25 | <div class="form-group"> |
26 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 26 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
27 | </div> | 27 | </div> |
28 | 28 | ||
29 | <?php ActiveForm::end(); ?> | 29 | <?php ActiveForm::end(); ?> |
backend/views/details-crosses/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\DetailsCrosses */ | 6 | /* @var $model common\models\DetailsCrosses */ |
7 | 7 | ||
8 | -$this->title = 'Update Details Crosses: ' . ' ' . $model->ARTICLE; | 8 | +$this->title = 'Редактировать Details Crosses: ' . ' ' . $model->ARTICLE; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Details Crosses', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Details Crosses', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->ARTICLE, 'url' => ['view', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->ARTICLE, 'url' => ['view', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="details-crosses-update"> | 13 | <div class="details-crosses-update"> |
14 | 14 |
backend/views/details-crosses/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE], [ | 18 | + <?= Html::a('Редактировать', ['update', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/details-description/_form.php
@@ -37,7 +37,7 @@ use yii\widgets\ActiveForm; | @@ -37,7 +37,7 @@ use yii\widgets\ActiveForm; | ||
37 | <?= $form->field($model, 'timestamp')->textInput() ?> | 37 | <?= $form->field($model, 'timestamp')->textInput() ?> |
38 | 38 | ||
39 | <div class="form-group"> | 39 | <div class="form-group"> |
40 | - <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 40 | + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Редактировать'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
41 | </div> | 41 | </div> |
42 | 42 | ||
43 | <?php ActiveForm::end(); ?> | 43 | <?php ActiveForm::end(); ?> |
backend/views/details/update.php
@@ -8,7 +8,7 @@ use yii\helpers\Html; | @@ -8,7 +8,7 @@ use yii\helpers\Html; | ||
8 | $this->title = 'Редактирование записи: ' . ' ' . $model->IMPORT_ID; | 8 | $this->title = 'Редактирование записи: ' . ' ' . $model->IMPORT_ID; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Details', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Details', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->IMPORT_ID, 'url' => ['view', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->IMPORT_ID, 'url' => ['view', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="details-update"> | 13 | <div class="details-update"> |
14 | 14 |
backend/views/details/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE], [ | 18 | + <?= Html::a('Редактировать', ['update', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/dic-statuses/_form.php
@@ -23,7 +23,7 @@ use yii\widgets\ActiveForm; | @@ -23,7 +23,7 @@ use yii\widgets\ActiveForm; | ||
23 | <?= $form->field($model, 'if_mail')->textInput() ?> | 23 | <?= $form->field($model, 'if_mail')->textInput() ?> |
24 | 24 | ||
25 | <div class="form-group"> | 25 | <div class="form-group"> |
26 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 26 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
27 | </div> | 27 | </div> |
28 | 28 | ||
29 | <?php ActiveForm::end(); ?> | 29 | <?php ActiveForm::end(); ?> |
backend/views/dic-statuses/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\DicStatuses */ | 6 | /* @var $model common\models\DicStatuses */ |
7 | 7 | ||
8 | -$this->title = 'Update Dic Statuses: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Dic Statuses: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Dic Statuses', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Dic Statuses', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="dic-statuses-update"> | 13 | <div class="dic-statuses-update"> |
14 | 14 |
backend/views/dic-statuses/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/emails/_form.php
@@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | @@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | ||
29 | <?= $form->field($model, 'who_comment')->textInput(['maxlength' => true]) ?> | 29 | <?= $form->field($model, 'who_comment')->textInput(['maxlength' => true]) ?> |
30 | 30 | ||
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 32 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
33 | </div> | 33 | </div> |
34 | 34 | ||
35 | <?php ActiveForm::end(); ?> | 35 | <?php ActiveForm::end(); ?> |
backend/views/emails/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Emails */ | 6 | /* @var $model common\models\Emails */ |
7 | 7 | ||
8 | -$this->title = 'Update Emails: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Emails: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Emails', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Emails', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="emails-update"> | 13 | <div class="emails-update"> |
14 | 14 |
backend/views/emails/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/importers/_form.php
@@ -13,9 +13,10 @@ use common\models\Currency; | @@ -13,9 +13,10 @@ use common\models\Currency; | ||
13 | 13 | ||
14 | <?php $form = ActiveForm::begin(); ?> | 14 | <?php $form = ActiveForm::begin(); ?> |
15 | <div > | 15 | <div > |
16 | - <button ng-repeat="item in buttons" ng-click="ShowMe(item)" type="button" ng-class="item.status ? 'btn btn-primary btn-lg active' : 'btn btn-default btn-lg'" class=>{{item.data}}</button> | 16 | + <div class="btn btn-primary btn-lg active main_user_info">Основные данные</div> |
17 | + <div class="btn btn-default btn-lg entity">Юридическое лицо</div> | ||
17 | </div> | 18 | </div> |
18 | - <div ng-show="buttons[0].status" > | 19 | + <div id="main_user_info" > |
19 | <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?> | 20 | <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?> |
20 | 21 | ||
21 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> | 22 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> |
@@ -35,7 +36,7 @@ use common\models\Currency; | @@ -35,7 +36,7 @@ use common\models\Currency; | ||
35 | <?= $form->field($model, 'price_date_update')->textInput() ?> | 36 | <?= $form->field($model, 'price_date_update')->textInput() ?> |
36 | 37 | ||
37 | </div> | 38 | </div> |
38 | - <div ng-show="buttons[1].status" > | 39 | + <div id="entity"> |
39 | 40 | ||
40 | <?= $form->field($model, 'PARSER_COLUMN_COUNT')->textInput() ?> | 41 | <?= $form->field($model, 'PARSER_COLUMN_COUNT')->textInput() ?> |
41 | 42 | ||
@@ -63,7 +64,7 @@ use common\models\Currency; | @@ -63,7 +64,7 @@ use common\models\Currency; | ||
63 | </div> | 64 | </div> |
64 | 65 | ||
65 | <div class="form-group"> | 66 | <div class="form-group"> |
66 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 67 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
67 | </div> | 68 | </div> |
68 | 69 | ||
69 | <?php ActiveForm::end(); ?> | 70 | <?php ActiveForm::end(); ?> |
backend/views/importers/create.php
@@ -6,8 +6,8 @@ use yii\helpers\Html; | @@ -6,8 +6,8 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model backend\models\Importers */ | 7 | /* @var $model backend\models\Importers */ |
8 | 8 | ||
9 | -$this->title = 'Добавить Importers'; | ||
10 | -$this->params['breadcrumbs'][] = ['label' => 'Importers', 'url' => ['index']]; | 9 | +$this->title = 'Добавить'; |
10 | +$this->params['breadcrumbs'][] = ['label' => 'Поставщики', 'url' => ['index']]; | ||
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="importers-create"> | 13 | <div class="importers-create"> |
backend/views/importers/index.php
@@ -7,7 +7,7 @@ use yii\grid\GridView; | @@ -7,7 +7,7 @@ use yii\grid\GridView; | ||
7 | /* @var $searchModel backend\models\ImportersSearch */ | 7 | /* @var $searchModel backend\models\ImportersSearch */ |
8 | /* @var $dataProvider yii\data\ActiveDataProvider */ | 8 | /* @var $dataProvider yii\data\ActiveDataProvider */ |
9 | 9 | ||
10 | -$this->title = 'Importers'; | 10 | +$this->title = 'Поставщики'; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="importers-index"> | 13 | <div class="importers-index"> |
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Добавить Importers', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/importers/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model backend\models\Importers */ | 6 | /* @var $model backend\models\Importers */ |
7 | 7 | ||
8 | -$this->title = 'Update Importers: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Importers', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Importers', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="importers-update"> | 13 | <div class="importers-update"> |
14 | 14 |
backend/views/importers/view.php
@@ -7,7 +7,7 @@ use yii\widgets\DetailView; | @@ -7,7 +7,7 @@ use yii\widgets\DetailView; | ||
7 | /* @var $model backend\models\Importers */ | 7 | /* @var $model backend\models\Importers */ |
8 | 8 | ||
9 | $this->title = $model->name; | 9 | $this->title = $model->name; |
10 | -$this->params['breadcrumbs'][] = ['label' => 'Importers', 'url' => ['index']]; | 10 | +$this->params['breadcrumbs'][] = ['label' => 'Поставщики', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="importers-view"> | 13 | <div class="importers-view"> |
@@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | - 'confirm' => 'Are you sure you want to delete this item?', | 22 | + 'confirm' => 'Вы увереннны что хотите удалить этот элемент?', |
23 | 'method' => 'post', | 23 | 'method' => 'post', |
24 | ], | 24 | ], |
25 | ]) ?> | 25 | ]) ?> |
backend/views/manufacturers/_form.php
@@ -53,7 +53,7 @@ use yii\widgets\ActiveForm; | @@ -53,7 +53,7 @@ use yii\widgets\ActiveForm; | ||
53 | <?= $form->field($model, 'original_url')->textInput(['maxlength' => true]) ?> | 53 | <?= $form->field($model, 'original_url')->textInput(['maxlength' => true]) ?> |
54 | 54 | ||
55 | <div class="form-group"> | 55 | <div class="form-group"> |
56 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 56 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
57 | </div> | 57 | </div> |
58 | 58 | ||
59 | <?php ActiveForm::end(); ?> | 59 | <?php ActiveForm::end(); ?> |
backend/views/manufacturers/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Manufacturers */ | 6 | /* @var $model common\models\Manufacturers */ |
7 | 7 | ||
8 | -$this->title = 'Update Manufacturers: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Manufacturers: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Manufacturers', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Manufacturers', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->MFA_ID]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->MFA_ID]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="manufacturers-update"> | 13 | <div class="manufacturers-update"> |
14 | 14 |
backend/views/manufacturers/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->MFA_ID], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->MFA_ID], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->MFA_ID], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->MFA_ID], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/margins-groups/_form.php
@@ -21,7 +21,7 @@ use yii\helpers\ArrayHelper; | @@ -21,7 +21,7 @@ use yii\helpers\ArrayHelper; | ||
21 | 21 | ||
22 | 22 | ||
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 24 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
25 | </div> | 25 | </div> |
26 | 26 | ||
27 | <?php ActiveForm::end(); ?> | 27 | <?php ActiveForm::end(); ?> |
backend/views/margins-groups/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\MarginsGroups */ | 6 | /* @var $model common\models\MarginsGroups */ |
7 | 7 | ||
8 | -$this->title = 'Update Margins Groups: ' . ' ' . $model->id; | 8 | +$this->title = 'Редактировать Margins Groups: ' . ' ' . $model->id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Margins Groups', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Margins Groups', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="margins-groups-update"> | 13 | <div class="margins-groups-update"> |
14 | 14 |
backend/views/margins-groups/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/margins-importers-import/_form.php
@@ -20,7 +20,7 @@ use \yii\helpers\ArrayHelper; | @@ -20,7 +20,7 @@ use \yii\helpers\ArrayHelper; | ||
20 | 20 | ||
21 | <?= $form->field($model, 'finish')->checkbox() ?> | 21 | <?= $form->field($model, 'finish')->checkbox() ?> |
22 | <div class="form-group"> | 22 | <div class="form-group"> |
23 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 23 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
24 | </div> | 24 | </div> |
25 | 25 | ||
26 | <?php ActiveForm::end(); ?> | 26 | <?php ActiveForm::end(); ?> |
backend/views/margins-importers-import/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\MarginsImportersImport */ | 6 | /* @var $model common\models\MarginsImportersImport */ |
7 | 7 | ||
8 | -$this->title = 'Update Margins Importers Import: ' . ' ' . $model->id; | 8 | +$this->title = 'Редактировать Margins Importers Import: ' . ' ' . $model->id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Margins Importers Imports', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Margins Importers Imports', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="margins-importers-import-update"> | 13 | <div class="margins-importers-import-update"> |
14 | 14 |
backend/views/margins-importers-import/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/margins-importers/_form.php
@@ -19,7 +19,7 @@ use yii\helpers\ArrayHelper; | @@ -19,7 +19,7 @@ use yii\helpers\ArrayHelper; | ||
19 | <?= $form->field($model, 'koef')->textInput() ?> | 19 | <?= $form->field($model, 'koef')->textInput() ?> |
20 | 20 | ||
21 | <div class="form-group"> | 21 | <div class="form-group"> |
22 | - <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 22 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
23 | </div> | 23 | </div> |
24 | 24 | ||
25 | <?php ActiveForm::end(); ?> | 25 | <?php ActiveForm::end(); ?> |
backend/views/margins-importers/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\MarginsImporters */ | 6 | /* @var $model common\models\MarginsImporters */ |
7 | 7 | ||
8 | -$this->title = 'Update Margins Importers: ' . ' ' . $model->id; | 8 | +$this->title = 'Редактировать Margins Importers: ' . ' ' . $model->id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Margins Importers', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Margins Importers', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="margins-importers-update"> | 13 | <div class="margins-importers-update"> |
14 | 14 |
backend/views/margins-importers/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/margins/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/news/_form.php
@@ -96,7 +96,7 @@ use mihaildev\elfinder\ElFinder; | @@ -96,7 +96,7 @@ use mihaildev\elfinder\ElFinder; | ||
96 | <?= $form->field($model, 'descr')->textInput(['maxlength' => true]) ?> | 96 | <?= $form->field($model, 'descr')->textInput(['maxlength' => true]) ?> |
97 | 97 | ||
98 | <div class="form-group"> | 98 | <div class="form-group"> |
99 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 99 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
100 | </div> | 100 | </div> |
101 | 101 | ||
102 | <?php ActiveForm::end(); ?> | 102 | <?php ActiveForm::end(); ?> |
backend/views/news/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\News */ | 7 | /* @var $model common\models\News */ |
8 | 8 | ||
9 | -$this->title = 'Create News'; | 9 | +$this->title = 'Добавить News'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/news/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create News', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить News', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/news/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\News */ | 6 | /* @var $model common\models\News */ |
7 | 7 | ||
8 | -$this->title = 'Update News: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать News: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="news-update"> | 13 | <div class="news-update"> |
14 | 14 |
backend/views/news/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/offices/_form.php
@@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | @@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | ||
29 | <?= $form->field($model, 'skype')->textInput(['maxlength' => true]) ?> | 29 | <?= $form->field($model, 'skype')->textInput(['maxlength' => true]) ?> |
30 | 30 | ||
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 32 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
33 | </div> | 33 | </div> |
34 | 34 | ||
35 | <?php ActiveForm::end(); ?> | 35 | <?php ActiveForm::end(); ?> |
backend/views/offices/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\Offices */ | 7 | /* @var $model common\models\Offices */ |
8 | 8 | ||
9 | -$this->title = 'Create Offices'; | 9 | +$this->title = 'Добавить Offices'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/offices/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Offices', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Offices', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/offices/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Offices */ | 6 | /* @var $model common\models\Offices */ |
7 | 7 | ||
8 | -$this->title = 'Update Offices: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Offices: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="offices-update"> | 13 | <div class="offices-update"> |
14 | 14 |
backend/views/offices/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/page/_form.php
@@ -38,7 +38,7 @@ use mihaildev\elfinder\ElFinder; | @@ -38,7 +38,7 @@ use mihaildev\elfinder\ElFinder; | ||
38 | <?= $form->field($model, 'is_active')->checkbox() ?> | 38 | <?= $form->field($model, 'is_active')->checkbox() ?> |
39 | 39 | ||
40 | <div class="form-group"> | 40 | <div class="form-group"> |
41 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 41 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
42 | </div> | 42 | </div> |
43 | 43 | ||
44 | <?php ActiveForm::end(); ?> | 44 | <?php ActiveForm::end(); ?> |
backend/views/page/update.php
@@ -5,7 +5,7 @@ use yii\helpers\Html; | @@ -5,7 +5,7 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Page */ | 6 | /* @var $model common\models\Page */ |
7 | 7 | ||
8 | -$this->title = 'Update Page: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Page: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Текстовые страницы', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Текстовые страницы', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | $this->params['breadcrumbs'][] = 'Обновить'; | 11 | $this->params['breadcrumbs'][] = 'Обновить'; |
backend/views/partners/_form.php
@@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | @@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | ||
21 | <?= $form->field($model, 'sort')->textInput() ?> | 21 | <?= $form->field($model, 'sort')->textInput() ?> |
22 | 22 | ||
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 24 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
25 | </div> | 25 | </div> |
26 | 26 | ||
27 | <?php ActiveForm::end(); ?> | 27 | <?php ActiveForm::end(); ?> |
backend/views/partners/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\Partners */ | 7 | /* @var $model common\models\Partners */ |
8 | 8 | ||
9 | -$this->title = 'Create Partners'; | 9 | +$this->title = 'Добавить Partners'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/partners/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Partners', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Partners', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/partners/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Partners */ | 6 | /* @var $model common\models\Partners */ |
7 | 7 | ||
8 | -$this->title = 'Update Partners: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Partners: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="partners-update"> | 13 | <div class="partners-update"> |
14 | 14 |
backend/views/partners/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/pay-messages/_form.php
@@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | @@ -21,7 +21,7 @@ use yii\widgets\ActiveForm; | ||
21 | <?= $form->field($model, 'user_id')->textInput() ?> | 21 | <?= $form->field($model, 'user_id')->textInput() ?> |
22 | 22 | ||
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 24 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
25 | </div> | 25 | </div> |
26 | 26 | ||
27 | <?php ActiveForm::end(); ?> | 27 | <?php ActiveForm::end(); ?> |
backend/views/pay-messages/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\PayMessages */ | 7 | /* @var $model common\models\PayMessages */ |
8 | 8 | ||
9 | -$this->title = 'Create Pay Messages'; | 9 | +$this->title = 'Добавить Pay Messages'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/pay-messages/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Pay Messages', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Pay Messages', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/pay-messages/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\PayMessages */ | 6 | /* @var $model common\models\PayMessages */ |
7 | 7 | ||
8 | -$this->title = 'Update Pay Messages: ' . ' ' . $model->id; | 8 | +$this->title = 'Редактировать Pay Messages: ' . ' ' . $model->id; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="pay-messages-update"> | 13 | <div class="pay-messages-update"> |
14 | 14 |
backend/views/pay-messages/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/price-mailing/_form.php
@@ -19,7 +19,7 @@ use yii\widgets\ActiveForm; | @@ -19,7 +19,7 @@ use yii\widgets\ActiveForm; | ||
19 | <?= $form->field($model, 'price_id')->textInput() ?> | 19 | <?= $form->field($model, 'price_id')->textInput() ?> |
20 | 20 | ||
21 | <div class="form-group"> | 21 | <div class="form-group"> |
22 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 22 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
23 | </div> | 23 | </div> |
24 | 24 | ||
25 | <?php ActiveForm::end(); ?> | 25 | <?php ActiveForm::end(); ?> |
backend/views/price-mailing/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\PriceMailing */ | 7 | /* @var $model common\models\PriceMailing */ |
8 | 8 | ||
9 | -$this->title = 'Create Price Mailing'; | 9 | +$this->title = 'Добавить Price Mailing'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/price-mailing/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Price Mailing', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Price Mailing', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/price-mailing/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\PriceMailing */ | 6 | /* @var $model common\models\PriceMailing */ |
7 | 7 | ||
8 | -$this->title = 'Update Price Mailing: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Price Mailing: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="price-mailing-update"> | 13 | <div class="price-mailing-update"> |
14 | 14 |
backend/views/price-mailing/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/settings-merchants-list/_form.php
@@ -23,7 +23,7 @@ use yii\widgets\ActiveForm; | @@ -23,7 +23,7 @@ use yii\widgets\ActiveForm; | ||
23 | <?= $form->field($model, 'mcode')->textInput(['maxlength' => true]) ?> | 23 | <?= $form->field($model, 'mcode')->textInput(['maxlength' => true]) ?> |
24 | 24 | ||
25 | <div class="form-group"> | 25 | <div class="form-group"> |
26 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 26 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
27 | </div> | 27 | </div> |
28 | 28 | ||
29 | <?php ActiveForm::end(); ?> | 29 | <?php ActiveForm::end(); ?> |
backend/views/settings-merchants-list/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\SettingsMerchantsList */ | 7 | /* @var $model common\models\SettingsMerchantsList */ |
8 | 8 | ||
9 | -$this->title = 'Create Settings Merchants List'; | 9 | +$this->title = 'Добавить Settings Merchants List'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/settings-merchants-list/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Settings Merchants List', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Settings Merchants List', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/settings-merchants-list/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\SettingsMerchantsList */ | 6 | /* @var $model common\models\SettingsMerchantsList */ |
7 | 7 | ||
8 | -$this->title = 'Update Settings Merchants List: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Settings Merchants List: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="settings-merchants-list-update"> | 13 | <div class="settings-merchants-list-update"> |
14 | 14 |
backend/views/settings-merchants-list/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/slider/_form.php
@@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | @@ -29,7 +29,7 @@ use yii\widgets\ActiveForm; | ||
29 | <?= $form->field($model, 'sort')->textInput() ?> | 29 | <?= $form->field($model, 'sort')->textInput() ?> |
30 | 30 | ||
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 32 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
33 | </div> | 33 | </div> |
34 | 34 | ||
35 | <?php ActiveForm::end(); ?> | 35 | <?php ActiveForm::end(); ?> |
backend/views/slider/create.php
@@ -6,7 +6,7 @@ use yii\helpers\Html; | @@ -6,7 +6,7 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\Slider */ | 7 | /* @var $model common\models\Slider */ |
8 | 8 | ||
9 | -$this->title = 'Create Slider'; | 9 | +$this->title = 'Добавить Slider'; |
10 | $this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']]; | 10 | $this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
backend/views/slider/index.php
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Slider', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Slider', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/slider/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Slider */ | 6 | /* @var $model common\models\Slider */ |
7 | 7 | ||
8 | -$this->title = 'Update Slider: ' . ' ' . $model->name; | 8 | +$this->title = 'Редактировать Slider: ' . ' ' . $model->name; |
9 | $this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']]; | 9 | $this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']]; |
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="slider-update"> | 13 | <div class="slider-update"> |
14 | 14 |
backend/views/slider/view.php
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | 'confirm' => 'Are you sure you want to delete this item?', | 22 | 'confirm' => 'Are you sure you want to delete this item?', |
backend/views/team-group/_form.php
@@ -15,7 +15,7 @@ use yii\widgets\ActiveForm; | @@ -15,7 +15,7 @@ use yii\widgets\ActiveForm; | ||
15 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> | 15 | <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> |
16 | 16 | ||
17 | <div class="form-group"> | 17 | <div class="form-group"> |
18 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 18 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
19 | </div> | 19 | </div> |
20 | 20 | ||
21 | <?php ActiveForm::end(); ?> | 21 | <?php ActiveForm::end(); ?> |
backend/views/team-group/create.php
@@ -6,8 +6,8 @@ use yii\helpers\Html; | @@ -6,8 +6,8 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\TeamGroup */ | 7 | /* @var $model common\models\TeamGroup */ |
8 | 8 | ||
9 | -$this->title = 'Create Team Group'; | ||
10 | -$this->params['breadcrumbs'][] = ['label' => 'Team Groups', 'url' => ['index']]; | 9 | +$this->title = 'Добавить Группы команды'; |
10 | +$this->params['breadcrumbs'][] = ['label' => 'Группы команды', 'url' => ['index']]; | ||
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="team-group-create"> | 13 | <div class="team-group-create"> |
backend/views/team-group/index.php
@@ -7,7 +7,7 @@ use yii\grid\GridView; | @@ -7,7 +7,7 @@ use yii\grid\GridView; | ||
7 | /* @var $searchModel common\models\TeamGroupSearch */ | 7 | /* @var $searchModel common\models\TeamGroupSearch */ |
8 | /* @var $dataProvider yii\data\ActiveDataProvider */ | 8 | /* @var $dataProvider yii\data\ActiveDataProvider */ |
9 | 9 | ||
10 | -$this->title = 'Team Groups'; | 10 | +$this->title = 'Группы команды'; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="team-group-index"> | 13 | <div class="team-group-index"> |
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Team Group', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить Группы команды', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/team-group/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\TeamGroup */ | 6 | /* @var $model common\models\TeamGroup */ |
7 | 7 | ||
8 | -$this->title = 'Update Team Group: ' . ' ' . $model->name; | ||
9 | -$this->params['breadcrumbs'][] = ['label' => 'Team Groups', 'url' => ['index']]; | 8 | +$this->title = 'Редактировать Группы команды: ' . ' ' . $model->name; |
9 | +$this->params['breadcrumbs'][] = ['label' => 'Группы команды', 'url' => ['index']]; | ||
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="team-group-update"> | 13 | <div class="team-group-update"> |
14 | 14 |
backend/views/team-group/view.php
@@ -7,7 +7,7 @@ use yii\widgets\DetailView; | @@ -7,7 +7,7 @@ use yii\widgets\DetailView; | ||
7 | /* @var $model common\models\TeamGroup */ | 7 | /* @var $model common\models\TeamGroup */ |
8 | 8 | ||
9 | $this->title = $model->name; | 9 | $this->title = $model->name; |
10 | -$this->params['breadcrumbs'][] = ['label' => 'Team Groups', 'url' => ['index']]; | 10 | +$this->params['breadcrumbs'][] = ['label' => 'Группы команды', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="team-group-view"> | 13 | <div class="team-group-view"> |
@@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | - 'confirm' => 'Are you sure you want to delete this item?', | 22 | + 'confirm' => 'Вы увереннны что хотите удалить этот элемент?', |
23 | 'method' => 'post', | 23 | 'method' => 'post', |
24 | ], | 24 | ], |
25 | ]) ?> | 25 | ]) ?> |
backend/views/team/_form.php
@@ -37,7 +37,7 @@ use \common\models\TeamGroup; | @@ -37,7 +37,7 @@ use \common\models\TeamGroup; | ||
37 | <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?> | 37 | <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?> |
38 | 38 | ||
39 | <div class="form-group"> | 39 | <div class="form-group"> |
40 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 40 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
41 | </div> | 41 | </div> |
42 | 42 | ||
43 | <?php ActiveForm::end(); ?> | 43 | <?php ActiveForm::end(); ?> |
backend/views/team/create.php
@@ -6,8 +6,8 @@ use yii\helpers\Html; | @@ -6,8 +6,8 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model common\models\Team */ | 7 | /* @var $model common\models\Team */ |
8 | 8 | ||
9 | -$this->title = 'Create Team'; | ||
10 | -$this->params['breadcrumbs'][] = ['label' => 'Teams', 'url' => ['index']]; | 9 | +$this->title = 'Добавить'; |
10 | +$this->params['breadcrumbs'][] = ['label' => 'Команда', 'url' => ['index']]; | ||
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="team-create"> | 13 | <div class="team-create"> |
backend/views/team/index.php
@@ -7,7 +7,7 @@ use yii\grid\GridView; | @@ -7,7 +7,7 @@ use yii\grid\GridView; | ||
7 | /* @var $searchModel common\models\TeamSearch */ | 7 | /* @var $searchModel common\models\TeamSearch */ |
8 | /* @var $dataProvider yii\data\ActiveDataProvider */ | 8 | /* @var $dataProvider yii\data\ActiveDataProvider */ |
9 | 9 | ||
10 | -$this->title = 'Teams'; | 10 | +$this->title = 'Команда'; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="team-index"> | 13 | <div class="team-index"> |
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create Team', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/team/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model common\models\Team */ | 6 | /* @var $model common\models\Team */ |
7 | 7 | ||
8 | -$this->title = 'Update Team: ' . ' ' . $model->name; | ||
9 | -$this->params['breadcrumbs'][] = ['label' => 'Teams', 'url' => ['index']]; | 8 | +$this->title = 'Редактировать: ' . ' ' . $model->name; |
9 | +$this->params['breadcrumbs'][] = ['label' => 'Команда', 'url' => ['index']]; | ||
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="team-update"> | 13 | <div class="team-update"> |
14 | 14 |
backend/views/team/view.php
@@ -7,7 +7,7 @@ use yii\widgets\DetailView; | @@ -7,7 +7,7 @@ use yii\widgets\DetailView; | ||
7 | /* @var $model common\models\Team */ | 7 | /* @var $model common\models\Team */ |
8 | 8 | ||
9 | $this->title = $model->name; | 9 | $this->title = $model->name; |
10 | -$this->params['breadcrumbs'][] = ['label' => 'Teams', 'url' => ['index']]; | 10 | +$this->params['breadcrumbs'][] = ['label' => 'Команда', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="team-view"> | 13 | <div class="team-view"> |
@@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | - 'confirm' => 'Are you sure you want to delete this item?', | 22 | + 'confirm' => 'Вы увереннны что хотите удалить этот элемент?', |
23 | 'method' => 'post', | 23 | 'method' => 'post', |
24 | ], | 24 | ], |
25 | ]) ?> | 25 | ]) ?> |
backend/views/user/_form.php
@@ -49,7 +49,7 @@ use yii\helpers\ArrayHelper; | @@ -49,7 +49,7 @@ use yii\helpers\ArrayHelper; | ||
49 | <?= $form->field($model, 'active')->textInput() ?> | 49 | <?= $form->field($model, 'active')->textInput() ?> |
50 | 50 | ||
51 | <div class="form-group"> | 51 | <div class="form-group"> |
52 | - <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | 52 | + <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
53 | </div> | 53 | </div> |
54 | 54 | ||
55 | <?php ActiveForm::end(); ?> | 55 | <?php ActiveForm::end(); ?> |
backend/views/user/create.php
@@ -6,8 +6,8 @@ use yii\helpers\Html; | @@ -6,8 +6,8 @@ use yii\helpers\Html; | ||
6 | /* @var $this yii\web\View */ | 6 | /* @var $this yii\web\View */ |
7 | /* @var $model backend\models\User */ | 7 | /* @var $model backend\models\User */ |
8 | 8 | ||
9 | -$this->title = 'Create User'; | ||
10 | -$this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']]; | 9 | +$this->title = 'Добавить'; |
10 | +$this->params['breadcrumbs'][] = ['label' => 'Администраторы', 'url' => ['index']]; | ||
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="user-create"> | 13 | <div class="user-create"> |
backend/views/user/index.php
@@ -7,7 +7,7 @@ use yii\grid\GridView; | @@ -7,7 +7,7 @@ use yii\grid\GridView; | ||
7 | /* @var $searchModel backend\models\UserSearch */ | 7 | /* @var $searchModel backend\models\UserSearch */ |
8 | /* @var $dataProvider yii\data\ActiveDataProvider */ | 8 | /* @var $dataProvider yii\data\ActiveDataProvider */ |
9 | 9 | ||
10 | -$this->title = 'Users'; | 10 | +$this->title = 'Администраторы'; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="user-index"> | 13 | <div class="user-index"> |
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | 16 | <?php // echo $this->render('_search', ['model' => $searchModel]); ?> |
17 | 17 | ||
18 | <p> | 18 | <p> |
19 | - <?= Html::a('Create User', ['create'], ['class' => 'btn btn-success']) ?> | 19 | + <?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?> |
20 | </p> | 20 | </p> |
21 | 21 | ||
22 | <?= GridView::widget([ | 22 | <?= GridView::widget([ |
backend/views/user/update.php
@@ -5,10 +5,10 @@ use yii\helpers\Html; | @@ -5,10 +5,10 @@ use yii\helpers\Html; | ||
5 | /* @var $this yii\web\View */ | 5 | /* @var $this yii\web\View */ |
6 | /* @var $model backend\models\User */ | 6 | /* @var $model backend\models\User */ |
7 | 7 | ||
8 | -$this->title = 'Update User: ' . ' ' . $model->name; | ||
9 | -$this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']]; | 8 | +$this->title = 'Редактировать: ' . ' ' . $model->name; |
9 | +$this->params['breadcrumbs'][] = ['label' => 'Администраторы', 'url' => ['index']]; | ||
10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; | 10 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
11 | -$this->params['breadcrumbs'][] = 'Update'; | 11 | +$this->params['breadcrumbs'][] = 'Редактировать'; |
12 | ?> | 12 | ?> |
13 | <div class="user-update"> | 13 | <div class="user-update"> |
14 | 14 |
backend/views/user/view.php
@@ -7,7 +7,7 @@ use yii\widgets\DetailView; | @@ -7,7 +7,7 @@ use yii\widgets\DetailView; | ||
7 | /* @var $model backend\models\User */ | 7 | /* @var $model backend\models\User */ |
8 | 8 | ||
9 | $this->title = $model->name; | 9 | $this->title = $model->name; |
10 | -$this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']]; | 10 | +$this->params['breadcrumbs'][] = ['label' => 'Администраторы', 'url' => ['index']]; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | <div class="user-view"> | 13 | <div class="user-view"> |
@@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -15,11 +15,11 @@ $this->params['breadcrumbs'][] = $this->title; | ||
15 | <h1><?= Html::encode($this->title) ?></h1> | 15 | <h1><?= Html::encode($this->title) ?></h1> |
16 | 16 | ||
17 | <p> | 17 | <p> |
18 | - <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | ||
19 | - <?= Html::a('Delete', ['delete', 'id' => $model->id], [ | 18 | + <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> |
19 | + <?= Html::a('Удалить', ['delete', 'id' => $model->id], [ | ||
20 | 'class' => 'btn btn-danger', | 20 | 'class' => 'btn btn-danger', |
21 | 'data' => [ | 21 | 'data' => [ |
22 | - 'confirm' => 'Are you sure you want to delete this item?', | 22 | + 'confirm' => 'Вы увереннны что хотите удалить этот элемент?', |
23 | 'method' => 'post', | 23 | 'method' => 'post', |
24 | ], | 24 | ], |
25 | ]) ?> | 25 | ]) ?> |
1 | +<?php | ||
2 | +namespace frontend\components; | ||
3 | +use frontend\models\SiteSearchForm; | ||
4 | +use yii\base\Widget; | ||
5 | + | ||
6 | + | ||
7 | +class SiteSearch extends Widget | ||
8 | +{ | ||
9 | + public function init(){ | ||
10 | + | ||
11 | + parent::init(); | ||
12 | + | ||
13 | + } | ||
14 | + | ||
15 | + | ||
16 | + public function run() | ||
17 | + { | ||
18 | + $model = new SiteSearchForm(); | ||
19 | + return $this->render('siteSearch', array('model'=>$model)); | ||
20 | + } | ||
21 | +} | ||
0 | \ No newline at end of file | 22 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\widgets\ActiveForm; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\helpers\Url; | ||
5 | +?> | ||
6 | + | ||
7 | +<ul class="side_list"> | ||
8 | + <li class="by_articul"><a href="">По артикулу</a> | ||
9 | + <div class="menu_search_down" style="display: none;"> | ||
10 | + <?php $form = ActiveForm::begin(['options' => ['enctype'=> 'multipart/form-data', 'class'=>'form-search'], 'action' => Url::toRoute('site/search'), 'method'=>'get']); ?> | ||
11 | + <input type="text" placeholder="Поиск" class="input_search1"> | ||
12 | + <input type="submit" class="orange_small"><img src="/images/lunette.png"></input> | ||
13 | + <a href="" class="full_search">Расширенный поиск</a> | ||
14 | + <div class="search_span1_dropdown"> | ||
15 | + | ||
16 | + <div class="registration_for_detail_search"> | ||
17 | + <div class="input"> | ||
18 | + <label for="area_search" class="area_label">Тип поиска:</label> | ||
19 | + <select class="area_search"> | ||
20 | + <option value="" disabled="" selected="">точное совпадение</option> | ||
21 | + <option value="2">Выбери меня!</option> | ||
22 | + <option value="3">Выбери меня!</option> | ||
23 | + <option value="5">Меня!</option> | ||
24 | + <option value="4">Меня</option> | ||
25 | + </select> | ||
26 | + </div> | ||
27 | + | ||
28 | + | ||
29 | + <div class="input"> | ||
30 | + <label for="number">Номер:</label> | ||
31 | + <input type="text" name="number" id="number" class="input_width"> | ||
32 | + </div> | ||
33 | + <div class="input"> | ||
34 | + <label for="crossnumber">Кросс номер:</label> | ||
35 | + <input type="text" name="crossnumber" id="crossnumber" class="input_width"> | ||
36 | + </div> | ||
37 | + <div class="input"> | ||
38 | + <label for="mark">Производитель:</label> | ||
39 | + <input type="text" name="mark" id="mark" class="input_width"> | ||
40 | + </div> | ||
41 | + <div class="input"> | ||
42 | + <label for="name">Наименование:</label> | ||
43 | + <input type="text" name="name" id="name1" class="input_width"> | ||
44 | + </div> | ||
45 | + </div> | ||
46 | + </div> | ||
47 | + <?php ActiveForm::end(); ?> | ||
48 | + </div> | ||
49 | + </li> | ||
50 | + <li><a href="">По названию</a></li> | ||
51 | + <li><a href="">По марке</a></li> | ||
52 | + <li><a href="">VIN номеру</a></li> | ||
53 | + <li style="width:130px"><a href="">Расходники для ТО</a></li> | ||
54 | + | ||
55 | +</ul> | ||
56 | + | ||
57 | + | ||
58 | +<!--<div class="all-mramor-search">--> | ||
59 | +<!-- --><?php //$form = ActiveForm::begin(['options' => ['enctype'=> 'multipart/form-data', 'class'=>'form-search'], 'action' => Url::toRoute('site/search'), 'method'=>'get']); ?> | ||
60 | +<!----> | ||
61 | +<!-- --><?//= $form->field($model, 'string',[ | ||
62 | +// 'options'=> | ||
63 | +// [ | ||
64 | +// 'tag'=>'label', | ||
65 | +// ], | ||
66 | +// 'template' => "{input}", | ||
67 | +// ])->textInput(['maxlength' => 255, 'placeholder' => 'Поиск','class'=>'mramor-search']) ?> | ||
68 | +<!----> | ||
69 | +<!-- <input class="search-text" type="submit" value="">--> | ||
70 | +<!-- --><?php //ActiveForm::end(); ?> | ||
71 | +<!--</div>--> | ||
0 | \ No newline at end of file | 72 | \ No newline at end of file |
frontend/config/main.php
@@ -60,7 +60,7 @@ return [ | @@ -60,7 +60,7 @@ return [ | ||
60 | 'events/view/<translit:[\w-]+>'=>'events/view', | 60 | 'events/view/<translit:[\w-]+>'=>'events/view', |
61 | 'standard-services/view/<translit:[\w-]+>'=>'standard-services/view', | 61 | 'standard-services/view/<translit:[\w-]+>'=>'standard-services/view', |
62 | 'f/<filter:([\w\=\;\/\-\_]+)?>'=>'stone/ajax-filter', | 62 | 'f/<filter:([\w\=\;\/\-\_]+)?>'=>'stone/ajax-filter', |
63 | - 'goods/<name:.+>'=>'goods/index', // переделать | 63 | + 'goods/<name:[\w]+>/<id:[\w]+>'=>'goods/index', // переделать |
64 | 'search'=>'site/search', | 64 | 'search'=>'site/search', |
65 | 'contact'=>'site/contact', | 65 | 'contact'=>'site/contact', |
66 | 'about'=>'site/about', | 66 | 'about'=>'site/about', |
frontend/controllers/GoodsController.php
@@ -17,8 +17,14 @@ use yii\web\Controller; | @@ -17,8 +17,14 @@ use yii\web\Controller; | ||
17 | class GoodsController extends Controller { | 17 | class GoodsController extends Controller { |
18 | public $layout = '/internal'; | 18 | public $layout = '/internal'; |
19 | 19 | ||
20 | - public function actionIndex($name = '') | 20 | + public function actionIndex($name, $id) |
21 | { | 21 | { |
22 | + | ||
23 | + print('name = '.$name."<br>"); | ||
24 | + print('id = '. $id); | ||
25 | + die(); | ||
26 | + | ||
27 | + | ||
22 | $arr = ['GoodsViewSearch' => ['name' => '0092S40090', | 28 | $arr = ['GoodsViewSearch' => ['name' => '0092S40090', |
23 | 'brand' => 'BOSCH']]; | 29 | 'brand' => 'BOSCH']]; |
24 | 30 |
frontend/controllers/SiteController.php
@@ -5,22 +5,22 @@ use common\models\Accounts; | @@ -5,22 +5,22 @@ use common\models\Accounts; | ||
5 | use frontend\models\AccountsForm; | 5 | use frontend\models\AccountsForm; |
6 | use common\models\News; | 6 | use common\models\News; |
7 | use common\models\Slider; | 7 | use common\models\Slider; |
8 | -use common\models\Team; | 8 | + |
9 | use common\models\TeamGroup; | 9 | use common\models\TeamGroup; |
10 | use Yii; | 10 | use Yii; |
11 | use common\models\UserLoginForm; | 11 | use common\models\UserLoginForm; |
12 | use frontend\models\PasswordResetRequestForm; | 12 | use frontend\models\PasswordResetRequestForm; |
13 | use frontend\models\ResetPasswordForm; | 13 | use frontend\models\ResetPasswordForm; |
14 | -use frontend\models\SignupForm; | ||
15 | -use frontend\models\ContactForm; | 14 | + |
16 | use yii\base\InvalidParamException; | 15 | use yii\base\InvalidParamException; |
17 | use yii\web\BadRequestHttpException; | 16 | use yii\web\BadRequestHttpException; |
18 | use yii\web\Controller; | 17 | use yii\web\Controller; |
19 | 18 | ||
20 | -use yii\filters\VerbFilter; | ||
21 | -use yii\filters\AccessControl; | ||
22 | use common\models\Callback; | 19 | use common\models\Callback; |
23 | use common\components\MailWidget; | 20 | use common\components\MailWidget; |
21 | +use frontend\models\SiteSearchForm; | ||
22 | +use yii\db\Query; | ||
23 | +use yii\data\ArrayDataProvider; | ||
24 | /** | 24 | /** |
25 | * Site controller | 25 | * Site controller |
26 | */ | 26 | */ |
@@ -45,6 +45,41 @@ class SiteController extends Controller | @@ -45,6 +45,41 @@ class SiteController extends Controller | ||
45 | ]; | 45 | ]; |
46 | } | 46 | } |
47 | 47 | ||
48 | + public function actionSearch() | ||
49 | + { | ||
50 | + $this->layout = '/internal'; | ||
51 | + $search = new SiteSearchForm(); | ||
52 | + if ($search->load(Yii::$app->request->get()) && $search->validate()) { | ||
53 | +// $query1 = (new Query()) | ||
54 | +// ->select('name, image, description, translit ') | ||
55 | +// ->addSelect(["CONCAT('stone/view') AS url"]) | ||
56 | +// ->where(['like','name',$search->string]) | ||
57 | +// ->from('{{%stone}}'); | ||
58 | +// | ||
59 | +// $query2 = (new Query()) | ||
60 | +// ->select('name, image, description, translit ') | ||
61 | +// ->addSelect(["CONCAT('goods/one-item') AS url"]) | ||
62 | +// ->where(['like','name',$search->string]) | ||
63 | +// ->from('{{%goods}}'); | ||
64 | +// | ||
65 | +// $dataProvider = new ArrayDataProvider([ | ||
66 | +// 'allModels' => $query1->union($query2)->all(), | ||
67 | +// 'pagination' => [ | ||
68 | +// 'pageSize' => 6, | ||
69 | +// ], | ||
70 | +// | ||
71 | +// ]); | ||
72 | + $dataProvider = array(); | ||
73 | + | ||
74 | + return $this->render('search', [ | ||
75 | + | ||
76 | + 'dataProvider' => $dataProvider, | ||
77 | + ]); | ||
78 | + | ||
79 | + | ||
80 | + } | ||
81 | + } | ||
82 | + | ||
48 | /** | 83 | /** |
49 | * Displays homepage. | 84 | * Displays homepage. |
50 | * | 85 | * |
1 | +<?php | ||
2 | +namespace frontend\models; | ||
3 | + | ||
4 | +use yii\base\Model; | ||
5 | +use Yii; | ||
6 | + | ||
7 | +class SiteSearchForm extends Model | ||
8 | +{ | ||
9 | + | ||
10 | + public $string; | ||
11 | + | ||
12 | + | ||
13 | + public function rules() | ||
14 | + { | ||
15 | + return [ | ||
16 | + [['string'], 'required'], | ||
17 | + ]; | ||
18 | + } | ||
19 | + | ||
20 | + public function attributeLabels() | ||
21 | + { | ||
22 | + return [ | ||
23 | + 'string', | ||
24 | + ]; | ||
25 | + } | ||
26 | +} | ||
0 | \ No newline at end of file | 27 | \ No newline at end of file |
frontend/web/js/select.js
@@ -1097,178 +1097,178 @@ $('.steel').selectize({ | @@ -1097,178 +1097,178 @@ $('.steel').selectize({ | ||
1097 | return false; | 1097 | return false; |
1098 | } | 1098 | } |
1099 | }); | 1099 | }); |
1100 | - | ||
1101 | - | ||
1102 | -$('#number').selectize({ | ||
1103 | - persist: false, | ||
1104 | - maxItems: 1, | ||
1105 | - valueField: 'vinvin', | ||
1106 | - searchField: ['vinvin','vin_number'], | ||
1107 | - options: [ | ||
1108 | - {vinvin:'12345', vin_number:'12345'}, | ||
1109 | - {vinvin:'34567',vin_number:'34567'}, | ||
1110 | - {vinvin:'75434',vin_number:'75434'} | ||
1111 | - ], | ||
1112 | - render: { | ||
1113 | - item: function(item, escape) { | ||
1114 | - return '<div>' + | ||
1115 | - (item.vinvin ? '<span class="vinvin">' + escape(item.vinvin) + '</span>' : '')+ | ||
1116 | - (item.vin_number ? '<span class="vin_number">' + escape(item.vin_number) + '</span>' : '') + | ||
1117 | - '</div>'; | ||
1118 | - }, | ||
1119 | - option: function(item, escape) { | ||
1120 | - var label = item.vinvin || item.vin_number; | ||
1121 | - var caption = item.vin ? item.vin_number : null; | ||
1122 | - return '<div>' + | ||
1123 | - '<span class="vin_value">' + escape(label) + '</span>' + | ||
1124 | - (caption ? '<span class="caption">' + escape(caption) + '</span>' : '') + | ||
1125 | - '</div>'; | ||
1126 | - } | ||
1127 | - }, | ||
1128 | - createFilter: function(input) { | ||
1129 | - var match, regex; | ||
1130 | - | ||
1131 | - // email@address.com | ||
1132 | - regex = new RegExp('^' + REGEX_EMAIL + '$', 'i'); | ||
1133 | - match = input.match(regex); | ||
1134 | - if (match) return !this.options.hasOwnProperty(match[0]); | ||
1135 | - | ||
1136 | - // name <email@address.com> | ||
1137 | - regex = new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i'); | ||
1138 | - match = input.match(regex); | ||
1139 | - if (match) return !this.options.hasOwnProperty(match[2]); | ||
1140 | - | ||
1141 | - return false; | ||
1142 | - }, | ||
1143 | - create: function(input) { | ||
1144 | - if ((new RegExp('^' + REGEX_EMAIL + '$', 'i')).test(input)) { | ||
1145 | - return {email: input}; | ||
1146 | - } | ||
1147 | - var match = input.match(new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i')); | ||
1148 | - if (match) { | ||
1149 | - return { | ||
1150 | - vin : match[1], | ||
1151 | - vin_number : $.trim(match[1]) | ||
1152 | - }; | ||
1153 | - } | ||
1154 | - alert('Invalid email address.'); | ||
1155 | - return false; | ||
1156 | - } | ||
1157 | -}); | ||
1158 | - | ||
1159 | -$('.input_search').selectize({ | ||
1160 | - persist: false, | ||
1161 | - maxItems: 1, | ||
1162 | - valueField: 'vinvin', | ||
1163 | - searchField: ['vinvin','vin_number'], | ||
1164 | - options: [ | ||
1165 | - {vinvin:'12345', vin_number:'12345'}, | ||
1166 | - {vinvin:'34567',vin_number:'34567'}, | ||
1167 | - {vinvin:'75434',vin_number:'75434'} | ||
1168 | - ], | ||
1169 | - render: { | ||
1170 | - item: function(item, escape) { | ||
1171 | - return '<div>' + | ||
1172 | - (item.vinvin ? '<span class="vinvin">' + escape(item.vinvin) + '</span>' : '')+ | ||
1173 | - (item.vin_number ? '<span class="vin_number">' + escape(item.vin_number) + '</span>' : '') + | ||
1174 | - '</div>'; | ||
1175 | - }, | ||
1176 | - option: function(item, escape) { | ||
1177 | - var label = item.vinvin || item.vin_number; | ||
1178 | - var caption = item.vin ? item.vin_number : null; | ||
1179 | - return '<div>' + | ||
1180 | - '<span class="vin_value">' + escape(label) + '</span>' + | ||
1181 | - (caption ? '<span class="caption">' + escape(caption) + '</span>' : '') + | ||
1182 | - '</div>'; | ||
1183 | - } | ||
1184 | - }, | ||
1185 | - createFilter: function(input) { | ||
1186 | - var match, regex; | ||
1187 | - | ||
1188 | - // email@address.com | ||
1189 | - regex = new RegExp('^' + REGEX_EMAIL + '$', 'i'); | ||
1190 | - match = input.match(regex); | ||
1191 | - if (match) return !this.options.hasOwnProperty(match[0]); | ||
1192 | - | ||
1193 | - // name <email@address.com> | ||
1194 | - regex = new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i'); | ||
1195 | - match = input.match(regex); | ||
1196 | - if (match) return !this.options.hasOwnProperty(match[2]); | ||
1197 | - | ||
1198 | - return false; | ||
1199 | - }, | ||
1200 | - create: function(input) { | ||
1201 | - if ((new RegExp('^' + REGEX_EMAIL + '$', 'i')).test(input)) { | ||
1202 | - return {email: input}; | ||
1203 | - } | ||
1204 | - var match = input.match(new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i')); | ||
1205 | - if (match) { | ||
1206 | - return { | ||
1207 | - vin : match[1], | ||
1208 | - vin_number : $.trim(match[1]) | ||
1209 | - }; | ||
1210 | - } | ||
1211 | - alert('Invalid email address.'); | ||
1212 | - return false; | ||
1213 | - } | ||
1214 | -}); | ||
1215 | - | ||
1216 | -$('.input_search1').selectize({ | ||
1217 | - persist: false, | ||
1218 | - maxItems: 1, | ||
1219 | - valueField: 'vinvin', | ||
1220 | - searchField: ['vinvin','vin_number'], | ||
1221 | - options: [ | ||
1222 | - {vinvin:'12345', vin_number:'12345'}, | ||
1223 | - {vinvin:'34567',vin_number:'34567'}, | ||
1224 | - {vinvin:'75434',vin_number:'75434'} | ||
1225 | - ], | ||
1226 | - render: { | ||
1227 | - item: function(item, escape) { | ||
1228 | - return '<div>' + | ||
1229 | - (item.vinvin ? '<span class="vinvin">' + escape(item.vinvin) + '</span>' : '')+ | ||
1230 | - (item.vin_number ? '<span class="vin_number">' + escape(item.vin_number) + '</span>' : '') + | ||
1231 | - '</div>'; | ||
1232 | - }, | ||
1233 | - option: function(item, escape) { | ||
1234 | - var label = item.vinvin || item.vin_number; | ||
1235 | - var caption = item.vin ? item.vin_number : null; | ||
1236 | - return '<div>' + | ||
1237 | - '<span class="vin_value">' + escape(label) + '</span>' + | ||
1238 | - (caption ? '<span class="caption">' + escape(caption) + '</span>' : '') + | ||
1239 | - '</div>'; | ||
1240 | - } | ||
1241 | - }, | ||
1242 | - createFilter: function(input) { | ||
1243 | - var match, regex; | ||
1244 | - | ||
1245 | - // email@address.com | ||
1246 | - regex = new RegExp('^' + REGEX_EMAIL + '$', 'i'); | ||
1247 | - match = input.match(regex); | ||
1248 | - if (match) return !this.options.hasOwnProperty(match[0]); | ||
1249 | - | ||
1250 | - // name <email@address.com> | ||
1251 | - regex = new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i'); | ||
1252 | - match = input.match(regex); | ||
1253 | - if (match) return !this.options.hasOwnProperty(match[2]); | ||
1254 | - | ||
1255 | - return false; | ||
1256 | - }, | ||
1257 | - create: function(input) { | ||
1258 | - if ((new RegExp('^' + REGEX_EMAIL + '$', 'i')).test(input)) { | ||
1259 | - return {email: input}; | ||
1260 | - } | ||
1261 | - var match = input.match(new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i')); | ||
1262 | - if (match) { | ||
1263 | - return { | ||
1264 | - vin : match[1], | ||
1265 | - vin_number : $.trim(match[1]) | ||
1266 | - }; | ||
1267 | - } | ||
1268 | - alert('Invalid email address.'); | ||
1269 | - return false; | ||
1270 | - } | ||
1271 | -}); | 1100 | +// |
1101 | +// | ||
1102 | +//$('#number').selectize({ | ||
1103 | +// persist: false, | ||
1104 | +// maxItems: 1, | ||
1105 | +// valueField: 'vinvin', | ||
1106 | +// searchField: ['vinvin','vin_number'], | ||
1107 | +// options: [ | ||
1108 | +// {vinvin:'12345', vin_number:'12345'}, | ||
1109 | +// {vinvin:'34567',vin_number:'34567'}, | ||
1110 | +// {vinvin:'75434',vin_number:'75434'} | ||
1111 | +// ], | ||
1112 | +// render: { | ||
1113 | +// item: function(item, escape) { | ||
1114 | +// return '<div>' + | ||
1115 | +// (item.vinvin ? '<span class="vinvin">' + escape(item.vinvin) + '</span>' : '')+ | ||
1116 | +// (item.vin_number ? '<span class="vin_number">' + escape(item.vin_number) + '</span>' : '') + | ||
1117 | +// '</div>'; | ||
1118 | +// }, | ||
1119 | +// option: function(item, escape) { | ||
1120 | +// var label = item.vinvin || item.vin_number; | ||
1121 | +// var caption = item.vin ? item.vin_number : null; | ||
1122 | +// return '<div>' + | ||
1123 | +// '<span class="vin_value">' + escape(label) + '</span>' + | ||
1124 | +// (caption ? '<span class="caption">' + escape(caption) + '</span>' : '') + | ||
1125 | +// '</div>'; | ||
1126 | +// } | ||
1127 | +// }, | ||
1128 | +// createFilter: function(input) { | ||
1129 | +// var match, regex; | ||
1130 | +// | ||
1131 | +// // email@address.com | ||
1132 | +// regex = new RegExp('^' + REGEX_EMAIL + '$', 'i'); | ||
1133 | +// match = input.match(regex); | ||
1134 | +// if (match) return !this.options.hasOwnProperty(match[0]); | ||
1135 | +// | ||
1136 | +// // name <email@address.com> | ||
1137 | +// regex = new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i'); | ||
1138 | +// match = input.match(regex); | ||
1139 | +// if (match) return !this.options.hasOwnProperty(match[2]); | ||
1140 | +// | ||
1141 | +// return false; | ||
1142 | +// }, | ||
1143 | +// create: function(input) { | ||
1144 | +// if ((new RegExp('^' + REGEX_EMAIL + '$', 'i')).test(input)) { | ||
1145 | +// return {email: input}; | ||
1146 | +// } | ||
1147 | +// var match = input.match(new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i')); | ||
1148 | +// if (match) { | ||
1149 | +// return { | ||
1150 | +// vin : match[1], | ||
1151 | +// vin_number : $.trim(match[1]) | ||
1152 | +// }; | ||
1153 | +// } | ||
1154 | +// alert('Invalid email address.'); | ||
1155 | +// return false; | ||
1156 | +// } | ||
1157 | +//}); | ||
1158 | + | ||
1159 | +//$('.input_search').selectize({ | ||
1160 | +// persist: false, | ||
1161 | +// maxItems: 1, | ||
1162 | +// valueField: 'vinvin', | ||
1163 | +// searchField: ['vinvin','vin_number'], | ||
1164 | +// options: [ | ||
1165 | +// {vinvin:'12345', vin_number:'12345'}, | ||
1166 | +// {vinvin:'34567',vin_number:'34567'}, | ||
1167 | +// {vinvin:'75434',vin_number:'75434'} | ||
1168 | +// ], | ||
1169 | +// render: { | ||
1170 | +// item: function(item, escape) { | ||
1171 | +// return '<div>' + | ||
1172 | +// (item.vinvin ? '<span class="vinvin">' + escape(item.vinvin) + '</span>' : '')+ | ||
1173 | +// (item.vin_number ? '<span class="vin_number">' + escape(item.vin_number) + '</span>' : '') + | ||
1174 | +// '</div>'; | ||
1175 | +// }, | ||
1176 | +// option: function(item, escape) { | ||
1177 | +// var label = item.vinvin || item.vin_number; | ||
1178 | +// var caption = item.vin ? item.vin_number : null; | ||
1179 | +// return '<div>' + | ||
1180 | +// '<span class="vin_value">' + escape(label) + '</span>' + | ||
1181 | +// (caption ? '<span class="caption">' + escape(caption) + '</span>' : '') + | ||
1182 | +// '</div>'; | ||
1183 | +// } | ||
1184 | +// }, | ||
1185 | +// createFilter: function(input) { | ||
1186 | +// var match, regex; | ||
1187 | +// | ||
1188 | +// // email@address.com | ||
1189 | +// regex = new RegExp('^' + REGEX_EMAIL + '$', 'i'); | ||
1190 | +// match = input.match(regex); | ||
1191 | +// if (match) return !this.options.hasOwnProperty(match[0]); | ||
1192 | +// | ||
1193 | +// // name <email@address.com> | ||
1194 | +// regex = new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i'); | ||
1195 | +// match = input.match(regex); | ||
1196 | +// if (match) return !this.options.hasOwnProperty(match[2]); | ||
1197 | +// | ||
1198 | +// return false; | ||
1199 | +// }, | ||
1200 | +// create: function(input) { | ||
1201 | +// if ((new RegExp('^' + REGEX_EMAIL + '$', 'i')).test(input)) { | ||
1202 | +// return {email: input}; | ||
1203 | +// } | ||
1204 | +// var match = input.match(new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i')); | ||
1205 | +// if (match) { | ||
1206 | +// return { | ||
1207 | +// vin : match[1], | ||
1208 | +// vin_number : $.trim(match[1]) | ||
1209 | +// }; | ||
1210 | +// } | ||
1211 | +// alert('Invalid email address.'); | ||
1212 | +// return false; | ||
1213 | +// } | ||
1214 | +//}); | ||
1215 | +// | ||
1216 | +//$('.input_search1').selectize({ | ||
1217 | +// persist: false, | ||
1218 | +// maxItems: 1, | ||
1219 | +// valueField: 'vinvin', | ||
1220 | +// searchField: ['vinvin','vin_number'], | ||
1221 | +// options: [ | ||
1222 | +// {vinvin:'12345', vin_number:'12345'}, | ||
1223 | +// {vinvin:'34567',vin_number:'34567'}, | ||
1224 | +// {vinvin:'75434',vin_number:'75434'} | ||
1225 | +// ], | ||
1226 | +// render: { | ||
1227 | +// item: function(item, escape) { | ||
1228 | +// return '<div>' + | ||
1229 | +// (item.vinvin ? '<span class="vinvin">' + escape(item.vinvin) + '</span>' : '')+ | ||
1230 | +// (item.vin_number ? '<span class="vin_number">' + escape(item.vin_number) + '</span>' : '') + | ||
1231 | +// '</div>'; | ||
1232 | +// }, | ||
1233 | +// option: function(item, escape) { | ||
1234 | +// var label = item.vinvin || item.vin_number; | ||
1235 | +// var caption = item.vin ? item.vin_number : null; | ||
1236 | +// return '<div>' + | ||
1237 | +// '<span class="vin_value">' + escape(label) + '</span>' + | ||
1238 | +// (caption ? '<span class="caption">' + escape(caption) + '</span>' : '') + | ||
1239 | +// '</div>'; | ||
1240 | +// } | ||
1241 | +// }, | ||
1242 | +// createFilter: function(input) { | ||
1243 | +// var match, regex; | ||
1244 | +// | ||
1245 | +// // email@address.com | ||
1246 | +// regex = new RegExp('^' + REGEX_EMAIL + '$', 'i'); | ||
1247 | +// match = input.match(regex); | ||
1248 | +// if (match) return !this.options.hasOwnProperty(match[0]); | ||
1249 | +// | ||
1250 | +// // name <email@address.com> | ||
1251 | +// regex = new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i'); | ||
1252 | +// match = input.match(regex); | ||
1253 | +// if (match) return !this.options.hasOwnProperty(match[2]); | ||
1254 | +// | ||
1255 | +// return false; | ||
1256 | +// }, | ||
1257 | +// create: function(input) { | ||
1258 | +// if ((new RegExp('^' + REGEX_EMAIL + '$', 'i')).test(input)) { | ||
1259 | +// return {email: input}; | ||
1260 | +// } | ||
1261 | +// var match = input.match(new RegExp('^([^<]*)\<' + REGEX_EMAIL + '\>$', 'i')); | ||
1262 | +// if (match) { | ||
1263 | +// return { | ||
1264 | +// vin : match[1], | ||
1265 | +// vin_number : $.trim(match[1]) | ||
1266 | +// }; | ||
1267 | +// } | ||
1268 | +// alert('Invalid email address.'); | ||
1269 | +// return false; | ||
1270 | +// } | ||
1271 | +//}); | ||
1272 | 1272 | ||
1273 | $('#number1').selectize({ | 1273 | $('#number1').selectize({ |
1274 | persist: false, | 1274 | persist: false, |