Cambiando referencias a cosidotapablanca por presupuestoadmin

This commit is contained in:
imnavajas
2024-11-14 21:31:22 +01:00
parent b512875739
commit 9c14e77b10
34 changed files with 132 additions and 132 deletions

View File

@ -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; ?>

View File

@ -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>

View File

@ -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',

View File

@ -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()

View File

@ -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") ?>',
}

View File

@ -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>

View File

@ -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');

View File

@ -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');

View File

@ -3,7 +3,7 @@
/*
fetch("/presupuestos/cosidotapablanda/datatable", {
fetch("/presupuestos/presupuestoadmin/datatable", {
method: 'POST',
body: JSON.stringify(data),

View File

@ -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)

View File

@ -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>