mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Cambiando referencias a cosidotapablanca por presupuestoadmin
This commit is contained in:
@ -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']);
|
||||
|
||||
@ -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()
|
||||
|
||||
26
ci4/app/Controllers/Presupuestos/Cosidotapablanda.php → ci4/app/Controllers/Presupuestos/Presupuestoadmin.php
Executable file → Normal file
26
ci4/app/Controllers/Presupuestos/Cosidotapablanda.php → ci4/app/Controllers/Presupuestos/Presupuestoadmin.php
Executable file → Normal file
@ -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;
|
||||
@ -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',
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -125,7 +125,7 @@ var tableOfLineasPedido = new DataTable('#tableOfLineasPedido',{
|
||||
|
||||
$(document).on('click', '.btn-view', function(e) {
|
||||
<?php if (auth()->user()->inGroup('admin') || auth()->user()->inGroup('beta')): ?>
|
||||
var url = '<?= route_to('editarPresupuesto', ':id') ?>';
|
||||
var url = '<?= route_to('editarPresupuestoAdmin', ':id') ?>';
|
||||
<?php else: ?>
|
||||
var url = '<?= route_to('editarPresupuestoCliente2', ':id') ?>';
|
||||
<?php endif; ?>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<div id="accordionEnviosTip" class="accordion-collapse collapse show" data-bs-parent="#accordionEnvios">
|
||||
<div class="accordion-body">
|
||||
<div id='alert-envios'></div>
|
||||
<?= view("themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestoDireccionesForm") ?>
|
||||
<?= view("themes/vuexy/form/presupuestos/admin/_presupuestoDireccionesForm") ?>
|
||||
<div id='rowTable' class='row'>
|
||||
<table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable px-2 update-resumen-presupuesto" style="width: 95%;">
|
||||
<thead>
|
||||
@ -45,7 +45,7 @@
|
||||
|
||||
<div class="divider divider-dark text-start mb-1">
|
||||
<div class="divider-text">
|
||||
<h5><?= lang("Presupuestos.papelesComparadorCosidoTapaBlanda") ?></h5>
|
||||
<h5><?= lang("Presupuestos.papelesComparadorPresupuestoAdmin") ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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()
|
||||
@ -90,8 +90,8 @@ window.papelGenericoRotativaColorList = <?php echo json_encode($papelGenericoRot
|
||||
window.lineasPresupuestoList = <?php echo json_encode($lineasPresupuesto); ?>;
|
||||
|
||||
window.routes_lp = {
|
||||
menuItemsOfCosidotapablanda: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
||||
updateDataOfCosidotapablanda: '<?= route_to("updateDataOfCosidotapablanda") ?>',
|
||||
menuItemsOfPresupuestoAdmin: '<?= route_to("menuItemsOfPresupuestoAdmin") ?>',
|
||||
updateDataOfPresupuestoAdmin: '<?= route_to("updateDataOfPresupuestoAdmin") ?>',
|
||||
|
||||
}
|
||||
|
||||
@ -25,18 +25,18 @@
|
||||
value="<?= $isCosido ?>"></input>
|
||||
<input type="hidden" name="POD" id="POD" class="form-control"
|
||||
value="<?= $POD ?>"></input>
|
||||
<?= 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") ?>
|
||||
<?php if (str_contains($formAction, 'edit')): ?>
|
||||
<?= 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") ?>
|
||||
<?php else: ?>
|
||||
<input type="hidden" name="total_presupuesto" id="total_presupuesto" class="form-control"
|
||||
value="0.0"></input>
|
||||
@ -57,7 +57,7 @@
|
||||
value="<?= lang("Basic.global.Clone") ?>"
|
||||
/>
|
||||
<?php endif; ?>
|
||||
<?= 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",]) ?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@ -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() {
|
||||
<script src="<?= site_url('js_loader/datosEnvios_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/resumenPresupuestos_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/presupuestos_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/comparadorCosidoTapaBlanda_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/comparadorPresupuestoAdmin_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/previsualizador_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/lineasPresupuesto_js') ?>"></script>
|
||||
<script src="<?= site_url('js_loader/tiradasAlternativas_js') ?>"></script>
|
||||
@ -10,7 +10,7 @@
|
||||
<div class="card card-info">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?= $pageTitle ?></h3>
|
||||
<?=anchor(route_to('newCosidotapablanda', $tipo_impresion_id), lang('Basic.global.addNew').' '.lang('Presupuestos.presupuesto'), ['class'=>'btn btn-primary ']); ?>
|
||||
<?=anchor(route_to('newPresupuestoAdmin', $tipo_impresion_id), lang('Basic.global.addNew').' '.lang('Presupuestos.presupuesto'), ['class'=>'btn btn-primary ']); ?>
|
||||
</div><!--//.card-header -->
|
||||
<div class="card-body">
|
||||
<?= 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 = '<?php echo $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');
|
||||
@ -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');
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
/*
|
||||
fetch("/presupuestos/cosidotapablanda/datatable", {
|
||||
fetch("/presupuestos/presupuestoadmin/datatable", {
|
||||
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -23,55 +23,55 @@ if (auth()->user()->can('presupuesto.menu')) {
|
||||
</a>
|
||||
<ul class="menu-sub">
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/1") ?>"
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/1") ?>"
|
||||
class="menu-link">
|
||||
<?= lang("App.menu_libros_fresasdo_tapa_dura") ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/2") ?>"
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/2") ?>"
|
||||
class="menu-link">
|
||||
<?= lang("App.menu_libros_fresasdo_tapa_blanda") ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/3") ?>"
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/3") ?>"
|
||||
class="menu-link">
|
||||
<?= lang("App.menu_libros_cosido_tapa_dura") ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/4") ?>"
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/4") ?>"
|
||||
class="menu-link">
|
||||
<?= lang("App.menu_libros_cosido_tapa_blanda") ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/21") ?>" class="menu-link">
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/21") ?>" class="menu-link">
|
||||
<?= lang("App.menu_libros_grapados") ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/5") ?>" class="menu-link">
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/5") ?>" class="menu-link">
|
||||
<?= lang("App.menu_libros_espiral_tapa_dura") ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/6") ?>"
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/6") ?>"
|
||||
class="menu-link">
|
||||
<?= lang("App.menu_libros_espiral_tapa_blanda") ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/7") ?>" class="menu-link">
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/7") ?>" class="menu-link">
|
||||
<?= lang("App.menu_libros_wireo_tapa_dura") ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="<?= site_url("presupuestos/cosidotapablanda/list/8") ?>" class="menu-link">
|
||||
<a href="<?= site_url("presupuestos/presupuestoadmin/list/8") ?>" class="menu-link">
|
||||
<?= lang("App.menu_libros_wireo_tapa_blanda") ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user