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 = $('