From 9b1f2aee803979db7579e0d038c3b4c68111704c Mon Sep 17 00:00:00 2001 From: Jaime Jimenez Date: Tue, 5 Sep 2023 21:02:36 +0200 Subject: [PATCH] Solucionado el boton nuevo --- .../tarifas/envios/viewTarifaEnvioForm.php | 50 ++++++++++--------- httpdocs/themes/vuexy/css/sk-datatables.css | 3 +- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/ci4/app/Views/themes/backend/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php b/ci4/app/Views/themes/backend/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php index 06a07216..3ef37d3b 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php +++ b/ci4/app/Views/themes/backend/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php @@ -1,7 +1,9 @@ include("themes/_commonPartialsBs/datatables") ?> include("themes/_commonPartialsBs/select2bs5") ?> include("themes/_commonPartialsBs/sweetalert") ?> +include('themes/_commonPartialsBs/_confirm2delete') ?> extend('themes/backend/vuexy/main/defaultlayout') ?> + section("content") ?>
@@ -9,24 +11,22 @@

-
+ -
- - getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?> - -
-
- " - /> - "btn btn-secondary float-start",]) ?> -
+ + getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?> + +
+ " + /> + "btn btn-secondary float-start",]) ?> +
-
+
@@ -426,8 +426,8 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1; searching: true, paging: true, info: false, - dom: '<"mt-4"><"float-end"B><"float-start"l><"mt-4 mb-3"p>', - //dom: 'lBfrtip', + //dom: '<"mt-4"><"float-end"B><"float-start"l><"mt-4 mb-3"p>', + dom: 'Brtip', ajax : $.fn.dataTable.pipeline( { url: '', data: function ( d ) { @@ -482,9 +482,9 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1; initComplete: function () { new $.fn.dataTable.Buttons(theTable2, { - name: 'test2', + name: 'btn_new', buttons: [{ - className: 'btn btn-primary float-end me-sm-3 me-1', + className: 'btn btn-primary float-end', extend: "createInline", editor: editor2, formOptions: { @@ -495,12 +495,14 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1; }] }); - theTable2.buttons('test2', null) - .container() - .insertBefore('.dataTables_length'); - } - + var $newbtncontainer = $("
"); + $("#tableOfPrecios_wrapper").prepend($newbtncontainer); + + theTable2.buttons('btn_new', null) + .container() + .appendTo($newbtncontainer); + } } ); diff --git a/httpdocs/themes/vuexy/css/sk-datatables.css b/httpdocs/themes/vuexy/css/sk-datatables.css index 6f1342e2..37e8b118 100644 --- a/httpdocs/themes/vuexy/css/sk-datatables.css +++ b/httpdocs/themes/vuexy/css/sk-datatables.css @@ -12,4 +12,5 @@ table.dataTable > tbody > tr.selected > * { table.dataTable.table-hover > tbody > tr.selected:hover > * { box-shadow: inset 0 0 0 9999px rgba(13, 110, 253, 0.65); -} \ No newline at end of file +} +