From e64022a7b7e110ec92bc8192cd31a2b7c539f35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Wed, 9 Oct 2024 20:04:58 +0200 Subject: [PATCH] falta boton add direcciones --- .../themes/_commonPartialsBs/_modalInput.php | 24 ++++++ .../components/direccion_presupuesto.php | 24 ------ .../cliente/items/_direcciones.php | 4 +- .../cliente/viewPresupuestoclienteForm.php | 3 + .../components/tarjetaDireccionPresupuesto.js | 76 +++++++++++++++++++ .../pages/presupuestoCliente/direcciones.js | 75 ++++++++++++++++-- .../presupuestoCliente/presupuestoCliente.js | 3 +- 7 files changed, 176 insertions(+), 33 deletions(-) create mode 100644 ci4/app/Views/themes/_commonPartialsBs/_modalInput.php delete mode 100644 ci4/app/Views/themes/vuexy/components/direccion_presupuesto.php create mode 100644 httpdocs/assets/js/safekat/components/tarjetaDireccionPresupuesto.js diff --git a/ci4/app/Views/themes/_commonPartialsBs/_modalInput.php b/ci4/app/Views/themes/_commonPartialsBs/_modalInput.php new file mode 100644 index 00000000..159ccba8 --- /dev/null +++ b/ci4/app/Views/themes/_commonPartialsBs/_modalInput.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/components/direccion_presupuesto.php b/ci4/app/Views/themes/vuexy/components/direccion_presupuesto.php deleted file mode 100644 index 7742225e..00000000 --- a/ci4/app/Views/themes/vuexy/components/direccion_presupuesto.php +++ /dev/null @@ -1,24 +0,0 @@ -
-
- -
-
\ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_direcciones.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_direcciones.php index e22083d0..006223e7 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_direcciones.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_direcciones.php @@ -1,4 +1,4 @@ -
+
@@ -47,7 +47,7 @@
-
+
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php index 8f7e40c4..50427912 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php @@ -1,12 +1,15 @@ include('themes/_commonPartialsBs/datatables') ?> include("themes/_commonPartialsBs/select2bs5") ?> include("themes/_commonPartialsBs/sweetalert") ?> + extend('themes/vuexy/main/defaultlayout') ?> section("content") ?> + +

diff --git a/httpdocs/assets/js/safekat/components/tarjetaDireccionPresupuesto.js b/httpdocs/assets/js/safekat/components/tarjetaDireccionPresupuesto.js new file mode 100644 index 00000000..c62ae516 --- /dev/null +++ b/httpdocs/assets/js/safekat/components/tarjetaDireccionPresupuesto.js @@ -0,0 +1,76 @@ +class tarjetaDireccion { + + constructor(container, id, direccion) { + + this.container = container; + this.card = this.#generateHTML(id, direccion); + this.deleteBtn = this.card.find('.direccion-eliminar'); + this.editBtn = this.card.find('.direccion-editar'); + } + + + #generateHTML(id, direccion) { + + // Crear los elementos usando jQuery + var $parent = $('
', { + class: 'direccion-cliente col-sm-5 form-check custom-option custom-option-basic checked justify-content-center mb-4', + id: id + }); + + var $label = $('