Terminada exposicion de tablas ubicacion y series

This commit is contained in:
imnavajas
2024-06-13 21:00:33 +02:00
parent 02ba5d75d1
commit 405afd0cf1
6 changed files with 96 additions and 42 deletions

View File

@ -1,12 +1,57 @@
<div class="row">
<div class="col-md-12 col-lg-12 px-4">
<div class="mb-3">
<label for="nombre" class="form-label">
<?=lang('Ubicaciones.nombre') ?>*
</label>
<input type="text" id="nombre" name="nombre" maxLength="255" class="form-control" value="<?=old('nombre', $ubicacionesEntity->nombre) ?>">
</div><!--//.mb-3 -->
<div class="row">
<div class="col-md-12 col-lg-12 px-4">
<div class="mb-3">
<label for="nombre" class="form-label">
<?= lang('SeriesFacturas.nombre') ?>*
</label>
<input type="text"
id="nombre"
name="nombre"
maxLength="255"
class="form-control"
value="<?= old('nombre', $seriesFacturasEntity->nombre) ?>"
>
</div><!--//.mb-3 -->
</div><!--//.col -->
<div class="mb-3">
<label for="tipo" class="form-label">
<?= lang('SeriesFacturas.tipo') ?>*
</label>
<select id="tipo" name="tipo" required class="form-control select2" style="width: 100%;">
<option value="facturacion" <?= "facturacion" == $seriesFacturasEntity->tipo ? ' selected' : '' ?>>
Facturación
</option>
<option value="albaranes" <?= "albaranes" == $seriesFacturasEntity->tipo ? ' selected' : '' ?>>
Albaranes
</option>
</select>
</div><!--//.mb-3 -->
</div><!-- //.row -->
<div class="mb-3">
<label for="tipo" class="form-label">
<?= lang('SeriesFacturas.formato') ?>*
</label>
<input type="text"
id="formato"
name="formato"
maxLength="255"
class="form-control"
value="<?= old('formato', $seriesFacturasEntity->formato) ?>"
>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="tipo" class="form-label">
<?= lang('SeriesFacturas.next') ?>*
</label>
<input type="text"
id="next"
name="next"
class="form-control"
value="<?= old('next', $seriesFacturasEntity->next) ?>"
>
</div><!--//.mb-3 -->
</div><!--//.col -->
</div><!-- //.row -->

View File

@ -10,18 +10,18 @@
<div class="card-header">
<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
</div><!--//.card-header -->
<form id="ubicacionesForm" class="card-body" method="post" action="<?= $formAction ?>">
<form id="seriesFacturasForm" class="card-body" method="post" action="<?= $formAction ?>">
<?= csrf_field() ?>
<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
<?= view("themes/vuexy/form/configuracion/ubicaciones/_ubicacionesFormItems") ?>
<?= view("themes/vuexy/form/configuracion/series-facturas/_seriesFacturasFormItems") ?>
<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("ubicacionesList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
<?= anchor(route_to("seriesFacturasList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
</div><!-- /.card-footer -->
</form>

View File

@ -9,7 +9,7 @@
<div class="card card-info">
<div class="card-header">
<h3 class="card-title"><?=lang('SeriesFacturas.moduleTitle') ?></h3>
<?=anchor(route_to('ubicacionesAdd'), lang('Basic.global.addNew') . ' ' .lang('SeriesFacturas.moduleTitle'), ['class'=>'btn btn-primary float-end']); ?>
<?=anchor(route_to('seriesFacturasAdd'), lang('Basic.global.addNew') . ' ' .lang('SeriesFacturas.moduleTitle'), ['class'=>'btn btn-primary float-end']); ?>
</div><!--//.card-header -->
<div class="card-body">
<?= view('themes/_commonPartialsBs/_alertBoxes'); ?>
@ -18,7 +18,10 @@
<thead>
<tr>
<th><?= lang('SeriesFacturas.nombre') ?></th>
<th><?= lang('SeriesFacturas.nombre') ?></th>
<th><?= lang('SeriesFacturas.tipo') ?></th>
<th><?= lang('SeriesFacturas.formato') ?></th>
<th><?= lang('SeriesFacturas.next') ?></th>
<th><?= lang('SeriesFacturas.grupo') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
</thead>
@ -87,6 +90,9 @@
columns : [
{ 'data': 'nombre' },
{ 'data': 'tipo' },
{ 'data': 'formato' },
{ 'data': 'next' },
{ 'data': 'grupo' },
{ 'data': actionBtns }
]
});