diff --git a/ci4/app/Config/Routes.php b/ci4/app/Config/Routes.php
index a9baa5bc..06df20fe 100644
--- a/ci4/app/Config/Routes.php
+++ b/ci4/app/Config/Routes.php
@@ -556,20 +556,20 @@ $routes->group('clientedirecciones', ['namespace' => 'App\Controllers\Clientes']
$routes->resource('clientedirecciones', ['namespace' => 'App\Controllers\Clientes', 'controller' => 'Clientedirecciones', 'except' => 'show,new,create,update']);
-$routes->group('cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
- $routes->get('list/(:num)', 'Cosidotapablanda::list/$1', ['as' => 'cosidotapablandaList']); // HOMOGENIZAR CON ARGS DINAMICOS!!!
- $routes->get('add/(:num)', 'Cosidotapablanda::add/$1', ['as' => 'newCosidotapablanda']);
- $routes->get('edit/(:any)', 'Cosidotapablanda::edit/$1', ['as' => 'editarPresupuesto']);
- $routes->post('add/(:num)', 'Cosidotapablanda::add/$1', ['as' => 'createCosidotapablanda']);
- $routes->post('create', 'Cosidotapablanda::create', ['as' => 'ajaxCreateCosidotapablanda']);
- $routes->put('(:num)/update', 'Cosidotapablanda::update/$1', ['as' => 'ajaxUpdateCosidotapablanda']);
- $routes->post('edit/(:num)', 'Cosidotapablanda::edit/$1', ['as' => 'updateCosidotapablanda']);
- $routes->post('datatable', 'Cosidotapablanda::datatable', ['as' => 'dataTableOfCosidotapablanda']);
- $routes->post('datatable_2', 'Cosidotapablanda::datatable_2', ['as' => 'updateDataOfCosidotapablanda']);
- $routes->post('allmenuitems', 'Cosidotapablanda::allItemsSelect', ['as' => 'select2ItemsOfCosidotapablanda']);
- $routes->post('menuitems', 'Cosidotapablanda::menuItems', ['as' => 'menuItemsOfCosidotapablanda']);
+$routes->group('presupuestoadmin', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
+ $routes->get('list/(:num)', 'Presupuestoadmin::list/$1', ['as' => 'presupuestoAdminList']); // HOMOGENIZAR CON ARGS DINAMICOS!!!
+ $routes->get('add/(:num)', 'Presupuestoadmin::add/$1', ['as' => 'newPresupuestoAdmin']);
+ $routes->get('edit/(:any)', 'Presupuestoadmin::edit/$1', ['as' => 'editarPresupuestoAdmin']);
+ $routes->post('add/(:num)', 'Presupuestoadmin::add/$1', ['as' => 'createPresupuestoAdmin']);
+ $routes->post('create', 'Presupuestoadmin::create', ['as' => 'ajaxCreatePresupuestoAdmin']);
+ $routes->put('(:num)/update', 'Presupuestoadmin::update/$1', ['as' => 'ajaxUpdatePresupuestoAdmin']);
+ $routes->post('edit/(:num)', 'Presupuestoadmin::edit/$1', ['as' => 'updatePresupuestoAdmin']);
+ $routes->post('datatable', 'Presupuestoadmin::datatable', ['as' => 'dataTableOfPresupuestoAdmin']);
+ $routes->post('datatable_2', 'Presupuestoadmin::datatable_2', ['as' => 'updateDataOfPresupuestoAdmin']);
+ $routes->post('allmenuitems', 'Presupuestoadmin::allItemsSelect', ['as' => 'select2ItemsOfPresupuestoAdmin']);
+ $routes->post('menuitems', 'Presupuestoadmin::menuItems', ['as' => 'menuItemsOfPresupuestoAdmin']);
});
-$routes->resource('cosidotapablanda', ['namespace' => 'App\Controllers\Presupuestos', 'controller' => 'Cosidotapablanda', 'except' => 'show,new,create,update']);
+$routes->resource('presupuestoadmin', ['namespace' => 'App\Controllers\Presupuestos', 'controller' => 'Presupuestoadmin', 'except' => 'show,new,create,update']);
$routes->group('presupuestocliente', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) {
$routes->get('list', 'Presupuestocliente::list', ['as' => 'listaPresupuestos']);
diff --git a/ci4/app/Controllers/Js_loader.php b/ci4/app/Controllers/Js_loader.php
index 58b9aa02..e402c125 100755
--- a/ci4/app/Controllers/Js_loader.php
+++ b/ci4/app/Controllers/Js_loader.php
@@ -14,10 +14,10 @@ class Js_loader extends BaseController
- function comparadorCosidoTapaBlanda_js()
+ function comparadorPresupuestoAdmin_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/comparador.js');
+ return view('themes/vuexy/form/presupuestos/admin/comparador.js');
}
@@ -37,49 +37,49 @@ class Js_loader extends BaseController
function datosLibro_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js');
+ return view('themes/vuexy/form/presupuestos/admin/_datosLibroItems.js');
}
function previsualizador_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/previews.js');
+ return view('themes/vuexy/form/presupuestos/admin/previews.js');
}
function lineasPresupuesto_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js');
+ return view('themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js');
}
function tiradasAlternativas_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.js');
+ return view('themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.js');
}
function datosServicios_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js');
+ return view('themes/vuexy/form/presupuestos/admin/_datosServiciosItems.js');
}
function datosEnvios_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios.js');
+ return view('themes/vuexy/form/presupuestos/admin/_datosEnvios.js');
}
function resumenPresupuestos_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestos.js');
+ return view('themes/vuexy/form/presupuestos/admin/_resumenPresupuestos.js');
}
function presupuestos_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
- return view('themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestos.js');
+ return view('themes/vuexy/form/presupuestos/admin/_presupuestos.js');
}
function presupuestoCliente_js()
diff --git a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php b/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php
old mode 100755
new mode 100644
similarity index 98%
rename from ci4/app/Controllers/Presupuestos/Cosidotapablanda.php
rename to ci4/app/Controllers/Presupuestos/Presupuestoadmin.php
index fa04075c..195919e0
--- a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php
+++ b/ci4/app/Controllers/Presupuestos/Presupuestoadmin.php
@@ -19,22 +19,22 @@ use App\Models\Presupuestos\PresupuestoServiciosExtraModel;
use App\Services\PresupuestoService;
use Exception;
-class Cosidotapablanda extends \App\Controllers\BaseResourceController
+class Presupuestoadmin extends \App\Controllers\BaseResourceController
{
protected $modelName = "PresupuestoModel";
protected $format = 'json';
- protected static $singularObjectName = 'Cosido Tapa Blanda';
- protected static $singularObjectNameCc = 'Cosidotapablanda';
- protected static $pluralObjectName = 'Cosidos Tapa Blanda';
- protected static $pluralObjectNameCc = 'cosidosTapaBlanda';
+ protected static $singularObjectName = 'Presupuesto Admin';
+ protected static $singularObjectNameCc = 'Presupuestoadmin';
+ protected static $pluralObjectName = 'Presupuestos Admin';
+ protected static $pluralObjectNameCc = 'PresupuestosAdmin';
- protected static $controllerSlug = 'cosidotapablanda';
+ protected static $controllerSlug = 'presupuestoadmin';
- protected static $viewPath = 'themes/vuexy/form/presupuestos/cosidotapablanda/';
+ protected static $viewPath = 'themes/vuexy/form/presupuestos/admin/';
- protected $indexRoute = 'cosidotapablandaList';
+ protected $indexRoute = 'presupuestoadminList';
@@ -71,7 +71,7 @@ class Cosidotapablanda extends \App\Controllers\BaseResourceController
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
- return view(static::$viewPath . 'viewCosidotapablandaList', $viewData);
+ return view(static::$viewPath . 'viewPresupuestoAdminList', $viewData);
}
@@ -126,7 +126,7 @@ class Cosidotapablanda 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/cosidotapablanda/edit/' . $id))->with('sweet-success', $message);
+ return redirect()->to(site_url('presupuestos/presupuestoadmin/edit/' . $id))->with('sweet-success', $message);
else :
return $this->redirect2listView('sweet-success', $message);
endif;
@@ -151,7 +151,7 @@ class Cosidotapablanda extends \App\Controllers\BaseResourceController
$this->viewData['POD'] = $this->getPOD();
- $this->viewData['formAction'] = route_to('createCosidotapablanda', $tipo_impresion_id);
+ $this->viewData['formAction'] = route_to('createPresupuestoAdmin', $tipo_impresion_id);
$this->viewData = array_merge($this->viewData, $this->getStringsFromTipoImpresion($tipo_impresion_id));
@@ -387,7 +387,7 @@ class Cosidotapablanda extends \App\Controllers\BaseResourceController
$this->viewData = array_merge($this->viewData, $this->getStringsFromTipoImpresion($presupuestoEntity->tipo_impresion_id));
- $this->viewData['formAction'] = route_to('updateCosidotapablanda', $id);
+ $this->viewData['formAction'] = route_to('updatePresupuestoAdmin', $id);
// Si se ha llamado a esta funcion porque se ha duplicado el presupuesto
// se actualiza la bbdd para que sólo ejecute algunas funciones una vez
@@ -840,7 +840,7 @@ class Cosidotapablanda extends \App\Controllers\BaseResourceController
// Breadcrumbs
$viewData['breadcrumb'] = [
['title' => lang("App.menu_presupuestos"), 'route' => "javascript:void(0);", 'active' => false],
- ['title' => $breadcrumbTitle, 'route' => site_url('presupuestos/cosidotapablanda/list/' . $tipo_impresion_id), 'active' => true]
+ ['title' => $breadcrumbTitle, 'route' => site_url('presupuestos/presupuestoadmin/list/' . $tipo_impresion_id), 'active' => true]
];
return $viewData;
diff --git a/ci4/app/Language/en/Presupuestos.php b/ci4/app/Language/en/Presupuestos.php
index cce0c828..a0d07b78 100755
--- a/ci4/app/Language/en/Presupuestos.php
+++ b/ci4/app/Language/en/Presupuestos.php
@@ -6,7 +6,7 @@ return [
'moduleTitleCosidoTB' => 'Budget for Softcover Stitched Book',
'moduleTitleFresadoTB' => 'Budget for Softcover Milling Book',
- 'presupuestoCosidotapablandaList' => 'List of budgets for Softcover Stitched Books',
+ 'presupuestoPresupuestoAdminList' => 'List of budgets for Softcover Stitched Books',
'presupuestoFresadotapablandaList' => 'List of budgets for Milling Stitched Books',
'presupuesto' => 'Budget',
@@ -51,7 +51,7 @@ return [
'merma' => 'Weakening',
'mermacubierta' => 'Cover weakening',
'tipoImpresion' => 'Printing type',
- 'papelesComparadorCosidoTapaBlanda' => 'Interior and cover papers',
+ 'papelesComparadorPresupuestoAdmin' => 'Interior and cover papers',
'posicionPagColor' => 'Color pages position',
'colorPageInstructions' => 'Enter the position of the color pages within the book. E.g., 3,5,7 or 4-10,20,155.',
'numeroPaginas' => 'Nº Pages',
diff --git a/ci4/app/Language/es/Presupuestos.php b/ci4/app/Language/es/Presupuestos.php
index d9217b5f..6290d962 100755
--- a/ci4/app/Language/es/Presupuestos.php
+++ b/ci4/app/Language/es/Presupuestos.php
@@ -17,7 +17,7 @@ return [
'presupuestoFresadotapaduraList' => 'Lista presupuestos Libros Fresado Tapa Dura',
'presupuestoFresadotapablandaList' => 'Lista presupuestos Libros Fresado Tapa Blanda',
'presupuestoCosidotapaduraList' => 'Lista presupuestos Libros Cosido Tapa Dura',
- 'presupuestoCosidotapablandaList' => 'Lista presupuestos Libros Cosido Tapa Blanda',
+ 'presupuestoPresupuestoAdminList' => 'Lista presupuestos Libros Cosido Tapa Blanda',
'presupuesto' => 'Presupuesto',
'presupuestos' => 'Presupuestos',
@@ -80,7 +80,7 @@ return [
'merma' => 'Merma',
'mermacubierta' => 'Merma cubierta',
'tipoImpresion' => 'Tipo de impresión',
- 'papelesComparadorCosidoTapaBlanda' => 'Papeles interior y cubierta',
+ 'papelesComparadorPresupuestoAdmin' => 'Papeles interior y cubierta',
'posicionPagColor' => 'Posición páginas a color',
'papelDiferente' => 'Papel color y negro diferente',
'paginasColorConsecutivas' => 'Páginas color consecutivas',
diff --git a/ci4/app/Models/Chat/ChatModel.php b/ci4/app/Models/Chat/ChatModel.php
index 057a9153..99cf1e51 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/cosidotapablanda/edit/".$row->presupuestoId;
+ $row->uri = "/presupuestos/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/cosidotapablanda/edit/".$row->presupuestoId;
+ $row->uri = "/presupuestos/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/pedidos/_lineasItems.php b/ci4/app/Views/themes/vuexy/form/pedidos/_lineasItems.php
index be7f622a..89399796 100644
--- a/ci4/app/Views/themes/vuexy/form/pedidos/_lineasItems.php
+++ b/ci4/app/Views/themes/vuexy/form/pedidos/_lineasItems.php
@@ -125,7 +125,7 @@ var tableOfLineasPedido = new DataTable('#tableOfLineasPedido',{
$(document).on('click', '.btn-view', function(e) {
user()->inGroup('admin') || auth()->user()->inGroup('beta')): ?>
- var url = '= route_to('editarPresupuesto', ':id') ?>';
+ var url = '= route_to('editarPresupuestoAdmin', ':id') ?>';
var url = '= route_to('editarPresupuestoCliente2', ':id') ?>';
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_comentariosItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_comentariosItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_comentariosItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_comentariosItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosEnvios.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosEnvios.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosEnvios.php
similarity index 97%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosEnvios.php
index 38ae8ce4..26a0f0b7 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosEnvios.php
@@ -9,7 +9,7 @@
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestoDireccionesForm") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_presupuestoDireccionesForm") ?>
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosLibroItems.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosLibroItems.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosLibroItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosLibroItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoClienteItems.php
similarity index 98%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoClienteItems.php
index 7c68175f..bf952469 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoClienteItems.php
@@ -45,7 +45,7 @@
-
= lang("Presupuestos.papelesComparadorCosidoTapaBlanda") ?>
+ = lang("Presupuestos.papelesComparadorPresupuestoAdmin") ?>
@@ -587,7 +587,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -620,7 +620,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -658,7 +658,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -687,7 +687,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
data: function (params) {
@@ -1104,7 +1104,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1173,7 +1173,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1252,7 +1252,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1331,7 +1331,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1412,7 +1412,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1609,7 +1609,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1653,7 +1653,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1699,7 +1699,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1745,7 +1745,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1787,7 +1787,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1834,7 +1834,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js
similarity index 98%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js
index e49ed7ab..185aacd1 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js
@@ -275,7 +275,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
await $.ajax({
type: 'post',
- url: window.routes_lp.updateDataOfCosidotapablanda,
+ url: window.routes_lp.updateDataOfPresupuestoAdmin,
data: datos,
dataType: 'json',
@@ -1528,7 +1528,7 @@ async function set_lp_bn_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bn_gramaje').empty()
},
@@ -1568,7 +1568,7 @@ async function set_lp_bn_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bn_papelImpresion').empty()
$('#lp_bn_maquina').empty()
@@ -1604,7 +1604,7 @@ async function set_lp_bn_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bn_maquina').empty()
clear_lp_bn(false)
@@ -1676,7 +1676,7 @@ async function calcularPresupuesto_bn(input_data={}, updatedTipologias = false){
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1903,7 +1903,7 @@ async function set_lp_color_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_color_gramaje').empty()
},
@@ -1941,7 +1941,7 @@ async function set_lp_color_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_color_papelImpresion').empty()
$('#lp_color_maquina').empty()
@@ -1977,7 +1977,7 @@ async function set_lp_color_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_color_maquina').empty()
clear_lp_color(false)
@@ -2048,7 +2048,7 @@ async function calcularPresupuesto_color(input_data={}, updatedTipologias = fals
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -2269,7 +2269,7 @@ async function set_lp_bnhq_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bnhq_gramaje').empty()
},
@@ -2307,7 +2307,7 @@ async function set_lp_bnhq_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bnhq_papelImpresion').empty()
$('#lp_bnhq_maquina').empty()
@@ -2343,7 +2343,7 @@ async function set_lp_bnhq_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bnhq_maquina').empty()
clear_lp_bnhq(false)
@@ -2484,7 +2484,7 @@ async function calcularPresupuesto_bnhq(input_data={}, updatedTipologias = false
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -2633,7 +2633,7 @@ async function set_lp_colorhq_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_colorhq_gramaje').empty()
},
@@ -2671,7 +2671,7 @@ async function set_lp_colorhq_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_colorhq_papelImpresion').empty()
$('#lp_colorhq_maquina').empty()
@@ -2707,7 +2707,7 @@ async function set_lp_colorhq_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_colorhq_maquina').empty()
clear_lp_colorhq(false)
@@ -2854,7 +2854,7 @@ async function calcularPresupuesto_colorhq(input_data={}, updatedTipologias = fa
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -3004,7 +3004,7 @@ async function set_lp_rot_bn_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_bn_gramaje').empty()
},
@@ -3042,7 +3042,7 @@ async function set_lp_rot_bn_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_bn_papelImpresion').empty()
$('#lp_rot_bn_maquina').empty()
@@ -3077,7 +3077,7 @@ async function set_lp_rot_bn_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_bn_maquina').empty()
clear_lp_rot_bn(false)
@@ -3192,7 +3192,7 @@ async function calcularPresupuesto_rot_bn(fromComparador=false, updatedTipologia
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -3376,7 +3376,7 @@ async function set_lp_rot_color_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_color_gramaje').empty()
},
@@ -3414,7 +3414,7 @@ async function set_lp_rot_color_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_color_papelImpresion').empty()
$('#lp_rot_color_maquina').empty()
@@ -3450,7 +3450,7 @@ async function set_lp_rot_color_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_color_maquina').empty()
clear_lp_rot_color(false)
@@ -3571,7 +3571,7 @@ async function calcularPresupuesto_rot_color(fromComparador=false, updatedTipolo
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -3753,7 +3753,7 @@ async function set_lp_cubierta_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_cubierta_gramaje').empty()
},
@@ -3792,7 +3792,7 @@ async function set_lp_cubierta_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_cubierta_papelImpresion').empty()
$('#lp_cubierta_maquina').empty()
@@ -3829,7 +3829,7 @@ async function set_lp_cubierta_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_cubierta_maquina').empty()
clear_lp_cubierta(false)
@@ -3919,7 +3919,7 @@ async function calcularPresupuesto_cubierta(fromComparador=false, input_data={})
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -4066,7 +4066,7 @@ async function set_lp_sobrecubierta_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_sobrecubierta_gramaje').empty()
},
@@ -4105,7 +4105,7 @@ async function set_lp_sobrecubierta_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_sobrecubierta_papelImpresion').empty()
$('#lp_sobrecubierta_maquina').empty()
@@ -4142,7 +4142,7 @@ async function set_lp_sobrecubierta_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_sobrecubierta_maquina').empty()
clear_lp_sobrecubierta(false)
@@ -4215,7 +4215,7 @@ async function calcularPresupuesto_sobrecubierta(fromComparador=false, input_dat
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -4436,7 +4436,7 @@ async function calcularPresupuesto_guardas(fromComparador=false, input_data={}){
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -4609,7 +4609,7 @@ async function set_lp_guardas_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_guardas_maquina').empty()
clear_lp_guardas(false)
@@ -4640,7 +4640,7 @@ async function set_lp_guardas_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_guardas_papelImpresion').empty()
$('#lp_guardas_maquina').empty()
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.php
similarity index 97%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.php
index be3fab63..330ec907 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.php
@@ -90,8 +90,8 @@ window.papelGenericoRotativaColorList = ;
window.routes_lp = {
- menuItemsOfCosidotapablanda: '= route_to("menuItemsOfCosidotapablanda") ?>',
- updateDataOfCosidotapablanda: '= route_to("updateDataOfCosidotapablanda") ?>',
+ menuItemsOfPresupuestoAdmin: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
+ updateDataOfPresupuestoAdmin: '= route_to("updateDataOfPresupuestoAdmin") ?>',
}
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_mensajeria.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_mensajeria.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_mensajeria.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_mensajeria.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestoDireccionesForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestoDireccionesForm.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestoDireccionesForm.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestoDireccionesForm.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestos.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestos.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestos.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestos.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_previewItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_previewItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_previewItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_previewItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestoItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestoItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestoItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestos.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestos.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestos.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestos.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/comparador.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/comparador.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/comparador.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/comparador.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/previews.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/previews.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/previews.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/previews.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaForm.php
similarity index 91%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaForm.php
index ee9ed98d..a34af55a 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaForm.php
@@ -25,18 +25,18 @@
value="= $isCosido ?>">
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosLibroItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_previewItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_comentariosItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosPresupuestoClienteItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_previewItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosServiciosItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosEnvios") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_comentariosItems") ?>
= view("themes/vuexy/components/chat_internal_presupuesto",data:["modelId" => $presupuestoId,"type" => "presupuesto"]) ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestoItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_resumenPresupuestoItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems") ?>
@@ -57,7 +57,7 @@
value="= lang("Basic.global.Clone") ?>"
/>
- = anchor(route_to("cosidotapablandaList", $tipo_impresion_id), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
+ = anchor(route_to("presupuestoAdminList", $tipo_impresion_id), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
@@ -98,7 +98,7 @@
asyncMessageDialog('= lang("Basic.global.Warning") ?>', '= lang("Presupuestos.duplicarConTipologias") ?>', function() {
$.ajax({
type: 'post',
- url: '= route_to("updateDataOfCosidotapablanda") ?>',
+ url: '= route_to("updateDataOfPresupuestoAdmin") ?>',
data: {
tipo: 'duplicar',
@@ -111,7 +111,7 @@
token=response.= csrf_token() ?>;
yeniden(token);
// redirect
- new_location = '= site_url("presupuestos/cosidotapablanda/edit/") ?>' + response.id
+ new_location = '= site_url("presupuestos/presupuestoadmin/edit/") ?>' + response.id
window.location.href = new_location;
}
}).fail(function (jqXHR, textStatus, error) {
@@ -123,7 +123,7 @@
else{
$.ajax({
type: 'post',
- url: '= route_to("updateDataOfCosidotapablanda") ?>',
+ url: '= route_to("updateDataOfPresupuestoAdmin") ?>',
data: {
tipo: 'duplicar',
@@ -136,7 +136,7 @@
token=response.= csrf_token() ?>;
yeniden(token);
// redirect
- new_location = '= site_url("presupuestos/cosidotapablanda/edit/") ?>' + response.id
+ new_location = '= site_url("presupuestos/presupuestoadmin/edit/") ?>' + response.id
window.location.href = new_location;
}
}).fail(function (jqXHR, textStatus, error) {
@@ -386,7 +386,7 @@ $('#bc-save').on( "click", function() {
-
+
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaList.php
similarity index 97%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaList.php
index ed0e0277..87a88acb 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewCosidotapablandaList.php
@@ -10,7 +10,7 @@
= view('themes/_commonPartialsBs/_alertBoxes'); ?>
@@ -164,7 +164,7 @@ theTable = $('#tableOfPresupuestos').DataTable({
url: "/themes/vuexy/vendor/libs/datatables-sk/plugins/i18n/es-ES.json"
},
ajax : $.fn.dataTable.pipeline( {
- url: '= route_to('dataTableOfCosidotapablanda') ?>',
+ url: '= route_to('dataTableOfPresupuestoAdmin') ?>',
data: function (d) {
d.tipo_impresion_id = '';
},
@@ -231,7 +231,7 @@ theTable.on( 'draw.dt', function () {
$(document).on('click', '.btn-edit', function(e) {
- window.location.href = `/presupuestos/cosidotapablanda/edit/${$(this).attr('data-id')}/`;
+ window.location.href = `/presupuestos/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/cosidotapablanda/delete/${dataId}`,
+ url: `/presupuestos/presupuestoadmin/delete/${dataId}`,
method: 'GET',
}).done((data, textStatus, jqXHR) => {
$('#confirm2delete').modal('toggle');
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 e29501d2..49c184b2 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/cosidotapablanda/edit/${$(this).attr('data-id')}/`;
+ window.location.href = `/presupuestos/presupuestoadmin/edit/${$(this).attr('data-id')}/`;
});
theTable.on('click', 'tr', function () {
var data = theTable.row(this).data();
console.log(data);
- var url = '/presupuestos/cosidotapablanda/edit/' + data['id'];
+ var url = '/presupuestos/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/cosidotapablanda/delete/${dataId}`,
+ url: `/presupuestos/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 282ca8ac..c4ce9ad3 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/cosidotapablanda/datatable", {
+fetch("/presupuestos/presupuestoadmin/datatable", {
method: 'POST',
body: JSON.stringify(data),
diff --git a/ci4/app/Views/themes/vuexy/form/test_js/viewTest.php b/ci4/app/Views/themes/vuexy/form/test_js/viewTest.php
index 5d79d503..9fb473a3 100644
--- a/ci4/app/Views/themes/vuexy/form/test_js/viewTest.php
+++ b/ci4/app/Views/themes/vuexy/form/test_js/viewTest.php
@@ -21,7 +21,7 @@
$.ajax({
type:"POST",
- url:"cosidotapablanda/datatable",
+ url:"presupuestoadmin/datatable",
data:datos, // data recive un objeto con la informacion que se enviara al servidor
success:function(data){ //success es una funcion que se utiliza si el servidor retorna informacion
console.log(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 6113ae93..19770806 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')) {