mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Solucionado el boton nuevo
This commit is contained in:
@ -1,7 +1,9 @@
|
|||||||
<?= $this->include("themes/_commonPartialsBs/datatables") ?>
|
<?= $this->include("themes/_commonPartialsBs/datatables") ?>
|
||||||
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
|
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
|
||||||
<?= $this->include("themes/_commonPartialsBs/sweetalert") ?>
|
<?= $this->include("themes/_commonPartialsBs/sweetalert") ?>
|
||||||
|
<?= $this->include('themes/_commonPartialsBs/_confirm2delete') ?>
|
||||||
<?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
|
<?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
|
||||||
|
|
||||||
<?= $this->section("content") ?>
|
<?= $this->section("content") ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
@ -9,24 +11,22 @@
|
|||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
|
<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
|
||||||
</div><!--//.card-header -->
|
</div><!--//.card-header -->
|
||||||
<form id="tarifaEnvioForm" method="post" action="<?= $formAction ?>">
|
<form id="tarifaEnvioForm" class="card-body" method="post" action="<?= $formAction ?>">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<div class="card-body">
|
<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
|
||||||
<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
|
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
|
||||||
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
|
<?= view("themes/backend/vuexy/form/tarifas/envios/_tarifaEnvioFormItems") ?>
|
||||||
<?= view("themes/backend/vuexy/form/tarifas/envios/_tarifaEnvioFormItems") ?>
|
|
||||||
</div><!-- /.card-body -->
|
|
||||||
<div class="pt-4">
|
|
||||||
<input type="submit"
|
|
||||||
class="btn btn-primary float-start me-sm-3 me-1"
|
|
||||||
name="save"
|
|
||||||
value="<?= lang("Basic.global.Save") ?>"
|
|
||||||
/>
|
|
||||||
<?= anchor(route_to("tarifaEnvioList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
|
|
||||||
</div><!-- /.card-footer -->
|
|
||||||
|
|
||||||
|
<div class="pt-4">
|
||||||
|
<input type="submit"
|
||||||
|
class="btn btn-primary float-start me-sm-3 me-1"
|
||||||
|
name="save"
|
||||||
|
value="<?= lang("Basic.global.Save") ?>"
|
||||||
|
/>
|
||||||
|
<?= anchor(route_to("tarifaEnvioList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div><!-- //.card -->
|
</div><!-- //.card -->
|
||||||
</div><!--//.col -->
|
</div><!--//.col -->
|
||||||
|
|
||||||
<?php if(str_contains($formAction, 'edit')): ?>
|
<?php if(str_contains($formAction, 'edit')): ?>
|
||||||
@ -426,8 +426,8 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1;
|
|||||||
searching: true,
|
searching: true,
|
||||||
paging: true,
|
paging: true,
|
||||||
info: false,
|
info: false,
|
||||||
dom: '<"mt-4"><"float-end"B><"float-start"l><t><"mt-4 mb-3"p>',
|
//dom: '<"mt-4"><"float-end"B><"float-start"l><t><"mt-4 mb-3"p>',
|
||||||
//dom: 'lBfrtip',
|
dom: 'Brtip',
|
||||||
ajax : $.fn.dataTable.pipeline( {
|
ajax : $.fn.dataTable.pipeline( {
|
||||||
url: '<?= route_to('dataTableOfTarifasEnvioPrecios') ?>',
|
url: '<?= route_to('dataTableOfTarifasEnvioPrecios') ?>',
|
||||||
data: function ( d ) {
|
data: function ( d ) {
|
||||||
@ -482,9 +482,9 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1;
|
|||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
|
|
||||||
new $.fn.dataTable.Buttons(theTable2, {
|
new $.fn.dataTable.Buttons(theTable2, {
|
||||||
name: 'test2',
|
name: 'btn_new',
|
||||||
buttons: [{
|
buttons: [{
|
||||||
className: 'btn btn-primary float-end me-sm-3 me-1',
|
className: 'btn btn-primary float-end',
|
||||||
extend: "createInline",
|
extend: "createInline",
|
||||||
editor: editor2,
|
editor: editor2,
|
||||||
formOptions: {
|
formOptions: {
|
||||||
@ -495,12 +495,14 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1;
|
|||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
||||||
theTable2.buttons('test2', null)
|
var $newbtncontainer = $("<div style='float: right;'></div>");
|
||||||
.container()
|
$("#tableOfPrecios_wrapper").prepend($newbtncontainer);
|
||||||
.insertBefore('.dataTables_length');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
theTable2.buttons('btn_new', null)
|
||||||
|
.container()
|
||||||
|
.appendTo($newbtncontainer);
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -13,3 +13,4 @@ table.dataTable > tbody > tr.selected > * {
|
|||||||
table.dataTable.table-hover > tbody > tr.selected:hover > * {
|
table.dataTable.table-hover > tbody > tr.selected:hover > * {
|
||||||
box-shadow: inset 0 0 0 9999px rgba(13, 110, 253, 0.65);
|
box-shadow: inset 0 0 0 9999px rgba(13, 110, 253, 0.65);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user