From efb50383b7dd8718d79a3afcc6c9a158abf9da2f Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sat, 12 Apr 2025 07:59:33 +0200 Subject: [PATCH 1/4] add class table-responsive --- .../clientes/cliente/_clienteFormItems.php | 62 ++++++++++--------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/ci4/app/Views/themes/vuexy/form/clientes/cliente/_clienteFormItems.php b/ci4/app/Views/themes/vuexy/form/clientes/cliente/_clienteFormItems.php index 317bd12d..fd9280ac 100644 --- a/ci4/app/Views/themes/vuexy/form/clientes/cliente/_clienteFormItems.php +++ b/ci4/app/Views/themes/vuexy/form/clientes/cliente/_clienteFormItems.php @@ -591,29 +591,31 @@ +
- - - - - - - - - - - - - - - - - - - - - -
IDplantilla_id
+ + + + + + + + + + + + + + + + + + + + + +
IDplantilla_id
+
@@ -637,10 +639,11 @@
- - - - +
+
+ + + @@ -653,9 +656,10 @@ - - -
+ + + +
From ba54d99185840ebcbaa3d0b4d97de5ef715ef653 Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sat, 12 Apr 2025 07:59:57 +0200 Subject: [PATCH 2/4] remove doble slash ad form url --- .../themes/vuexy/form/clientes/cliente/viewClienteForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci4/app/Views/themes/vuexy/form/clientes/cliente/viewClienteForm.php b/ci4/app/Views/themes/vuexy/form/clientes/cliente/viewClienteForm.php index 09193e58..5ba23c96 100644 --- a/ci4/app/Views/themes/vuexy/form/clientes/cliente/viewClienteForm.php +++ b/ci4/app/Views/themes/vuexy/form/clientes/cliente/viewClienteForm.php @@ -13,7 +13,7 @@
" method="post" class="card-body" action="">
From e7394999ab75cbf065fe2736d817f8b851e954d3 Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sat, 12 Apr 2025 08:00:26 +0200 Subject: [PATCH 3/4] constraint btn-edit event inside table not in $(document) --- httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js b/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js index 3b0d05ab..d8a48c0a 100644 --- a/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js +++ b/httpdocs/assets/js/safekat/pages/cliente/clienteFacturacion.js @@ -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'); }); From 38d60402c0adebba74e567445e355e89c84109c5 Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sat, 12 Apr 2025 08:00:32 +0200 Subject: [PATCH 4/4] constraint btn-edit event inside table not in $(document) --- httpdocs/assets/js/safekat/pages/cliente/clientePedidos.js | 2 +- .../assets/js/safekat/pages/cliente/clientePresupuestos.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httpdocs/assets/js/safekat/pages/cliente/clientePedidos.js b/httpdocs/assets/js/safekat/pages/cliente/clientePedidos.js index 0d5d924d..9f0ef800 100644 --- a/httpdocs/assets/js/safekat/pages/cliente/clientePedidos.js +++ b/httpdocs/assets/js/safekat/pages/cliente/clientePedidos.js @@ -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'); }); diff --git a/httpdocs/assets/js/safekat/pages/cliente/clientePresupuestos.js b/httpdocs/assets/js/safekat/pages/cliente/clientePresupuestos.js index ad558b0a..07540a54 100644 --- a/httpdocs/assets/js/safekat/pages/cliente/clientePresupuestos.js +++ b/httpdocs/assets/js/safekat/pages/cliente/clientePresupuestos.js @@ -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;