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

View File

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

View File

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

View File

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