From 913a67d4003314ab8ccce9947e174fed4e57f64e Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Mon, 27 Dec 2021 14:38:07 +1000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controllers/ProfileController.php | 5 --- .../skillparts/system/views/profile/index.php | 32 ------------------- .../skillparts/system/web/assets/.gitignore | 2 ++ 3 files changed, 2 insertions(+), 37 deletions(-) create mode 100644 mirzaev/skillparts/system/web/assets/.gitignore diff --git a/mirzaev/skillparts/system/controllers/ProfileController.php b/mirzaev/skillparts/system/controllers/ProfileController.php index 5eb89ac..73dbe76 100644 --- a/mirzaev/skillparts/system/controllers/ProfileController.php +++ b/mirzaev/skillparts/system/controllers/ProfileController.php @@ -140,7 +140,6 @@ class ProfileController extends Controller } // Инициализация - $delivery_from_terminal_list = $model->genListTerminalsFrom(); $delivery_to_terminal_list = $model->genListTerminalsTo(); $import_oem_list = $model->genListOem(Supply::searchByAccount(select: 'supply.onec["ЗначенияСвойств"]')); $array_unshift_in_start = function (array &$array, string|int $key, mixed $value) { @@ -161,12 +160,10 @@ class ProfileController extends Controller }; // Сортировка по алфавиту - asort($delivery_from_terminal_list); asort($delivery_to_terminal_list); asort($import_oem_list); // Перемещение в начало массива значения "Выберите" - $array_write_default_value($delivery_from_terminal_list); $array_write_default_value($delivery_to_terminal_list); $array_write_default_value($import_oem_list); @@ -179,7 +176,6 @@ class ProfileController extends Controller 'main' => $this->renderPartial('index', compact( 'model', 'sidebar', - 'delivery_from_terminal_list', 'delivery_to_terminal_list', 'import_oem_list', 'panel' @@ -192,7 +188,6 @@ class ProfileController extends Controller return $this->render('index', compact( 'model', 'sidebar', - 'delivery_from_terminal_list', 'delivery_to_terminal_list', 'import_oem_list', 'panel' diff --git a/mirzaev/skillparts/system/views/profile/index.php b/mirzaev/skillparts/system/views/profile/index.php index 5023bb2..76628b9 100644 --- a/mirzaev/skillparts/system/views/profile/index.php +++ b/mirzaev/skillparts/system/views/profile/index.php @@ -30,7 +30,6 @@ if ( user->isGuest) : ?> user->identity->agnt) : ?> - @@ -69,37 +68,6 @@ if ( user->identity->agnt) : ?> - /> -
-
Доставка
- - 'form_profile_settings', - 'action' => false, - 'fieldConfig' => [ - 'template' => '{label}{input}', - ], - 'options' => [ - 'onsubmit' => 'return false;' - ] - ]); - - // Инициализация - $model ?? $model = yii::$app->user->identity; - $delivery_from_terminal_list ?? $delivery_from_terminal_list = ['Нет данных']; - ?> - - field($model, 'opts[delivery_from_terminal]', ['options' => ['class' => "mb-1"]]) - ->dropDownList($delivery_from_terminal_list, [ - 'onChange' => 'page_profile_settings(this.parentElement.parentElement, \'profile_panel_settings_company\')', - 'disabled' => count($delivery_from_terminal_list) <= 1 - ])->label('Терминал'); ?> - - Выберите терминал отправителя для рассчёта доставки - - -
- />
Параметры 1C
diff --git a/mirzaev/skillparts/system/web/assets/.gitignore b/mirzaev/skillparts/system/web/assets/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/mirzaev/skillparts/system/web/assets/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore