From: vladfo Date: Tue, 17 Sep 2024 14:41:25 +0000 (+0300) Subject: Изменил дизайн X-Git-Tag: 1.5~5^2~14 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=dc1f9f56d6dafec97be2befa6ce5060bad978524;p=erp24_rep%2Fyii-erp24%2F.git Изменил дизайн --- diff --git a/erp24/views/task/four-columns.php b/erp24/views/task/four-columns.php index ccea47c5..a8124238 100755 --- a/erp24/views/task/four-columns.php +++ b/erp24/views/task/four-columns.php @@ -22,13 +22,56 @@ $this->registerJsFile('/js/task/four-columns.js', ['position' => \yii\web\View:: ?> +user->identity->name; // или другой метод получения имени пользователя + +// Проверяем примененные фильтры +$appliedFilters = []; +if ($filterModel->taskFilter !== '0') { + // $appliedFilters[] = 'Фильтр задач: ' . $filterModel->taskFilter; +} +if ($filterModel->searchText) { + $appliedFilters[] = 'Поиск: ' . Html::encode($filterModel->searchText); +} +if ($filterModel->updatedBy !== '0') { + $appliedFilters[] = 'Обновил: ' . $filterModel->updatedBy; +} +if ($filterModel->createdBy !== '0') { + $appliedFilters[] = 'Создал: ' . $filterModel->createdBy; +} +if ($filterModel->created_at_from || $filterModel->created_at_to) { + $appliedFilters[] = 'Дата создания: с ' . $filterModel->created_at_from . ' по ' . $filterModel->created_at_to; +} +if ($filterModel->deadline_from || $filterModel->deadline_to) { + $appliedFilters[] = 'Дедлайн: с ' . $filterModel->deadline_from . ' по ' . $filterModel->deadline_to; +} +if ($filterModel->company_function_id !== '0') { + $appliedFilters[] = 'Функция компании: ' . $companyFunctions[$filterModel->company_function_id]; +} +?> +

Доска задач

+

Всего задач:

+ +
- -

Всего задач:

+

Пользователь:

+ + + +

Примененные фильтры:

+
    + +
  • + +
+ +

Фильтры не применены

+
@@ -36,17 +79,25 @@ $this->registerJsFile('/js/task/four-columns.js', ['position' => \yii\web\View::
- -
-
-
- - -
-
-
- 'filter-form']); ?> + + '0', + 'searchText' => null, + 'updatedBy' => '0', + 'createdBy' => '0', + 'created_at_from' => date("d.m.Y", strtotime("-365 day", time())), + 'created_at_to' => date("d.m.Y"), + 'deadline_from' => date("d.m.Y", strtotime("-365 day", time())), + 'deadline_to' => date("d.m.Y", strtotime("+365 day", time())), + 'company_function_id' => '0', + 'entity_type' => null, + 'entity_id' => null +]; + +$form = ActiveForm::begin(['id' => 'filter-form']); ?> field($filterModel, 'taskFilter')->radioList( ['0' => 'Мои', '1' => 'На контроле', '2' => 'Участвую', '3' => 'Просматриваю', '4' => 'Неразобранные'], @@ -83,8 +134,12 @@ $this->registerJsFile('/js/task/four-columns.js', ['position' => \yii\web\View::
-
- +
+ +
+ + +
@@ -92,224 +147,200 @@ $this->registerJsFile('/js/task/four-columns.js', ['position' => \yii\web\View::