diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e596b616..ce761ca1 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,13 +5,31 @@ + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -33,20 +51,20 @@ - { - "keyToString": { - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "WebServerToolWindowFactoryState": "false", - "last_opened_file_path": "C:/temp-sk/safekat/ci4/app/Views/themes/backend/vuexy/main", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "vue.rearranger.settings.migration": "true" + +}]]> @@ -78,6 +96,8 @@ + + 1682339938559 diff --git a/ci4/app/Config/App.php b/ci4/app/Config/App.php index ede38fc8..51c21ddc 100644 --- a/ci4/app/Config/App.php +++ b/ci4/app/Config/App.php @@ -109,7 +109,7 @@ class App extends BaseConfig * * @var string */ - public $appTimezone = 'America/Sao_Paulo'; + public $appTimezone = 'Europe/Madrid'; /** * -------------------------------------------------------------------------- diff --git a/ci4/app/Config/Email.php b/ci4/app/Config/Email.php index 3a42fbe6..8da5812d 100644 --- a/ci4/app/Config/Email.php +++ b/ci4/app/Config/Email.php @@ -26,14 +26,14 @@ class Email extends BaseConfig * * @var string */ - public $userAgent = 'CodeIgniter'; + public $userAgent = 'Safekat ERP'; /** * The mail sending protocol: mail, sendmail, smtp * * @var string */ - public $protocol = 'mail'; + public $protocol = 'smtp'; /** * The server path to Sendmail. @@ -47,21 +47,21 @@ class Email extends BaseConfig * * @var string */ - public $SMTPHost; + public $SMTPHost = "imnavajas.es"; /** * SMTP Username * * @var string */ - public $SMTPUser; + public $SMTPUser = "safekat@imnavajas.es"; /** * SMTP Password * * @var string */ - public $SMTPPass; + public $SMTPPass = "Etkd9~448"; /** * SMTP Port @@ -110,7 +110,7 @@ class Email extends BaseConfig * * @var string */ - public $mailType = 'text'; + public $mailType = 'html'; /** * Character set (utf-8, iso-8859-1, etc.) diff --git a/ci4/app/Controllers/Settings.php b/ci4/app/Controllers/Settings.php index 13597a11..26f82681 100644 --- a/ci4/app/Controllers/Settings.php +++ b/ci4/app/Controllers/Settings.php @@ -9,7 +9,7 @@ use App\Models\SettingsModel; use App\Models\TemplateModel; use App\Models\ThemeModel; use App\Models\TimezoneModel; -use App\Models\UserGroupModel; +use App\Models\Usuarios\UserGroupModel; use App\Models\Usuarios\UserModel; class Settings extends BaseController diff --git a/ci4/app/Filters/LoginAuthFilter.php b/ci4/app/Filters/LoginAuthFilter.php index e92cc56d..8e1e268a 100644 --- a/ci4/app/Filters/LoginAuthFilter.php +++ b/ci4/app/Filters/LoginAuthFilter.php @@ -139,7 +139,9 @@ class LoginAuthFilter implements FilterInterface 'Integration', 'Migrate', 'Test', - 'GoBaseController' + 'GoBaseController', + 'GoBaseResourceController' + ]; } diff --git a/ci4/app/Language/es-ES/Tarifaaacabado.php b/ci4/app/Language/es-ES/Tarifaaacabado.php deleted file mode 100644 index 35bb5601..00000000 --- a/ci4/app/Language/es-ES/Tarifaaacabado.php +++ /dev/null @@ -1,114 +0,0 @@ - 'Ajuste', - 'createdAt' => 'Creado en', - 'deletedAt' => 'Borrado en', - 'formulaPrice' => 'Fórmula precio', - 'id' => 'ID', - 'moduleTitle' => 'Tarifas Acabado', - 'nombre' => 'Nombre', - 'precioMax' => 'Precio Max', - 'precioMin' => 'Precio Min', - 'tarifaacabado' => 'Tarifas Acabado', - 'tarifaacabadoList' => 'Lista Tarifas Acabado', - 'tarifasacabado' => 'Tarifas Acabado', - 'tiradaMax' => 'Tirada Max', - 'tiradaMin' => 'Tirada Min', - 'updatedAt' => 'Actualizado en', - 'userCreatedId' => 'ID Usuario "Creado en"', - 'userUpdateId' => 'ID Usuario "Actualizado en"', - 'validation' => [ - 'formula_price' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'nombre' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'precio_max' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'precio_min' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'tirada_max' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'tirada_min' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'user_created_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'user_update_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - 'validation' => [ - 'ajuste' => [ - 'decimal' => 'El campo {field} debe contener un número decimal', - 'required' => 'El campo {field} es obligatorio.', - - ], - - - ], - - -]; \ No newline at end of file diff --git a/ci4/app/Views/themes/_commonPartialsBs/select2bs5.php b/ci4/app/Views/themes/_commonPartialsBs/select2bs5.php index 5de3a76a..b88bd0bc 100644 --- a/ci4/app/Views/themes/_commonPartialsBs/select2bs5.php +++ b/ci4/app/Views/themes/_commonPartialsBs/select2bs5.php @@ -4,7 +4,7 @@ */ ?> - + = $this->endSection() ?> @@ -17,15 +17,19 @@ = $this->section('additionalInlineJs') ?> - + 'use strict'; + const select2 = $('.select2'); - $('.select2').select2({ - - }); + // Select2 + // -------------------------------------------------------------------- + if (select2.length) { + select2.each(function () { + var $this = $(this); + $this.wrap('').select2({ + placeholder: 'Select value', + dropdownParent: $this.parent() + }); + }); + } = $this->endSection() ?> \ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupForm.php b/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupForm.php index 0f23f919..5dce7459 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupForm.php +++ b/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupForm.php @@ -1,123 +1,155 @@ = $this->include("themes/_commonPartialsBs/select2bs5") ?> -=$this->extend('themes/backend/vuexy/main/defaultlayout') ?> += $this->extend('themes/backend/vuexy/main/defaultlayout') ?> = $this->section("content") ?> - - - - - = $boxTitle ?? $pageTitle ?> - - - = formAlert() ?> - - = csrf_field() ?> - - - - - - - =lang("App.group_field_title")?> - - - - - - =lang("App.group_field_dashboard")?> - dashboard : set_value('dashboard');?> - - >=lang("App.group_label_user")?> - >=lang("App.group_label_admin")?> - - - - - - - - =lang("App.group_btn_select")?> - =lang("App.group_btn_remove")?> - - - - - - - - = lang("App.permisos_general") ?> + + + + + + = $boxTitle ?? $pageTitle ?> + + + = formAlert() ?> + + = csrf_field() ?> + + + + + + + = lang("App.group_field_title") ?> + - - - - - - =getDictionary($item['name'])?> - - - - - =getDictionary($subitem)?> - + + + + = lang("App.group_field_dashboard") ?> + dashboard : set_value('dashboard'); ?> + + >= lang("App.group_label_user") ?> + >= lang("App.group_label_admin") ?> + + + + + + + + = lang("App.group_btn_select") ?> + + = lang("App.group_btn_remove") ?> + + + + + + + Role Permissions + + + + + + + + + + + + + + + + + + + + + + + + + + + = getDictionary($folder) ?? '' ?> >> = getDictionary($item['name']) ?> + + + + + + = getDictionary($subitem) ?> + + + + + - - - - - - - - - = getDictionary($folder)??'' ?> - - - - - - - =getDictionary($item['name'])?> - - - - - =getDictionary($subitem)?> - + + + + + = getDictionary($item['name']) ?> + + + + + + = getDictionary($subitem) ?> + + - - - - - + + + + + + - + - - - = anchor(route_to("groupIndex"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start"]) ?> - "> - - + + = anchor(route_to("groupIndex"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start"]) ?> + "> + + + - - - - - + + + = $this->endSection() ?> = $this->section('additionalInlineJs') ?> - - $('#select_all').on('click', function () { - $(':checkbox').each(function() { + $(':checkbox').each(function() { this.checked = true; - }); + }); }); $('#remove_all').on('click', function () { $(':checkbox').each(function() { @@ -125,5 +157,4 @@ }); }); - = $this->endSection() ?> \ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupList.php b/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupList.php index d258f17e..581b5c4c 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupList.php +++ b/ci4/app/Views/themes/backend/vuexy/form/group/viewUserGroupList.php @@ -1,66 +1,82 @@ -=$this->include('themes/_commonPartialsBs/datatables') ?> -=$this->extend('themes/backend/vuexy/main/defaultlayout') ?> -=$this->section('content'); ?> - - += $this->include('themes/_commonPartialsBs/datatables') ?> += $this->extend('themes/backend/vuexy/main/defaultlayout') ?> += $this->section('content'); ?> + + + + + = lang('Group.grouplist') ?> + + + + + + + + + + + + + + + + + = lang('Basic.global.addNew') ?> + + Añadir rol si no existe + + + + + - - - =lang('Group.grouplist') ?> - =anchor(route_to('newGroup'), lang('Basic.global.addNew').' '.lang('Group.group'), ['class'=>'btn btn-primary float-end']); ?> - - - = view('themes/_commonPartialsBs/_alertBoxes'); ?> + + + + + + Total 4 users + + + + = esc($item->title) ?> + + = lang('Basic.global.edit') ?> + + + = + anchor('#confirm2delete', "", + [ + 'class' => 'text-muted', + 'data-href' => route_to('deleteGroup', $item->id_group), + 'data-bs-toggle' => 'modal', + 'data-bs-target' => '#confirm2delete' + ]); + ?> + + + + + + + + + = view('themes/_commonPartialsBs/_alertBoxes'); ?> - - - - =lang("Group.id")?> - =lang("Group.group_grid_title")?> - =lang("Group.group_grid_dashboard")?> - = lang('UserGroups.token') ?> - = lang('UserGroups.createdAt') ?> - = lang('UserGroups.updatedAt') ?> - = lang('Basic.global.Action') ?> - - - - - - - =$item->id_group ?> - - - = esc($item->title) ?> - - - = esc($item->dashboard) ?> - - - = esc($item->token) ?> - - - - = empty($item->created_at) ? '' : date('d/m/Y H:m:s', strtotime($item->created_at)) ?> - - - = empty($item->updated_at) ? '' : date('d/m/Y H:m:s', strtotime($item->updated_at)) ?> - - - =anchor(route_to('editGroup', $item->id_group), lang('Basic.global.edit'), ['class'=>'btn btn-sm btn-warning btn-edit me-1', 'data-id'=>$item->id_group,]); ?> - =anchor('#confirm2delete', lang('Basic.global.Delete'), ['class'=>'btn btn-sm btn-danger btn-delete ms-1', 'data-href'=>route_to('deleteGroup', $item->id_group), 'data-bs-toggle'=>'modal', 'data-bs-target'=>'#confirm2delete']); ?> - - + + - - - - - - + + + + -=$this->endSection() ?> \ No newline at end of file += $this->endSection() ?> \ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/form/login/index.php b/ci4/app/Views/themes/backend/vuexy/form/login/index.php index 91307236..17a11156 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/login/index.php +++ b/ci4/app/Views/themes/backend/vuexy/form/login/index.php @@ -71,7 +71,7 @@ aria-describedby="password" onclick="pass()" /> - + diff --git a/ci4/app/Views/themes/backend/vuexy/form/user/_userFormItems.php b/ci4/app/Views/themes/backend/vuexy/form/user/_userFormItems.php index 3c102b53..0f58c828 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/user/_userFormItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/user/_userFormItems.php @@ -27,7 +27,7 @@ =lang('Users.country') ?>* - + =lang('Basic.global.pleaseSelectA', [lang('Users.country')]) ?> @@ -136,7 +136,7 @@ =lang('Users.blocked') ?>* blocked);?> - + >=lang("User.user_non_blocked")?> >=lang("User.user_blocked")?> @@ -147,7 +147,7 @@ =lang('Users.emailConfirmed') ?>* email_confirmed);?> - + >=lang("User.user_alert_not_confirmed")?> >=lang("User.user_alert_confirmed")?> diff --git a/ci4/app/Views/themes/backend/vuexy/login/footer.php b/ci4/app/Views/themes/backend/vuexy/login/footer.php index 2c2c86af..bd6e08c4 100644 --- a/ci4/app/Views/themes/backend/vuexy/login/footer.php +++ b/ci4/app/Views/themes/backend/vuexy/login/footer.php @@ -14,18 +14,16 @@ - - - + - + = toastAlert() ?>
Añadir rol si no existe