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,29 +591,31 @@
|
||||
<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>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th><?= lang('ClientePrecios.tipo') ?></th>
|
||||
<th><?= lang('ClientePrecios.tipo_maquina') ?></th>
|
||||
<th><?= lang('ClientePrecios.tipo_impresion') ?></th>
|
||||
<th><?= lang('ClientePrecios.tiempo_min') ?></th>
|
||||
<th><?= lang('ClientePrecios.tiempo_max') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.precio_hora') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.margen') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.total_precio_hora') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.user_updated_id') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.updated_at') ?></th>
|
||||
<th class="noFilter noVis">plantilla_id</th>
|
||||
<th class="text-nowrap noFilter noVis" style="min-width:100px"><?= lang('Basic.global.Action') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<table id="tableOfPrecios" class="table table-striped table-hover" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th><?= lang('ClientePrecios.tipo') ?></th>
|
||||
<th><?= lang('ClientePrecios.tipo_maquina') ?></th>
|
||||
<th><?= lang('ClientePrecios.tipo_impresion') ?></th>
|
||||
<th><?= lang('ClientePrecios.tiempo_min') ?></th>
|
||||
<th><?= lang('ClientePrecios.tiempo_max') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.precio_hora') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.margen') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.total_precio_hora') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.user_updated_id') ?></th>
|
||||
<th class="noFilter"><?= lang('ClientePrecios.updated_at') ?></th>
|
||||
<th class="noFilter noVis">plantilla_id</th>
|
||||
<th class="text-nowrap noFilter noVis" style="min-width:100px"><?= lang('Basic.global.Action') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -637,10 +639,11 @@
|
||||
|
||||
<div class="tab-pane fade" id="domicilio-entrega" role="tabpanel">
|
||||
<?= view("themes/vuexy/form/clientes/cliente/_clienteDireccionesForm") ?>
|
||||
<table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= lang('ClienteDirecciones.alias') ?></th>
|
||||
<div class="table-responsive">
|
||||
<table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= lang('ClienteDirecciones.alias') ?></th>
|
||||
<th><?= lang('ClienteDirecciones.att') ?></th>
|
||||
<th><?= lang('ClienteDirecciones.email') ?></th>
|
||||
<th><?= lang('ClienteDirecciones.direccion') ?></th>
|
||||
@ -653,9 +656,10 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="presupuestos" role="tabpanel">
|
||||
|
||||
@ -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