From 49e03fb7e95eebfe42da137c0df0cdeaa355abab Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sun, 20 Oct 2024 17:50:49 +0000 Subject: [PATCH] fix : add breadcumbs and fix button save --- ci4/app/Controllers/Configuracion/ConfigErrores.php | 11 ++++++++++- .../error_presupuesto/viewErrorPresupuestoForm.php | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ci4/app/Controllers/Configuracion/ConfigErrores.php b/ci4/app/Controllers/Configuracion/ConfigErrores.php index a47eb8b0..fcaade48 100644 --- a/ci4/app/Controllers/Configuracion/ConfigErrores.php +++ b/ci4/app/Controllers/Configuracion/ConfigErrores.php @@ -30,15 +30,24 @@ class ConfigErrores extends BaseResourceController public function index() { + $this->viewData['breadcrumb'] = [ + ['title' => lang("App.menu_configuration"), 'route' => "javascript:void(0);", 'active' => false], + ['title' => lang("App.menu_error_presupuesto"), 'route' => site_url('configuracion/errores-presupuesto'), 'active' => true] + ]; return view(static::$viewPath . $this->indexRoute, $this->viewData); } public function viewForm(int $error_presupuesto_id) { + $this->viewData['breadcrumb'] = [ + ['title' => lang("App.menu_configuration"), 'route' => "javascript:void(0);", 'active' => false], + ['title' => lang("App.menu_error_presupuesto"), 'route' => site_url('configuracion/errores-presupuesto'), 'active' => true] + ]; + $this->viewData["error_presupuesto_id"] = $error_presupuesto_id; $this->errorPresupuestoModel->update($error_presupuesto_id, [ "last_user_id" => auth()->user()->id, "visto" => true, ]); - return view(static::$viewPath . 'viewErrorPresupuestoForm', ["error_presupuesto_id" => $error_presupuesto_id]); + return view(static::$viewPath . 'viewErrorPresupuestoForm', $this->viewData); } public function store() { diff --git a/ci4/app/Views/themes/vuexy/form/configuracion/error_presupuesto/viewErrorPresupuestoForm.php b/ci4/app/Views/themes/vuexy/form/configuracion/error_presupuesto/viewErrorPresupuestoForm.php index b0f2a90d..c3efd394 100644 --- a/ci4/app/Views/themes/vuexy/form/configuracion/error_presupuesto/viewErrorPresupuestoForm.php +++ b/ci4/app/Views/themes/vuexy/form/configuracion/error_presupuesto/viewErrorPresupuestoForm.php @@ -56,7 +56,7 @@
-