mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'main' into 'mod/pedidos_user_fechas'
Main See merge request jjimenez/safekat!689
This commit is contained in:
@ -591,6 +591,7 @@
|
||||
<button id="convert2template" type="button" class="btn btn-secondary waves-effect waves-light float-start"><?= lang("ClientePrecios.convertir2plantilla")?></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
|
||||
<table id="tableOfPrecios" class="table table-striped table-hover" style="width: 100%;">
|
||||
<thead>
|
||||
@ -614,6 +615,7 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -637,6 +639,7 @@
|
||||
|
||||
<div class="tab-pane fade" id="domicilio-entrega" role="tabpanel">
|
||||
<?= view("themes/vuexy/form/clientes/cliente/_clienteDireccionesForm") ?>
|
||||
<div class="table-responsive">
|
||||
<table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -657,6 +660,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="presupuestos" role="tabpanel">
|
||||
<?= view("themes/vuexy/form/clientes/cliente/_presupuestosClienteItems") ?>
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</div><!--//.card-header -->
|
||||
<form id="clienteForm" data-cliente="<?=$clienteEntity->id?>"
|
||||
data-url="<?= auth()->user()->inGroup('cliente-admin') || auth()->user()->inGroup('cliente-editor') ?
|
||||
'/presupuestos/presupuestocliente/edit/' : '/presupuestoadmin/edit//' ?>"
|
||||
'/presupuestos/presupuestocliente/edit/' : '/presupuestoadmin/edit/' ?>"
|
||||
method="post" class="card-body" action="<?= $formAction ?>">
|
||||
<?= csrf_field() ?>
|
||||
<div class="card-body">
|
||||
|
||||
@ -18,7 +18,7 @@ class ClienteFacturacion {
|
||||
$(this).tab('show');
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-edit', function (e) {
|
||||
$('#tableOfFacturasCliente').on('click', '.btn-edit', function (e) {
|
||||
window.location.href = '/facturas/edit/' + $(this).attr('data-id');
|
||||
});
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ class ClientePedidos {
|
||||
$(this).tab('show');
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-edit', function (e) {
|
||||
$('#tableOfPedidosCliente').on('click', '.btn-edit', function (e) {
|
||||
window.location.href = '/pedidos/edit/' + $(this).attr('data-id');
|
||||
});
|
||||
|
||||
|
||||
@ -17,8 +17,8 @@ class ClientePresupuestos {
|
||||
$(this).tab('show');
|
||||
});
|
||||
|
||||
$(document).on('click', '.btn-edit', function (e) {
|
||||
window.location.href = $('#clienteForm').attr('data-url'); + $(this).attr('data-id');
|
||||
$('#tableOfPresupuestosCliente').on('click', '.btn-edit', function (e) {
|
||||
window.location.href = $('#clienteForm').attr('data-url') + $(this).attr('data-id');
|
||||
});
|
||||
|
||||
const lastColNr = $('#tableOfPresupuestosCliente').find("tr:first th").length - 1;
|
||||
|
||||
Reference in New Issue
Block a user