From dfad5f76c0ec4bfc240dc6f7df79b6e5786d445f Mon Sep 17 00:00:00 2001 From: tonis ormisson Date: Tue, 10 Jan 2023 16:06:12 +0200 Subject: [PATCH 01/10] move views --- .github/workflows/php.yml | 2 +- {src/User/resources => resources}/i18n/ca/usuario.php | 0 {src/User/resources => resources}/i18n/config.php | 0 {src/User/resources => resources}/i18n/da/usuario.php | 0 {src/User/resources => resources}/i18n/de-DU/usuario.php | 0 {src/User/resources => resources}/i18n/de/usuario.php | 0 {src/User/resources => resources}/i18n/es/usuario.php | 0 {src/User/resources => resources}/i18n/et/usuario.php | 0 {src/User/resources => resources}/i18n/fa-IR/usuario.php | 0 {src/User/resources => resources}/i18n/fi/usuario.php | 0 {src/User/resources => resources}/i18n/fr/usuario.php | 0 {src/User/resources => resources}/i18n/hr/usuario.php | 0 {src/User/resources => resources}/i18n/hu/usuario.php | 0 {src/User/resources => resources}/i18n/it/usuario.php | 0 {src/User/resources => resources}/i18n/kk/usuario.php | 0 {src/User/resources => resources}/i18n/lt/usuario.php | 0 {src/User/resources => resources}/i18n/nl/usuario.php | 0 {src/User/resources => resources}/i18n/pl/usuario.php | 0 {src/User/resources => resources}/i18n/pt-BR/usuario.php | 0 {src/User/resources => resources}/i18n/pt-PT/usuario.php | 0 {src/User/resources => resources}/i18n/ro/usuario.php | 0 {src/User/resources => resources}/i18n/ru/usuario.php | 0 {src/User/resources => resources}/i18n/sk/usuario.php | 0 {src/User/resources => resources}/i18n/th/usuario.php | 0 {src/User/resources => resources}/i18n/tr-TR/usuario.php | 0 {src/User/resources => resources}/i18n/uk/usuario.php | 0 {src/User/resources => resources}/i18n/vi/usuario.php | 0 {src/User/resources => resources}/i18n/zh-CN/usuario.php | 0 {src/User/resources => resources}/views/admin/_account.php | 2 +- .../User/resources => resources}/views/admin/_assignments.php | 2 +- {src/User/resources => resources}/views/admin/_info.php | 0 {src/User/resources => resources}/views/admin/_profile.php | 2 +- .../resources => resources}/views/admin/_session-history.php | 0 {src/User/resources => resources}/views/admin/_user.php | 0 {src/User/resources => resources}/views/admin/create.php | 4 ++-- {src/User/resources => resources}/views/admin/index.php | 0 {src/User/resources => resources}/views/admin/update.php | 2 +- {src/User/resources => resources}/views/mail/confirmation.php | 0 {src/User/resources => resources}/views/mail/layouts/html.php | 0 {src/User/resources => resources}/views/mail/layouts/text.php | 0 .../resources => resources}/views/mail/reconfirmation.php | 0 {src/User/resources => resources}/views/mail/recovery.php | 0 .../resources => resources}/views/mail/text/confirmation.php | 0 .../views/mail/text/reconfirmation.php | 0 .../User/resources => resources}/views/mail/text/recovery.php | 0 .../resources => resources}/views/mail/text/twofactorcode.php | 0 {src/User/resources => resources}/views/mail/text/welcome.php | 0 .../User/resources => resources}/views/mail/twofactorcode.php | 0 {src/User/resources => resources}/views/mail/welcome.php | 0 {src/User/resources => resources}/views/permission/_form.php | 0 {src/User/resources => resources}/views/permission/create.php | 0 {src/User/resources => resources}/views/permission/index.php | 0 {src/User/resources => resources}/views/permission/update.php | 0 {src/User/resources => resources}/views/profile/show.php | 0 {src/User/resources => resources}/views/recovery/request.php | 0 {src/User/resources => resources}/views/recovery/reset.php | 0 .../resources => resources}/views/registration/connect.php | 0 .../resources => resources}/views/registration/register.php | 0 .../resources => resources}/views/registration/resend.php | 0 {src/User/resources => resources}/views/role/_form.php | 0 {src/User/resources => resources}/views/role/create.php | 0 {src/User/resources => resources}/views/role/index.php | 0 {src/User/resources => resources}/views/role/update.php | 0 {src/User/resources => resources}/views/rule/_form.php | 0 {src/User/resources => resources}/views/rule/create.php | 0 {src/User/resources => resources}/views/rule/index.php | 0 {src/User/resources => resources}/views/rule/update.php | 0 {src/User/resources => resources}/views/security/confirm.php | 0 {src/User/resources => resources}/views/security/login.php | 0 {src/User/resources => resources}/views/settings/_menu.php | 0 {src/User/resources => resources}/views/settings/account.php | 0 .../resources => resources}/views/settings/gdpr-consent.php | 0 .../resources => resources}/views/settings/gdpr-delete.php | 0 {src/User/resources => resources}/views/settings/networks.php | 0 {src/User/resources => resources}/views/settings/privacy.php | 0 {src/User/resources => resources}/views/settings/profile.php | 0 .../views/settings/session-history.php | 0 .../views/settings/two-factor-email.php | 0 .../resources => resources}/views/settings/two-factor-sms.php | 0 .../resources => resources}/views/settings/two-factor.php | 0 {src/User/resources => resources}/views/shared/_alert.php | 2 +- {src/User/resources => resources}/views/shared/_menu.php | 2 +- .../resources => resources}/views/shared/admin_layout.php | 0 {src/User/resources => resources}/views/shared/message.php | 0 .../views/widgets/assignments/form.php | 2 +- .../User/resources => resources}/views/widgets/login/form.php | 0 src/User/Module.php | 2 +- 87 files changed, 11 insertions(+), 11 deletions(-) rename {src/User/resources => resources}/i18n/ca/usuario.php (100%) rename {src/User/resources => resources}/i18n/config.php (100%) rename {src/User/resources => resources}/i18n/da/usuario.php (100%) rename {src/User/resources => resources}/i18n/de-DU/usuario.php (100%) rename {src/User/resources => resources}/i18n/de/usuario.php (100%) rename {src/User/resources => resources}/i18n/es/usuario.php (100%) rename {src/User/resources => resources}/i18n/et/usuario.php (100%) rename {src/User/resources => resources}/i18n/fa-IR/usuario.php (100%) rename {src/User/resources => resources}/i18n/fi/usuario.php (100%) rename {src/User/resources => resources}/i18n/fr/usuario.php (100%) rename {src/User/resources => resources}/i18n/hr/usuario.php (100%) rename {src/User/resources => resources}/i18n/hu/usuario.php (100%) rename {src/User/resources => resources}/i18n/it/usuario.php (100%) rename {src/User/resources => resources}/i18n/kk/usuario.php (100%) rename {src/User/resources => resources}/i18n/lt/usuario.php (100%) rename {src/User/resources => resources}/i18n/nl/usuario.php (100%) rename {src/User/resources => resources}/i18n/pl/usuario.php (100%) rename {src/User/resources => resources}/i18n/pt-BR/usuario.php (100%) rename {src/User/resources => resources}/i18n/pt-PT/usuario.php (100%) rename {src/User/resources => resources}/i18n/ro/usuario.php (100%) rename {src/User/resources => resources}/i18n/ru/usuario.php (100%) rename {src/User/resources => resources}/i18n/sk/usuario.php (100%) rename {src/User/resources => resources}/i18n/th/usuario.php (100%) rename {src/User/resources => resources}/i18n/tr-TR/usuario.php (100%) rename {src/User/resources => resources}/i18n/uk/usuario.php (100%) rename {src/User/resources => resources}/i18n/vi/usuario.php (100%) rename {src/User/resources => resources}/i18n/zh-CN/usuario.php (100%) rename {src/User/resources => resources}/views/admin/_account.php (97%) rename {src/User/resources => resources}/views/admin/_assignments.php (96%) rename {src/User/resources => resources}/views/admin/_info.php (100%) rename {src/User/resources => resources}/views/admin/_profile.php (97%) rename {src/User/resources => resources}/views/admin/_session-history.php (100%) rename {src/User/resources => resources}/views/admin/_user.php (100%) rename {src/User/resources => resources}/views/admin/create.php (98%) rename {src/User/resources => resources}/views/admin/index.php (100%) rename {src/User/resources => resources}/views/admin/update.php (99%) rename {src/User/resources => resources}/views/mail/confirmation.php (100%) rename {src/User/resources => resources}/views/mail/layouts/html.php (100%) rename {src/User/resources => resources}/views/mail/layouts/text.php (100%) rename {src/User/resources => resources}/views/mail/reconfirmation.php (100%) rename {src/User/resources => resources}/views/mail/recovery.php (100%) rename {src/User/resources => resources}/views/mail/text/confirmation.php (100%) rename {src/User/resources => resources}/views/mail/text/reconfirmation.php (100%) rename {src/User/resources => resources}/views/mail/text/recovery.php (100%) rename {src/User/resources => resources}/views/mail/text/twofactorcode.php (100%) rename {src/User/resources => resources}/views/mail/text/welcome.php (100%) rename {src/User/resources => resources}/views/mail/twofactorcode.php (100%) rename {src/User/resources => resources}/views/mail/welcome.php (100%) rename {src/User/resources => resources}/views/permission/_form.php (100%) rename {src/User/resources => resources}/views/permission/create.php (100%) rename {src/User/resources => resources}/views/permission/index.php (100%) rename {src/User/resources => resources}/views/permission/update.php (100%) rename {src/User/resources => resources}/views/profile/show.php (100%) rename {src/User/resources => resources}/views/recovery/request.php (100%) rename {src/User/resources => resources}/views/recovery/reset.php (100%) rename {src/User/resources => resources}/views/registration/connect.php (100%) rename {src/User/resources => resources}/views/registration/register.php (100%) rename {src/User/resources => resources}/views/registration/resend.php (100%) rename {src/User/resources => resources}/views/role/_form.php (100%) rename {src/User/resources => resources}/views/role/create.php (100%) rename {src/User/resources => resources}/views/role/index.php (100%) rename {src/User/resources => resources}/views/role/update.php (100%) rename {src/User/resources => resources}/views/rule/_form.php (100%) rename {src/User/resources => resources}/views/rule/create.php (100%) rename {src/User/resources => resources}/views/rule/index.php (100%) rename {src/User/resources => resources}/views/rule/update.php (100%) rename {src/User/resources => resources}/views/security/confirm.php (100%) rename {src/User/resources => resources}/views/security/login.php (100%) rename {src/User/resources => resources}/views/settings/_menu.php (100%) rename {src/User/resources => resources}/views/settings/account.php (100%) rename {src/User/resources => resources}/views/settings/gdpr-consent.php (100%) rename {src/User/resources => resources}/views/settings/gdpr-delete.php (100%) rename {src/User/resources => resources}/views/settings/networks.php (100%) rename {src/User/resources => resources}/views/settings/privacy.php (100%) rename {src/User/resources => resources}/views/settings/profile.php (100%) rename {src/User/resources => resources}/views/settings/session-history.php (100%) rename {src/User/resources => resources}/views/settings/two-factor-email.php (100%) rename {src/User/resources => resources}/views/settings/two-factor-sms.php (100%) rename {src/User/resources => resources}/views/settings/two-factor.php (100%) rename {src/User/resources => resources}/views/shared/_alert.php (97%) rename {src/User/resources => resources}/views/shared/_menu.php (98%) rename {src/User/resources => resources}/views/shared/admin_layout.php (100%) rename {src/User/resources => resources}/views/shared/message.php (100%) rename {src/User/resources => resources}/views/widgets/assignments/form.php (97%) rename {src/User/resources => resources}/views/widgets/login/form.php (100%) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 4e67fd00..054540de 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: operating-system: ['ubuntu-latest'] - php-versions: ['8.1', '8.0','7.4'] + php-versions: ['8.2','8.1', '8.0','7.4'] services: mariadb: diff --git a/src/User/resources/i18n/ca/usuario.php b/resources/i18n/ca/usuario.php similarity index 100% rename from src/User/resources/i18n/ca/usuario.php rename to resources/i18n/ca/usuario.php diff --git a/src/User/resources/i18n/config.php b/resources/i18n/config.php similarity index 100% rename from src/User/resources/i18n/config.php rename to resources/i18n/config.php diff --git a/src/User/resources/i18n/da/usuario.php b/resources/i18n/da/usuario.php similarity index 100% rename from src/User/resources/i18n/da/usuario.php rename to resources/i18n/da/usuario.php diff --git a/src/User/resources/i18n/de-DU/usuario.php b/resources/i18n/de-DU/usuario.php similarity index 100% rename from src/User/resources/i18n/de-DU/usuario.php rename to resources/i18n/de-DU/usuario.php diff --git a/src/User/resources/i18n/de/usuario.php b/resources/i18n/de/usuario.php similarity index 100% rename from src/User/resources/i18n/de/usuario.php rename to resources/i18n/de/usuario.php diff --git a/src/User/resources/i18n/es/usuario.php b/resources/i18n/es/usuario.php similarity index 100% rename from src/User/resources/i18n/es/usuario.php rename to resources/i18n/es/usuario.php diff --git a/src/User/resources/i18n/et/usuario.php b/resources/i18n/et/usuario.php similarity index 100% rename from src/User/resources/i18n/et/usuario.php rename to resources/i18n/et/usuario.php diff --git a/src/User/resources/i18n/fa-IR/usuario.php b/resources/i18n/fa-IR/usuario.php similarity index 100% rename from src/User/resources/i18n/fa-IR/usuario.php rename to resources/i18n/fa-IR/usuario.php diff --git a/src/User/resources/i18n/fi/usuario.php b/resources/i18n/fi/usuario.php similarity index 100% rename from src/User/resources/i18n/fi/usuario.php rename to resources/i18n/fi/usuario.php diff --git a/src/User/resources/i18n/fr/usuario.php b/resources/i18n/fr/usuario.php similarity index 100% rename from src/User/resources/i18n/fr/usuario.php rename to resources/i18n/fr/usuario.php diff --git a/src/User/resources/i18n/hr/usuario.php b/resources/i18n/hr/usuario.php similarity index 100% rename from src/User/resources/i18n/hr/usuario.php rename to resources/i18n/hr/usuario.php diff --git a/src/User/resources/i18n/hu/usuario.php b/resources/i18n/hu/usuario.php similarity index 100% rename from src/User/resources/i18n/hu/usuario.php rename to resources/i18n/hu/usuario.php diff --git a/src/User/resources/i18n/it/usuario.php b/resources/i18n/it/usuario.php similarity index 100% rename from src/User/resources/i18n/it/usuario.php rename to resources/i18n/it/usuario.php diff --git a/src/User/resources/i18n/kk/usuario.php b/resources/i18n/kk/usuario.php similarity index 100% rename from src/User/resources/i18n/kk/usuario.php rename to resources/i18n/kk/usuario.php diff --git a/src/User/resources/i18n/lt/usuario.php b/resources/i18n/lt/usuario.php similarity index 100% rename from src/User/resources/i18n/lt/usuario.php rename to resources/i18n/lt/usuario.php diff --git a/src/User/resources/i18n/nl/usuario.php b/resources/i18n/nl/usuario.php similarity index 100% rename from src/User/resources/i18n/nl/usuario.php rename to resources/i18n/nl/usuario.php diff --git a/src/User/resources/i18n/pl/usuario.php b/resources/i18n/pl/usuario.php similarity index 100% rename from src/User/resources/i18n/pl/usuario.php rename to resources/i18n/pl/usuario.php diff --git a/src/User/resources/i18n/pt-BR/usuario.php b/resources/i18n/pt-BR/usuario.php similarity index 100% rename from src/User/resources/i18n/pt-BR/usuario.php rename to resources/i18n/pt-BR/usuario.php diff --git a/src/User/resources/i18n/pt-PT/usuario.php b/resources/i18n/pt-PT/usuario.php similarity index 100% rename from src/User/resources/i18n/pt-PT/usuario.php rename to resources/i18n/pt-PT/usuario.php diff --git a/src/User/resources/i18n/ro/usuario.php b/resources/i18n/ro/usuario.php similarity index 100% rename from src/User/resources/i18n/ro/usuario.php rename to resources/i18n/ro/usuario.php diff --git a/src/User/resources/i18n/ru/usuario.php b/resources/i18n/ru/usuario.php similarity index 100% rename from src/User/resources/i18n/ru/usuario.php rename to resources/i18n/ru/usuario.php diff --git a/src/User/resources/i18n/sk/usuario.php b/resources/i18n/sk/usuario.php similarity index 100% rename from src/User/resources/i18n/sk/usuario.php rename to resources/i18n/sk/usuario.php diff --git a/src/User/resources/i18n/th/usuario.php b/resources/i18n/th/usuario.php similarity index 100% rename from src/User/resources/i18n/th/usuario.php rename to resources/i18n/th/usuario.php diff --git a/src/User/resources/i18n/tr-TR/usuario.php b/resources/i18n/tr-TR/usuario.php similarity index 100% rename from src/User/resources/i18n/tr-TR/usuario.php rename to resources/i18n/tr-TR/usuario.php diff --git a/src/User/resources/i18n/uk/usuario.php b/resources/i18n/uk/usuario.php similarity index 100% rename from src/User/resources/i18n/uk/usuario.php rename to resources/i18n/uk/usuario.php diff --git a/src/User/resources/i18n/vi/usuario.php b/resources/i18n/vi/usuario.php similarity index 100% rename from src/User/resources/i18n/vi/usuario.php rename to resources/i18n/vi/usuario.php diff --git a/src/User/resources/i18n/zh-CN/usuario.php b/resources/i18n/zh-CN/usuario.php similarity index 100% rename from src/User/resources/i18n/zh-CN/usuario.php rename to resources/i18n/zh-CN/usuario.php diff --git a/src/User/resources/views/admin/_account.php b/resources/views/admin/_account.php similarity index 97% rename from src/User/resources/views/admin/_account.php rename to resources/views/admin/_account.php index 7b440214..09dc270d 100644 --- a/src/User/resources/views/admin/_account.php +++ b/resources/views/admin/_account.php @@ -9,7 +9,7 @@ * the LICENSE file that was distributed with this source code. */ -use yii\bootstrap\ActiveForm; +use yii\bootstrap5\ActiveForm; use yii\helpers\Html; /** @var yii\web\View $this */ diff --git a/src/User/resources/views/admin/_assignments.php b/resources/views/admin/_assignments.php similarity index 96% rename from src/User/resources/views/admin/_assignments.php rename to resources/views/admin/_assignments.php index d2b0a729..b7860002 100644 --- a/src/User/resources/views/admin/_assignments.php +++ b/resources/views/admin/_assignments.php @@ -20,7 +20,7 @@ beginContent($module->viewPath. '/admin/update.php', ['user' => $user]) ?> - [ 'class' => 'alert-info alert-dismissible', diff --git a/src/User/resources/views/admin/_info.php b/resources/views/admin/_info.php similarity index 100% rename from src/User/resources/views/admin/_info.php rename to resources/views/admin/_info.php diff --git a/src/User/resources/views/admin/_profile.php b/resources/views/admin/_profile.php similarity index 97% rename from src/User/resources/views/admin/_profile.php rename to resources/views/admin/_profile.php index 17994bea..e750cf7c 100644 --- a/src/User/resources/views/admin/_profile.php +++ b/resources/views/admin/_profile.php @@ -9,7 +9,7 @@ * the LICENSE file that was distributed with this source code. */ -use yii\bootstrap\ActiveForm; +use yii\bootstrap5\ActiveForm; use yii\helpers\Html; /** diff --git a/src/User/resources/views/admin/_session-history.php b/resources/views/admin/_session-history.php similarity index 100% rename from src/User/resources/views/admin/_session-history.php rename to resources/views/admin/_session-history.php diff --git a/src/User/resources/views/admin/_user.php b/resources/views/admin/_user.php similarity index 100% rename from src/User/resources/views/admin/_user.php rename to resources/views/admin/_user.php diff --git a/src/User/resources/views/admin/create.php b/resources/views/admin/create.php similarity index 98% rename from src/User/resources/views/admin/create.php rename to resources/views/admin/create.php index f65d7de1..f36d233b 100644 --- a/src/User/resources/views/admin/create.php +++ b/resources/views/admin/create.php @@ -9,8 +9,8 @@ * the LICENSE file that was distributed with this source code. */ -use yii\bootstrap\ActiveForm; -use yii\bootstrap\Nav; +use yii\bootstrap5\ActiveForm; +use yii\bootstrap5\Nav; use yii\helpers\Html; /** diff --git a/src/User/resources/views/admin/index.php b/resources/views/admin/index.php similarity index 100% rename from src/User/resources/views/admin/index.php rename to resources/views/admin/index.php diff --git a/src/User/resources/views/admin/update.php b/resources/views/admin/update.php similarity index 99% rename from src/User/resources/views/admin/update.php rename to resources/views/admin/update.php index a90fd96f..98a77fb7 100755 --- a/src/User/resources/views/admin/update.php +++ b/resources/views/admin/update.php @@ -10,7 +10,7 @@ */ use Da\User\Model\User; -use yii\bootstrap\Nav; +use yii\bootstrap5\Nav; use yii\helpers\Html; use yii\web\View; use Da\User\Module as UserModule; diff --git a/src/User/resources/views/mail/confirmation.php b/resources/views/mail/confirmation.php similarity index 100% rename from src/User/resources/views/mail/confirmation.php rename to resources/views/mail/confirmation.php diff --git a/src/User/resources/views/mail/layouts/html.php b/resources/views/mail/layouts/html.php similarity index 100% rename from src/User/resources/views/mail/layouts/html.php rename to resources/views/mail/layouts/html.php diff --git a/src/User/resources/views/mail/layouts/text.php b/resources/views/mail/layouts/text.php similarity index 100% rename from src/User/resources/views/mail/layouts/text.php rename to resources/views/mail/layouts/text.php diff --git a/src/User/resources/views/mail/reconfirmation.php b/resources/views/mail/reconfirmation.php similarity index 100% rename from src/User/resources/views/mail/reconfirmation.php rename to resources/views/mail/reconfirmation.php diff --git a/src/User/resources/views/mail/recovery.php b/resources/views/mail/recovery.php similarity index 100% rename from src/User/resources/views/mail/recovery.php rename to resources/views/mail/recovery.php diff --git a/src/User/resources/views/mail/text/confirmation.php b/resources/views/mail/text/confirmation.php similarity index 100% rename from src/User/resources/views/mail/text/confirmation.php rename to resources/views/mail/text/confirmation.php diff --git a/src/User/resources/views/mail/text/reconfirmation.php b/resources/views/mail/text/reconfirmation.php similarity index 100% rename from src/User/resources/views/mail/text/reconfirmation.php rename to resources/views/mail/text/reconfirmation.php diff --git a/src/User/resources/views/mail/text/recovery.php b/resources/views/mail/text/recovery.php similarity index 100% rename from src/User/resources/views/mail/text/recovery.php rename to resources/views/mail/text/recovery.php diff --git a/src/User/resources/views/mail/text/twofactorcode.php b/resources/views/mail/text/twofactorcode.php similarity index 100% rename from src/User/resources/views/mail/text/twofactorcode.php rename to resources/views/mail/text/twofactorcode.php diff --git a/src/User/resources/views/mail/text/welcome.php b/resources/views/mail/text/welcome.php similarity index 100% rename from src/User/resources/views/mail/text/welcome.php rename to resources/views/mail/text/welcome.php diff --git a/src/User/resources/views/mail/twofactorcode.php b/resources/views/mail/twofactorcode.php similarity index 100% rename from src/User/resources/views/mail/twofactorcode.php rename to resources/views/mail/twofactorcode.php diff --git a/src/User/resources/views/mail/welcome.php b/resources/views/mail/welcome.php similarity index 100% rename from src/User/resources/views/mail/welcome.php rename to resources/views/mail/welcome.php diff --git a/src/User/resources/views/permission/_form.php b/resources/views/permission/_form.php similarity index 100% rename from src/User/resources/views/permission/_form.php rename to resources/views/permission/_form.php diff --git a/src/User/resources/views/permission/create.php b/resources/views/permission/create.php similarity index 100% rename from src/User/resources/views/permission/create.php rename to resources/views/permission/create.php diff --git a/src/User/resources/views/permission/index.php b/resources/views/permission/index.php similarity index 100% rename from src/User/resources/views/permission/index.php rename to resources/views/permission/index.php diff --git a/src/User/resources/views/permission/update.php b/resources/views/permission/update.php similarity index 100% rename from src/User/resources/views/permission/update.php rename to resources/views/permission/update.php diff --git a/src/User/resources/views/profile/show.php b/resources/views/profile/show.php similarity index 100% rename from src/User/resources/views/profile/show.php rename to resources/views/profile/show.php diff --git a/src/User/resources/views/recovery/request.php b/resources/views/recovery/request.php similarity index 100% rename from src/User/resources/views/recovery/request.php rename to resources/views/recovery/request.php diff --git a/src/User/resources/views/recovery/reset.php b/resources/views/recovery/reset.php similarity index 100% rename from src/User/resources/views/recovery/reset.php rename to resources/views/recovery/reset.php diff --git a/src/User/resources/views/registration/connect.php b/resources/views/registration/connect.php similarity index 100% rename from src/User/resources/views/registration/connect.php rename to resources/views/registration/connect.php diff --git a/src/User/resources/views/registration/register.php b/resources/views/registration/register.php similarity index 100% rename from src/User/resources/views/registration/register.php rename to resources/views/registration/register.php diff --git a/src/User/resources/views/registration/resend.php b/resources/views/registration/resend.php similarity index 100% rename from src/User/resources/views/registration/resend.php rename to resources/views/registration/resend.php diff --git a/src/User/resources/views/role/_form.php b/resources/views/role/_form.php similarity index 100% rename from src/User/resources/views/role/_form.php rename to resources/views/role/_form.php diff --git a/src/User/resources/views/role/create.php b/resources/views/role/create.php similarity index 100% rename from src/User/resources/views/role/create.php rename to resources/views/role/create.php diff --git a/src/User/resources/views/role/index.php b/resources/views/role/index.php similarity index 100% rename from src/User/resources/views/role/index.php rename to resources/views/role/index.php diff --git a/src/User/resources/views/role/update.php b/resources/views/role/update.php similarity index 100% rename from src/User/resources/views/role/update.php rename to resources/views/role/update.php diff --git a/src/User/resources/views/rule/_form.php b/resources/views/rule/_form.php similarity index 100% rename from src/User/resources/views/rule/_form.php rename to resources/views/rule/_form.php diff --git a/src/User/resources/views/rule/create.php b/resources/views/rule/create.php similarity index 100% rename from src/User/resources/views/rule/create.php rename to resources/views/rule/create.php diff --git a/src/User/resources/views/rule/index.php b/resources/views/rule/index.php similarity index 100% rename from src/User/resources/views/rule/index.php rename to resources/views/rule/index.php diff --git a/src/User/resources/views/rule/update.php b/resources/views/rule/update.php similarity index 100% rename from src/User/resources/views/rule/update.php rename to resources/views/rule/update.php diff --git a/src/User/resources/views/security/confirm.php b/resources/views/security/confirm.php similarity index 100% rename from src/User/resources/views/security/confirm.php rename to resources/views/security/confirm.php diff --git a/src/User/resources/views/security/login.php b/resources/views/security/login.php similarity index 100% rename from src/User/resources/views/security/login.php rename to resources/views/security/login.php diff --git a/src/User/resources/views/settings/_menu.php b/resources/views/settings/_menu.php similarity index 100% rename from src/User/resources/views/settings/_menu.php rename to resources/views/settings/_menu.php diff --git a/src/User/resources/views/settings/account.php b/resources/views/settings/account.php similarity index 100% rename from src/User/resources/views/settings/account.php rename to resources/views/settings/account.php diff --git a/src/User/resources/views/settings/gdpr-consent.php b/resources/views/settings/gdpr-consent.php similarity index 100% rename from src/User/resources/views/settings/gdpr-consent.php rename to resources/views/settings/gdpr-consent.php diff --git a/src/User/resources/views/settings/gdpr-delete.php b/resources/views/settings/gdpr-delete.php similarity index 100% rename from src/User/resources/views/settings/gdpr-delete.php rename to resources/views/settings/gdpr-delete.php diff --git a/src/User/resources/views/settings/networks.php b/resources/views/settings/networks.php similarity index 100% rename from src/User/resources/views/settings/networks.php rename to resources/views/settings/networks.php diff --git a/src/User/resources/views/settings/privacy.php b/resources/views/settings/privacy.php similarity index 100% rename from src/User/resources/views/settings/privacy.php rename to resources/views/settings/privacy.php diff --git a/src/User/resources/views/settings/profile.php b/resources/views/settings/profile.php similarity index 100% rename from src/User/resources/views/settings/profile.php rename to resources/views/settings/profile.php diff --git a/src/User/resources/views/settings/session-history.php b/resources/views/settings/session-history.php similarity index 100% rename from src/User/resources/views/settings/session-history.php rename to resources/views/settings/session-history.php diff --git a/src/User/resources/views/settings/two-factor-email.php b/resources/views/settings/two-factor-email.php similarity index 100% rename from src/User/resources/views/settings/two-factor-email.php rename to resources/views/settings/two-factor-email.php diff --git a/src/User/resources/views/settings/two-factor-sms.php b/resources/views/settings/two-factor-sms.php similarity index 100% rename from src/User/resources/views/settings/two-factor-sms.php rename to resources/views/settings/two-factor-sms.php diff --git a/src/User/resources/views/settings/two-factor.php b/resources/views/settings/two-factor.php similarity index 100% rename from src/User/resources/views/settings/two-factor.php rename to resources/views/settings/two-factor.php diff --git a/src/User/resources/views/shared/_alert.php b/resources/views/shared/_alert.php similarity index 97% rename from src/User/resources/views/shared/_alert.php rename to resources/views/shared/_alert.php index 500385f0..6cfda598 100644 --- a/src/User/resources/views/shared/_alert.php +++ b/resources/views/shared/_alert.php @@ -9,7 +9,7 @@ * the LICENSE file that was distributed with this source code. */ -use yii\bootstrap\Alert; +use yii\bootstrap5\Alert; /** @var \Da\User\Module $module */ diff --git a/src/User/resources/views/shared/_menu.php b/resources/views/shared/_menu.php similarity index 98% rename from src/User/resources/views/shared/_menu.php rename to resources/views/shared/_menu.php index af7d660f..529316e9 100644 --- a/src/User/resources/views/shared/_menu.php +++ b/resources/views/shared/_menu.php @@ -9,7 +9,7 @@ * the LICENSE file that was distributed with this source code. */ -use yii\bootstrap\Nav; +use yii\bootstrap5\Nav; ?> diff --git a/src/User/resources/views/shared/admin_layout.php b/resources/views/shared/admin_layout.php similarity index 100% rename from src/User/resources/views/shared/admin_layout.php rename to resources/views/shared/admin_layout.php diff --git a/src/User/resources/views/shared/message.php b/resources/views/shared/message.php similarity index 100% rename from src/User/resources/views/shared/message.php rename to resources/views/shared/message.php diff --git a/src/User/resources/views/widgets/assignments/form.php b/resources/views/widgets/assignments/form.php similarity index 97% rename from src/User/resources/views/widgets/assignments/form.php rename to resources/views/widgets/assignments/form.php index 0fa55a03..3751388a 100644 --- a/src/User/resources/views/widgets/assignments/form.php +++ b/resources/views/widgets/assignments/form.php @@ -10,7 +10,7 @@ */ use dosamigos\selectize\SelectizeDropDownList; -use yii\bootstrap\Alert; +use yii\bootstrap5\Alert; use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/src/User/resources/views/widgets/login/form.php b/resources/views/widgets/login/form.php similarity index 100% rename from src/User/resources/views/widgets/login/form.php rename to resources/views/widgets/login/form.php diff --git a/src/User/Module.php b/src/User/Module.php index 0e00f587..a9463405 100755 --- a/src/User/Module.php +++ b/src/User/Module.php @@ -216,7 +216,7 @@ class Module extends BaseModule /** * @var string */ - public $viewPath = '@Da/User/resources/views'; + public $viewPath = '@Da/User/../../resources/views'; /** * @var string the session key name to impersonate users. Please, modify it for security reasons! */ From dfece8fa60329ab7f120fad935487e3fde641c9c Mon Sep 17 00:00:00 2001 From: tonis ormisson Date: Tue, 10 Jan 2023 16:11:53 +0200 Subject: [PATCH 02/10] composer, ActiveForm --- composer.json | 7 +++-- resources/views/admin/_account.php | 5 ---- resources/views/admin/_profile.php | 5 ---- resources/views/admin/create.php | 5 ---- resources/views/permission/_form.php | 2 +- resources/views/recovery/request.php | 2 +- resources/views/recovery/reset.php | 2 +- resources/views/registration/connect.php | 2 +- resources/views/registration/register.php | 2 +- resources/views/registration/resend.php | 2 +- resources/views/role/_form.php | 2 +- resources/views/rule/_form.php | 2 +- resources/views/security/confirm.php | 2 +- resources/views/security/login.php | 2 +- resources/views/settings/account.php | 28 ++++++++----------- resources/views/settings/gdpr-consent.php | 2 +- resources/views/settings/gdpr-delete.php | 2 +- resources/views/settings/profile.php | 8 ++---- resources/views/widgets/assignments/form.php | 2 +- resources/views/widgets/login/form.php | 2 +- .../Validator/AjaxRequestModelValidator.php | 2 +- 21 files changed, 34 insertions(+), 54 deletions(-) diff --git a/composer.json b/composer.json index c1761fd8..d28fd1cb 100644 --- a/composer.json +++ b/composer.json @@ -41,19 +41,22 @@ "prefer-stable": true, "require": { "php": ">=5.5", - "2amigos/yii2-selectize-widget": "^1.1", "yiisoft/yii2-authclient": "^2.1", "yiisoft/yii2-httpclient": "^2.0", - "yiisoft/yii2-bootstrap": "^2.0", "yetopen/yii2-sms-sender-interface": "^0.1.1" }, "suggest": { + "yiisoft/yii2-bootstrap5": "Front-end framework needed for the default views", + "kartik-v/yii2-widget-select2": "needed for default Botstrap-5 views", + "twbs/bootstrap-icons": "Icons for Bootstrap 5 views", "yiisoft/yii2-symfonymailer": "A mailer driver is needed to send e-mails. Older versions use abandoned Swiftmailer which can be replaced with symfonymailer", "2amigos/2fa-library": "Needed if you want to enable 2 Factor Authentication. Require version ^1.0", "2amigos/qrcode-library": "Needed if you want to enable 2FA with QR Code generation. Require version ^1.1" }, "require-dev": { "php": ">=7.4", + "kartik-v/yii2-widget-select2": "^2.2", + "yiisoft/yii2-bootstrap5": "^2.0", "2amigos/2fa-library": "^2.0", "2amigos/qrcode-library": "^2.0", "friendsofphp/php-cs-fixer": "^3", diff --git a/resources/views/admin/_account.php b/resources/views/admin/_account.php index 09dc270d..8f0f5d32 100644 --- a/resources/views/admin/_account.php +++ b/resources/views/admin/_account.php @@ -25,11 +25,6 @@ 'layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, - 'fieldConfig' => [ - 'horizontalCssClasses' => [ - 'wrapper' => 'col-sm-9', - ], - ], ] ); ?> diff --git a/resources/views/admin/_profile.php b/resources/views/admin/_profile.php index e750cf7c..95dd2925 100644 --- a/resources/views/admin/_profile.php +++ b/resources/views/admin/_profile.php @@ -28,11 +28,6 @@ 'layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, - 'fieldConfig' => [ - 'horizontalCssClasses' => [ - 'wrapper' => 'col-sm-9', - ], - ], ] ); ?> diff --git a/resources/views/admin/create.php b/resources/views/admin/create.php index f36d233b..b85d7a34 100644 --- a/resources/views/admin/create.php +++ b/resources/views/admin/create.php @@ -88,11 +88,6 @@ 'layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, - 'fieldConfig' => [ - 'horizontalCssClasses' => [ - 'wrapper' => 'col-sm-9', - ], - ], ] ); ?> diff --git a/resources/views/permission/_form.php b/resources/views/permission/_form.php index 1ab6575e..94bc61db 100644 --- a/resources/views/permission/_form.php +++ b/resources/views/permission/_form.php @@ -12,7 +12,7 @@ use dosamigos\selectize\SelectizeDropDownList; use yii\helpers\ArrayHelper; use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/recovery/request.php b/resources/views/recovery/request.php index 6b0b6d71..614b0a24 100644 --- a/resources/views/recovery/request.php +++ b/resources/views/recovery/request.php @@ -10,7 +10,7 @@ */ use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/recovery/reset.php b/resources/views/recovery/reset.php index 8f225f1c..544fcf78 100644 --- a/resources/views/recovery/reset.php +++ b/resources/views/recovery/reset.php @@ -10,7 +10,7 @@ */ use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/registration/connect.php b/resources/views/registration/connect.php index e6e8a505..63f19a03 100644 --- a/resources/views/registration/connect.php +++ b/resources/views/registration/connect.php @@ -10,7 +10,7 @@ */ use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/registration/register.php b/resources/views/registration/register.php index 29d1e753..fac3be0c 100644 --- a/resources/views/registration/register.php +++ b/resources/views/registration/register.php @@ -10,7 +10,7 @@ */ use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/registration/resend.php b/resources/views/registration/resend.php index b687a1e9..ac8c803c 100644 --- a/resources/views/registration/resend.php +++ b/resources/views/registration/resend.php @@ -10,7 +10,7 @@ */ use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/role/_form.php b/resources/views/role/_form.php index 33eb2e93..6c00455d 100644 --- a/resources/views/role/_form.php +++ b/resources/views/role/_form.php @@ -18,7 +18,7 @@ use dosamigos\selectize\SelectizeDropDownList; use yii\helpers\ArrayHelper; use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; $unassignedItems = Yii::$container->get(AuthHelper::class)->getUnassignedItems($model); ?> diff --git a/resources/views/rule/_form.php b/resources/views/rule/_form.php index 498a0a82..a329a8c9 100644 --- a/resources/views/rule/_form.php +++ b/resources/views/rule/_form.php @@ -6,7 +6,7 @@ */ use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; ?> diff --git a/resources/views/security/confirm.php b/resources/views/security/confirm.php index ed064742..3f6c09db 100644 --- a/resources/views/security/confirm.php +++ b/resources/views/security/confirm.php @@ -11,7 +11,7 @@ use Da\User\Widget\ConnectWidget; use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/security/login.php b/resources/views/security/login.php index 8bbc5cef..3dd00ee6 100644 --- a/resources/views/security/login.php +++ b/resources/views/security/login.php @@ -11,7 +11,7 @@ use Da\User\Widget\ConnectWidget; use yii\helpers\Html; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; /** * @var yii\web\View $this diff --git a/resources/views/settings/account.php b/resources/views/settings/account.php index 71acb076..8931cdb2 100644 --- a/resources/views/settings/account.php +++ b/resources/views/settings/account.php @@ -11,7 +11,7 @@ use yii\helpers\Html; use yii\helpers\Url; -use yii\widgets\ActiveForm; +use yii\bootstrap5\ActiveForm; use dmstr\widgets\Alert; /** @@ -43,11 +43,7 @@ $model->formName(), - 'options' => ['class' => 'form-horizontal'], - 'fieldConfig' => [ - 'template' => "{label}\n
{input}
\n
{error}\n{hint}
", - 'labelOptions' => ['class' => 'col-lg-3 control-label'], - ], + 'layout' => 'horizontal', 'enableAjaxValidation' => true, 'enableClientValidation' => false, ] @@ -87,7 +83,7 @@ -