diff --git a/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php b/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php index 195919e0..36c8a103 100644 --- a/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php +++ b/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php @@ -126,7 +126,7 @@ class Presupuestoadmin extends \App\Controllers\BaseResourceController if ($thenRedirect) : if (!empty($this->indexRoute)) : //return redirect()->to(route_to( $this->indexRoute ) )->with('sweet-success', $message); - return redirect()->to(site_url('presupuestos/presupuestoadmin/edit/' . $id))->with('sweet-success', $message); + return redirect()->to(site_url('presupuestoadmin/edit/' . $id))->with('sweet-success', $message); else : return $this->redirect2listView('sweet-success', $message); endif; @@ -840,7 +840,7 @@ class Presupuestoadmin extends \App\Controllers\BaseResourceController // Breadcrumbs $viewData['breadcrumb'] = [ ['title' => lang("App.menu_presupuestos"), 'route' => "javascript:void(0);", 'active' => false], - ['title' => $breadcrumbTitle, 'route' => site_url('presupuestos/presupuestoadmin/list/' . $tipo_impresion_id), 'active' => true] + ['title' => $breadcrumbTitle, 'route' => site_url('presupuestoadmin/list/' . $tipo_impresion_id), 'active' => true] ]; return $viewData; diff --git a/ci4/app/Models/Chat/ChatModel.php b/ci4/app/Models/Chat/ChatModel.php index 99cf1e51..59410d2f 100644 --- a/ci4/app/Models/Chat/ChatModel.php +++ b/ci4/app/Models/Chat/ChatModel.php @@ -333,7 +333,7 @@ class ChatModel extends Model } if($row->presupuestoId){ $row->model = $presupuestoModel->find($row->presupuestoId); - $row->uri = "/presupuestos/presupuestoadmin/edit/".$row->presupuestoId; + $row->uri = "/presupuestoadmin/edit/".$row->presupuestoId; $row->title = $row->presupuestoId; $row->avatar = "PRE"; $row->unreadMessages = $count; @@ -383,7 +383,7 @@ class ChatModel extends Model $row->unreadMessages = 0; if($row->presupuestoId){ $row->model = $presupuestoModel->find($row->presupuestoId); - $row->uri = "/presupuestos/presupuestoadmin/edit/".$row->presupuestoId; + $row->uri = "/presupuestoadmin/edit/".$row->presupuestoId; $row->title = $row->presupuestoId; $row->avatar = "PRE"; $row->unreadMessages = $this->countUnreadMessagePresupuesto($row->presupuestoId); diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaList.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoAdminList.php similarity index 98% rename from ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaList.php rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoAdminList.php index 87a88acb..3b93c509 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaList.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoAdminList.php @@ -231,7 +231,7 @@ theTable.on( 'draw.dt', function () { $(document).on('click', '.btn-edit', function(e) { - window.location.href = `/presupuestos/presupuestoadmin/edit/${$(this).attr('data-id')}/`; + window.location.href = `/presupuestoadmin/edit/${$(this).attr('data-id')}/`; }); @@ -245,7 +245,7 @@ $(document).on('click', '.btn-remove', function(e) { const row = $(this).closest('tr'); if ($.isNumeric(dataId)) { $.ajax({ - url: `/presupuestos/presupuestoadmin/delete/${dataId}`, + url: `/presupuestoadmin/delete/${dataId}`, method: 'GET', }).done((data, textStatus, jqXHR) => { $('#confirm2delete').modal('toggle'); diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoadminForm.php similarity index 99% rename from ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaForm.php rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoadminForm.php index a34af55a..9dfc18c8 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaForm.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoadminForm.php @@ -111,7 +111,7 @@ token=response.= csrf_token() ?>; yeniden(token); // redirect - new_location = '= site_url("presupuestos/presupuestoadmin/edit/") ?>' + response.id + new_location = '= site_url("presupuestoadmin/edit/") ?>' + response.id window.location.href = new_location; } }).fail(function (jqXHR, textStatus, error) { @@ -136,7 +136,7 @@ token=response.= csrf_token() ?>; yeniden(token); // redirect - new_location = '= site_url("presupuestos/presupuestoadmin/edit/") ?>' + response.id + new_location = '= site_url("presupuestoadmin/edit/") ?>' + response.id window.location.href = new_location; } }).fail(function (jqXHR, textStatus, error) { diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php b/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php index 49c184b2..3d7ee781 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php @@ -289,13 +289,13 @@ theTable.on( 'draw.dt', function () { $(document).on('click', '.btn-edit', function(e) { - window.location.href = `/presupuestos/presupuestoadmin/edit/${$(this).attr('data-id')}/`; + window.location.href = `/presupuestoadmin/edit/${$(this).attr('data-id')}/`; }); theTable.on('click', 'tr', function () { var data = theTable.row(this).data(); console.log(data); - var url = '/presupuestos/presupuestoadmin/edit/' + data['id']; + var url = '/presupuestoadmin/edit/' + data['id']; window.location.href = url; }); @@ -309,7 +309,7 @@ $(document).on('click', '.btn-remove', function(e) { const row = $(this).closest('tr'); if ($.isNumeric(dataId)) { $.ajax({ - url: `/presupuestos/presupuestoadmin/delete/${dataId}`, + url: `/presupuestoadmin/delete/${dataId}`, method: 'GET', }).done((data, textStatus, jqXHR) => { $('#confirm2delete').modal('toggle'); diff --git a/ci4/app/Views/themes/vuexy/form/test_js/test_js.js b/ci4/app/Views/themes/vuexy/form/test_js/test_js.js index c4ce9ad3..c2df9850 100644 --- a/ci4/app/Views/themes/vuexy/form/test_js/test_js.js +++ b/ci4/app/Views/themes/vuexy/form/test_js/test_js.js @@ -3,7 +3,7 @@ /* -fetch("/presupuestos/presupuestoadmin/datatable", { +fetch("/presupuestoadmin/datatable", { method: 'POST', body: JSON.stringify(data), diff --git a/ci4/app/Views/themes/vuexy/main/menus/presupuesto_menu.php b/ci4/app/Views/themes/vuexy/main/menus/presupuesto_menu.php index 19770806..0b253bdb 100644 --- a/ci4/app/Views/themes/vuexy/main/menus/presupuesto_menu.php +++ b/ci4/app/Views/themes/vuexy/main/menus/presupuesto_menu.php @@ -23,55 +23,55 @@ if (auth()->user()->can('presupuesto.menu')) {