Merge branch 'fix/imposicion-form' into 'main'

Fix/imposicion form

See merge request jjimenez/safekat!776
This commit is contained in:
Alvaro
2025-05-05 12:33:36 +00:00
4 changed files with 24 additions and 21 deletions

View File

@ -57,8 +57,7 @@
<a href="" target="_blank" class="btn btn-primary btn-sm imposicion-esquema-link" disabled><?= lang("Imposiciones.imposicion_esquema_link") ?></a>
</div>
<div id="imposicion-esquema-render">
<svg width="100%" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
</svg>
</div>
</div>
</div><!-- //.row -->

View File

@ -22,24 +22,27 @@
</div>
<div class="col-md-12">
<?= view('themes/_commonPartialsBs/_alertBoxes'); ?>
<table id="tableOfImposiciones" class="table table-striped table-hover" style="width: 100%;">
<thead>
<tr>
<th><?= lang('Imposiciones.id') ?></th>
<th><?= lang('Imposiciones.ancho') ?></th>
<th><?= lang('Imposiciones.alto') ?></th>
<th><?= lang('Imposiciones.unidades') ?></th>
<th><?= lang('Imposiciones.orientacion') ?></th>
<th><?= lang('Imposiciones.maquina') ?></th>
<th><?= lang('Imposiciones.etiqueta') ?></th>
<th><?= lang('Imposiciones.imposicion_esquema') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
</thead>
<tbody>
<div class="table-responsive">
<table id="tableOfImposiciones" class="table table-striped table-hover" style="width: 100%;">
<thead>
<tr>
<th><?= lang('Imposiciones.id') ?></th>
<th><?= lang('Imposiciones.ancho') ?></th>
<th><?= lang('Imposiciones.alto') ?></th>
<th><?= lang('Imposiciones.unidades') ?></th>
<th><?= lang('Imposiciones.orientacion') ?></th>
<th><?= lang('Imposiciones.maquina') ?></th>
<th><?= lang('Imposiciones.etiqueta') ?></th>
<th><?= lang('Imposiciones.imposicion_esquema') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</tbody>
</table>
</div>
</div>

View File

@ -29,7 +29,8 @@ class Imposicion {
this.imposicionForm = new ImposicionForm(this.itemForm)
this.imposicionForm.init()
}
new() {
initNew() {
this.imposicionForm = new ImposicionForm(this.itemForm)
this.imposicionForm.initNew()
}
init_imposicion_esquema_form() {

View File

@ -4,5 +4,5 @@ import Imposicion from "./imposicion.js"
$(() => {
console.log("Imposicion")
let imposicion = new Imposicion()
imposicion.new()
imposicion.initNew()
})