empezando con la lógica del comparador

This commit is contained in:
Jaime Jimenez
2023-09-18 20:36:12 +02:00
parent 2eaec6604d
commit a63aa5e6b2
8 changed files with 270 additions and 118 deletions

View File

@ -58,6 +58,9 @@ return [
'retractilado5' => 'Shrink-wrapping in packs of 5',
'Guardas' => 'Endpapers',
'fajaColor' => 'Print color band ',
'cubierta' => 'Cover',
'sobrecubierta' => 'Dust jacket',
'encuadernacion' => 'Binding',
/* '4x0' => '4x0',
'4x4' => '4x4',

View File

@ -78,7 +78,9 @@ return [
'totalTinta' => 'Total tinta',
'totalCorte' => 'Total corte',
'total' => 'Total',
'cubierta' => 'Cubierta',
'sobrecubierta' => 'Sobrecubierta',
'encuadernacion' => 'Encuadernación',
/* '4x0' => '4x0',
'4x4' => '4x4',

View File

@ -67,12 +67,12 @@
</div>
<div class="row mt-0">
<div class="row mt-0 comp-negro-selected">
<div class="col-md-12 col-lg-2 px-4">
<p><?= lang('MaquinasTarifasImpresions.negro') ?></p>
</div>
<div class="col-md-12 col-lg-2 px-4">
<input type="number" id="compPaginasNegro" name="comp_paginas_negro" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data) ? (old(0, $presupuestoEntity->comparador_json_data->negro->paginas)) : '0' ?>">
<input type="number" id="compPaginasNegro" name="comp_paginas_negro" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data->negro) ? (old(0, $presupuestoEntity->comparador_json_data->negro->paginas)) : '0' ?>">
</div>
<div class="col-md-12 col-lg-6 px-4">
<select id="compPapelNegro" name="comp_papel_negro" class="form-control select2bs2" style="width: 100%;">
@ -93,7 +93,7 @@
<p><?= lang('MaquinasTarifasImpresions.color') ?></p>
</div>
<div class="col-md-12 col-lg-2 px-4">
<input type="number" id="compPaginasColor" name="comp_paginas_color" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data) ? (old(0, $presupuestoEntity->comparador_json_data->color->paginas)) : '0' ?>">
<input type="number" id="compPaginasColor" name="comp_paginas_color" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data->color) ? (old(0, $presupuestoEntity->comparador_json_data->color->paginas)) : '0' ?>">
</div>
<div class="col-md-12 col-lg-6 px-4">
<select id="compPapelColor" name="comp_papel_color" class="form-control select2bs2" style="width: 100%;">
@ -109,12 +109,32 @@
</div>
<div class="row comp-bicolor-selected">
<div class="col-md-12 col-lg-2 px-4">
<p><?= lang('MaquinasTarifasImpresions.bicolor') ?></p>
</div>
<div class="col-md-12 col-lg-2 px-4">
<input type="number" id="compPaginasBicolor" name="comp_paginas_bicolor" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data->bicolor) ? (old(0, $presupuestoEntity->comparador_json_data->bicolor->paginas)) : '0' ?>">
</div>
<div class="col-md-12 col-lg-6 px-4">
<select id="compPapelBicolor" name="comp_papel_bicolor" class="form-control select2bs2" style="width: 100%;">
</select>
</div>
<div class="col-md-12 col-lg-2 px-4">
<select id="compGramajeBicolor" name="comp_gramaje_bicolor" class="form-control select2bs2" style="width: 100%;">
</select>
</div>
<div>
<hr class="my-1">
</div>
</div>
<div class="row">
<div class="col-md-12 col-lg-2 px-4">
<p><?= lang('PapelImpresion.cubierta') ?></p>
</div>
<div class="col-md-12 col-lg-2 px-4">
<input type="number" id="compPaginasCubierta" name="comp_paginas_cubierta" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data) ? (old(0, $presupuestoEntity->comparador_json_data->cubierta->paginas)) : '0' ?>">
<input type="number" id="compPaginasCubierta" name="comp_paginas_cubierta" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data->cubierta) ? (old(0, $presupuestoEntity->comparador_json_data->cubierta->paginas)) : '0' ?>">
</div>
<div class="col-md-12 col-lg-6 px-4">
<select id="compPapelCubierta" name="comp_papel_cubierta" class="form-control select2bs2" style="width: 100%;">
@ -135,7 +155,7 @@
<p><?= lang('PapelImpresion.sobrecubierta') ?></p>
</div>
<div class="col-md-12 col-lg-2 px-4">
<input type="number" id="compPaginasSobrecubierta" name="comp_paginas_sobrecubierta" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data) ? (old(0, $presupuestoEntity->comparador_json_data->sobrecubierta->paginas)) : '0' ?>">
<input type="number" id="compPaginasSobrecubierta" name="comp_paginas_sobrecubierta" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data->sobrecubierta) ? (old(0, $presupuestoEntity->comparador_json_data->sobrecubierta->paginas)) : '0' ?>">
</div>
<div class="col-md-12 col-lg-6 px-4">
<select id="compPapelSobrecubierta" name="comp_papel_sobrecubierta" class="form-control select2bs2" style="width: 100%;">
@ -323,29 +343,13 @@
</tr>
</thead>
<tbody>
<tr>
<td>color</td>
<td>220</td>
<td>ESTUCADO MATE</td>
<td>90</td>
<td>CREATOR SILK</td>
<td>C1100</td>
<td>27,50</td>
<td>5.775,00</td>
<td>0,027076</td>
<td>0.75</td>
<td>156,36</td>
<td>8,22</td>
<td>307,69</td>
<td>0,025500</td>
<td>294,53</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>450,89</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="dt-result dt-result-text" colspan="18"><?= lang('Presupuestos.total') ?> <?= lang("Presupuestos.compInteriorPlana") ?>:</td>
<td class="dt-result dt-result-value" colspan="2"> 0.00 </td>
</tr>
</tfoot>
</table>
</div>
@ -369,52 +373,36 @@
<table id="tableCompIntRotativa" class="comparator-table table dt-responsive dataTable">
<thead>
<tr>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.tipo') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.paginas') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.papel') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.gramaje') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.marca') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.maquina') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.numeroPliegos') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.pliegosPedido') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.precioPliego') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.libro') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalPedido') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.lomo') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.peso') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.click') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalClicks') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.precioPagNegro') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.precioPagColor') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalTinta') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalCorte') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.total') ?></span></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.tipo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.paginas') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.papel') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.gramaje') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.marca') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.maquina') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.numeroPliegos') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.pliegosPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPliego') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.libro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.lomo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.peso') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.click') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalClicks') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagNegro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagColor') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalTinta') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalCorte') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.total') ?></th>
</tr>
</thead>
<tbody>
<tr>
<td>color</td>
<td>220</td>
<td>ESTUCADO MATE</td>
<td>90</td>
<td>CREATOR SILK</td>
<td>C1100</td>
<td>27,50</td>
<td>5.775,00</td>
<td>0,027076</td>
<td>0.75</td>
<td>156,36</td>
<td>8,22</td>
<td>307,69</td>
<td>0,025500</td>
<td>294,53</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>450,89</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="dt-result dt-result-text" colspan="18"><?= lang('Presupuestos.total') ?> <?= lang("Presupuestos.compInteriorRotativa") ?>:</td>
<td class="dt-result dt-result-value" colspan="2">0.00</td>
</tr>
</tfoot>
</table>
</div>
@ -433,33 +421,74 @@
<div id="accordionCompCubiertaSobrecubiertaTip" class="accordion-collapse collapse" data-bs-parent="#accordionCompCubiertaSobrecubierta">
<div class="accordion-body">
<table id="tableCompCubiertaSobrecubierta" class="comparator-table table dt-responsive dataTable">
<table id="tableCompCubierta" class="comparator-table table dt-responsive dataTable">
<thead>
<tr>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.tipo') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.paginas') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.papel') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.gramaje') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.marca') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.maquina') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.numeroPliegos') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.pliegosPedido') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.precioPliego') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.libro') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalPedido') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.lomo') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.peso') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.click') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalClicks') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.precioPagNegro') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.precioPagColor') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalTinta') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.totalCorte') ?></span></th>
<th style="padding-right: 0.75em;"><span><?= lang('Presupuestos.total') ?></span></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.tipo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.paginas') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.papel') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.gramaje') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.marca') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.maquina') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.numeroPliegos') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.pliegosPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPliego') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.libro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.lomo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.peso') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.click') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalClicks') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagNegro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagColor') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalTinta') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalCorte') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.total') ?></th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<td class="dt-result dt-result-text" colspan="18"><?= lang('Presupuestos.total') ?> <?= lang('Presupuestos.cubierta') ?>:</td>
<td class="dt-result dt-result-value" colspan="2">0.00</td>
</tr>
</tfoot>
</table>
<table id="tableCompSobrecubierta" class="comparator-table table dt-responsive dataTable">
<thead>
<tr>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.tipo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.paginas') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.papel') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.gramaje') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.marca') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.maquina') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.numeroPliegos') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.pliegosPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPliego') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.libro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalPedido') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.lomo') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.peso') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.click') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalClicks') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagNegro') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagColor') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalTinta') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalCorte') ?></th>
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.total') ?></th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<td class="dt-result dt-result-text" colspan="18"><?= lang('Presupuestos.total') ?> <?= lang('Presupuestos.sobrecubierta') ?>:</td>
<td class="dt-result dt-result-value" colspan="2">0.00</td>
</tr>
</tfoot>
</table>
</div>

View File

@ -0,0 +1,33 @@
<div class="accordion mt-3" id="accordionEncuadernacion">
<div class="card accordion-item active">
<h2 class="accordion-header" id="headingOne">
<button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionEncuadernacionTip" aria-expanded="false" aria-controls="accordionEncuadernacionTip">
<h4><?= lang("Presupuestos.encuadernacion") ?></h4>
</button>
</h2>
<div id="accordionEncuadernacionTip" class="accordion-collapse collapse show" data-bs-parent="#accordionEncuadernacion">
<div class="accordion-body">
<div class="col-md-12 col-lg-4 px-4">
<div class="mb-3">
<label for="encuadernacion" class="form-label">
<?= lang('Presupuestos.encuadernacion') ?>*
</label>
<select id="encuadernacion" name="encuadernacion" class="form-control select2bs2" style="width: 100%;">
<!---
<?php if (isset($papelFormatoList) && is_array($papelFormatoList) && !empty($papelFormatoList)) :
foreach ($papelFormatoList as $formato) : ?>
<option value="<?= $formato->id ?>" <?= $formato->id == $presupuestoEntity->papel_formato_id ? ' selected' : '' ?>>
<?= $formato->tamanio ?>
</option>
<?php endforeach;
endif; ?>
--->
</select>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,33 @@
<div class="accordion mt-3" id="accordionEncuadernacion">
<div class="card accordion-item active">
<h2 class="accordion-header" id="headingOne">
<button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionEncuadernacionTip" aria-expanded="false" aria-controls="accordionEncuadernacionTip">
<h4><?= lang("Presupuestos.encuadernacion") ?></h4>
</button>
</h2>
<div id="accordionEncuadernacionTip" class="accordion-collapse collapse show" data-bs-parent="#accordionEncuadernacion">
<div class="accordion-body">
<div class="col-md-12 col-lg-4 px-4">
<div class="mb-3">
<label for="encuadernacion" class="form-label">
<?= lang('Presupuestos.encuadernacion') ?>*
</label>
<select id="encuadernacion" name="encuadernacion" class="form-control select2bs2" style="width: 100%;">
<!---
<?php if (isset($papelFormatoList) && is_array($papelFormatoList) && !empty($papelFormatoList)) :
foreach ($papelFormatoList as $formato) : ?>
<option value="<?= $formato->id ?>" <?= $formato->id == $presupuestoEntity->papel_formato_id ? ' selected' : '' ?>>
<?= $formato->tamanio ?>
</option>
<?php endforeach;
endif; ?>
--->
</select>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -79,18 +79,40 @@ function checkRetractiladoComparador(element) {
function updatePapelesComparador() {
var e = document.getElementById("tipoImpresion");
elements = document.getElementsByClassName('comp-color-selected');
elements_negro = document.getElementsByClassName('comp-negro-selected');
elements_color = document.getElementsByClassName('comp-color-selected');
elements_bicolor = document.getElementsByClassName('comp-bicolor-selected');
switch (e.value) {
case "negro":
case "negrohq":
Array.from(elements).forEach(element => {
Array.from(elements_color).forEach(element => {
element.style.display = "none";
});
Array.from(elements_bicolor).forEach(element => {
element.style.display = "none";
});
Array.from(elements_negro).forEach(element => {
element.style.display = "flex";
});
break;
case "color":
case "colorhq":
Array.from(elements_negro).forEach(element => {
element.style.display = "flex";
});
Array.from(elements_color).forEach(element => {
element.style.display = "flex";
});
break;
case "bicolor":
Array.from(elements).forEach(element => {
Array.from(elements_negro).forEach(element => {
element.style.display = "none";
});
Array.from(elements_color).forEach(element => {
element.style.display = "none";
});
Array.from(elements_bicolor).forEach(element => {
element.style.display = "flex";
});
break;
@ -100,4 +122,6 @@ function updatePapelesComparador() {
}
}

View File

@ -16,6 +16,7 @@
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems") ?>
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems") ?>
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_encuadernacionItems") ?>
<?= view("themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
<div class="pt-4">
<input type="submit"
@ -95,6 +96,14 @@
allowClear: false,
});
$('#compPapelBicolor').select2({
allowClear: false,
});
$('#compGramajeBicolor').select2({
allowClear: false,
});
$('#compPapelCubierta').select2({
allowClear: false,
});
@ -111,6 +120,10 @@
allowClear: false,
});
$('#encuadernacion').select2({
allowClear: false,
});
<?= $this->endSection() ?>
@ -155,15 +168,6 @@
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
},
"columnDefs": [{
targets : '_all',
className: "dt-head-center"
},
{
targets : '_all',
className: "dt-body-center"
}
],
});
@ -173,17 +177,31 @@
paging: false,
info: false,
ordering: false,
responsive: true,
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
},
});
var tableCompIntCubiertaSobrecubierta = new DataTable('#tableCompCubiertaSobrecubierta',{
var tableCompIntCubierta = new DataTable('#tableCompCubierta',{
scrollX: true,
searching: false,
paging: false,
info: false,
ordering: false,
responsive: true,
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
},
});
var tableCompIntSobrecubierta = new DataTable('#tableCompSobrecubierta',{
scrollX: true,
searching: false,
paging: false,
info: false,
ordering: false,
responsive: true,
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
},

View File

@ -1,4 +1,3 @@
/* Overwrite datatables styles */
table.dataTable.table-striped>tbody>tr.odd.selected>* {
@ -14,7 +13,8 @@ table.dataTable.table-hover > tbody > tr.selected:hover > * {
box-shadow: inset 0 0 0 9999px rgba(13, 110, 253, 0.65);
}
.comparator-table th, .comparator-table td {
.comparator-table th,
.comparator-table td {
padding-left: 0.6em;
padding-right: 0.6em;
}
@ -28,6 +28,16 @@ table.dataTable.table-hover > tbody > tr.selected:hover > * {
font-size: 0.6em;
}
.comparator-table td.dt-result {
font-size: 0.9em;
font-weight: bold;
text-transform: uppercase;
}
.comparator-table td.dt-result-text {
text-align: right;
}
.comparator-table td.dt-result-value {
text-align: left;
}