- = view("Themes/_commonPartialsBs/_alertBoxes") ?>
+ = view("themes_commonPartialsBs/_alertBoxes") ?>
= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
= view("themes/backend/vuexy/form/configuracion/paises/_paisFormItems") ?>
diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/paises/viewPaisList.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/paises/viewPaisList.php
index 3f20c970..0abde836 100644
--- a/ci4/app/Views/themes/backend/vuexy/form/configuracion/paises/viewPaisList.php
+++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/paises/viewPaisList.php
@@ -1,6 +1,7 @@
-=$this->include('Themes/_commonPartialsBs/datatables') ?>
-=$this->include('Themes/_commonPartialsBs/sweetalert') ?>
-=$this->extend('Themes/'.config('Basics')->theme['name'].'/AdminLayout/defaultLayout') ?>
+=$this->include('themes/_commonPartialsBs/datatables') ?>
+=$this->include('themes/_commonPartialsBs/sweetalert') ?>
+= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
+
=$this->section('content'); ?>
@@ -8,15 +9,14 @@
- = view('Themes/_commonPartialsBs/_alertBoxes'); ?>
+ = view('themes/_commonPartialsBs/_alertBoxes'); ?>
- | = lang('Basic.global.Action') ?> |
- =lang('Paises.id')?> |
= lang('Paises.nombre') ?> |
= lang('Paises.code') ?> |
= lang('Paises.code3') ?> |
@@ -34,7 +34,7 @@
@@ -45,82 +45,77 @@
=$this->section('additionalInlineJs') ?>
- const lastColNr = $('#tableOfPaises').find("tr:first th").length - 1;
- const actionBtns = function(data) {
- return `
-
-
-
-
- | `;
- };
- theTable = $('#tableOfPaises').DataTable({
- processing: true,
- serverSide: true,
- autoWidth: true,
- responsive: true,
- scrollX: true,
- lengthMenu: [ 5, 10, 25, 50, 75, 100, 250, 500, 1000, 2500 ],
- pageLength: 10,
- lengthChange: true,
- "dom": 'lfrtipB', // 'lfBrtip', // you can try different layout combinations by uncommenting one or the other
- // "dom": '<"top"lf><"clear">rt<"bottom"ipB><"clear">', // remember to comment this line if you uncomment the above
- "buttons": [
- 'copy', 'csv', 'excel', 'print', {
- extend: 'pdfHtml5',
- orientation: 'landscape',
- pageSize: 'A4'
- }
- ],
- stateSave: true,
- order: [[1, 'asc']],
- language: {
- url: "/assets/dt/= config('Basics')->languages[$currentLocale] ?? config('Basics')->i18n ?>.json"
- },
- ajax : $.fn.dataTable.pipeline( {
- url: '= route_to('dataTableOfPaises') ?>',
- method: 'POST',
- headers: {'X-Requested-With': 'XMLHttpRequest'},
- async: true,
- }),
- columnDefs: [
- {
- orderable: false,
- searchable: false,
- targets: [0,lastColNr]
- }
- ],
- columns : [
- { 'data': actionBtns },
- { 'data': 'id' },
- { 'data': 'nombre' },
- { 'data': 'code' },
- { 'data': 'code3' },
- { 'data': 'moneda' },
- { 'data': 'url_erp' },
- { 'data': 'user_erp' },
- { 'data': 'key_erp' },
- { 'data': 'show_erp' },
- { 'data': actionBtns }
- ]
- });
-
-
- theTable.on( 'draw.dt', function () {
- const boolCols = [9];
- for (let coln of boolCols) {
- theTable.column(coln, { page: 'current' }).nodes().each( function (cell, i) {
- cell.innerHTML = cell.innerHTML == '1' ? '
' : '';
- });
+ const lastColNr = $('#tableOfPaises').find("tr:first th").length - 1;
+ const actionBtns = function(data) {
+ return `
+
+
+
+
+ | `;
+ };
+ theTable = $('#tableOfPaises').DataTable({
+ processing: true,
+ serverSide: true,
+ autoWidth: true,
+ responsive: true,
+ scrollX: true,
+ lengthMenu: [ 5, 10, 25, 50, 75, 100, 250, 500, 1000, 2500 ],
+ pageLength: 10,
+ lengthChange: true,
+ "dom": 'lfBrtip',
+ "buttons": [
+ 'copy', 'csv', 'excel', 'print', {
+ extend: 'pdfHtml5',
+ orientation: 'landscape',
+ pageSize: 'A4'
}
-
+ ],
+ stateSave: true,
+ order: [[1, 'asc']],
+ language: {
+ url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/= config('Basics')->i18n ?>.json"
+ },
+ ajax : $.fn.dataTable.pipeline( {
+ url: '= route_to('dataTableOfPaises') ?>',
+ method: 'POST',
+ headers: {'X-Requested-With': 'XMLHttpRequest'},
+ async: true,
+ }),
+ columnDefs: [
+ {
+ orderable: false,
+ searchable: false,
+ targets: [lastColNr]
+ }
+ ],
+ columns : [
+ { 'data': 'nombre' },
+ { 'data': 'code' },
+ { 'data': 'code3' },
+ { 'data': 'moneda' },
+ { 'data': 'url_erp' },
+ { 'data': 'user_erp' },
+ { 'data': 'key_erp' },
+ { 'data': 'show_erp' },
+ { 'data': actionBtns }
+ ]
+ });
+
+ theTable.on( 'draw.dt', function () {
+ const boolCols = [7];
+ for (let coln of boolCols) {
+ theTable.column(coln, { page: 'current' }).nodes().each( function (cell, i) {
+ cell.innerHTML = cell.innerHTML == '1' ? '
' : '';
+ });
+ }
});
-$(document).on('click', '.btn-edit', function(e) {
+ $(document).on('click', '.btn-edit', function(e) {
window.location.href = `= route_to('paisList') ?>/${$(this).attr('data-id')}/edit`;
});
-$(document).on('click', '.btn-delete', function(e) {
+ $(document).on('click', '.btn-delete', function(e) {
Swal.fire({
title: '= lang('Basic.global.sweet.sureToDeleteTitle', [mb_strtolower(lang('Paises.pais'))]) ?>',
text: '= lang('Basic.global.sweet.sureToDeleteText') ?>',
@@ -155,28 +150,22 @@ $(document).on('click', '.btn-delete', function(e) {
}
});
});
-
-
-
=$this->endSection() ?>
=$this->section('css') ?>
-
+
=$this->endSection() ?>
= $this->section('additionalExternalJs') ?>
-
+
-
-
-
=$this->endSection() ?>
diff --git a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/_papelImpresionFormItems.php b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/_papelImpresionFormItems.php
index 30633eab..9b8d71cb 100644
--- a/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/_papelImpresionFormItems.php
+++ b/ci4/app/Views/themes/backend/vuexy/form/configuracion/papel/_papelImpresionFormItems.php
@@ -86,13 +86,12 @@
-