mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
add code and comment tarifapreimpresion
This commit is contained in:
@ -7,6 +7,9 @@ return [
|
|||||||
'id' => 'ID',
|
'id' => 'ID',
|
||||||
'moduleTitle' => 'Tarifas Preimpresión',
|
'moduleTitle' => 'Tarifas Preimpresión',
|
||||||
'nombre' => 'Nombre',
|
'nombre' => 'Nombre',
|
||||||
|
'code' => 'Código',
|
||||||
|
'comment' => 'Comentario',
|
||||||
|
'comment_placeholder' => 'Inserte un comentario',
|
||||||
'precio' => 'Precio',
|
'precio' => 'Precio',
|
||||||
'precioMin' => 'Precio Mínimo',
|
'precioMin' => 'Precio Mínimo',
|
||||||
'importeFijo' => 'Importe Fijo',
|
'importeFijo' => 'Importe Fijo',
|
||||||
@ -25,7 +28,16 @@ return [
|
|||||||
'required' => 'El campo {field} es obligatorio.',
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
'code' => [
|
||||||
|
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
|
||||||
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
|
||||||
|
],
|
||||||
|
'comment' => [
|
||||||
|
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
|
||||||
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
|
||||||
|
],
|
||||||
'precio' => [
|
'precio' => [
|
||||||
'decimal' => 'El campo {field} debe contener un número decimal.',
|
'decimal' => 'El campo {field} debe contener un número decimal.',
|
||||||
'required' => 'El campo {field} es obligatorio.',
|
'required' => 'El campo {field} es obligatorio.',
|
||||||
|
|||||||
@ -43,6 +43,10 @@ class TarifapreimpresionModel extends \App\Models\BaseModel
|
|||||||
"label" => "Tarifapreimpresion.code",
|
"label" => "Tarifapreimpresion.code",
|
||||||
"rules" => "trim|required|max_length[5]",
|
"rules" => "trim|required|max_length[5]",
|
||||||
],
|
],
|
||||||
|
"comment" => [
|
||||||
|
"label" => "Tarifapreimpresion.comment",
|
||||||
|
"rules" => "trim|max_length[255]",
|
||||||
|
],
|
||||||
"precio" => [
|
"precio" => [
|
||||||
"label" => "Tarifapreimpresion.precio",
|
"label" => "Tarifapreimpresion.precio",
|
||||||
"rules" => "required|decimal",
|
"rules" => "required|decimal",
|
||||||
@ -58,10 +62,14 @@ class TarifapreimpresionModel extends \App\Models\BaseModel
|
|||||||
"max_length" => "Tarifapreimpresion.validation.nombre.max_length",
|
"max_length" => "Tarifapreimpresion.validation.nombre.max_length",
|
||||||
"required" => "Tarifapreimpresion.validation.nombre.required",
|
"required" => "Tarifapreimpresion.validation.nombre.required",
|
||||||
],
|
],
|
||||||
"nombre" => [
|
"code" => [
|
||||||
"max_length" => "Tarifapreimpresion.validation.code.max_length",
|
"max_length" => "Tarifapreimpresion.validation.code.max_length",
|
||||||
"required" => "Tarifapreimpresion.validation.code.required",
|
"required" => "Tarifapreimpresion.validation.code.required",
|
||||||
],
|
],
|
||||||
|
"comment" => [
|
||||||
|
"max_length" => "Tarifapreimpresion.validation.comment.max_length",
|
||||||
|
"required" => "Tarifapreimpresion.validation.comment.required",
|
||||||
|
],
|
||||||
"precio" => [
|
"precio" => [
|
||||||
"decimal" => "Tarifapreimpresion.validation.precio.decimal",
|
"decimal" => "Tarifapreimpresion.validation.precio.decimal",
|
||||||
"required" => "Tarifapreimpresion.validation.precio.required",
|
"required" => "Tarifapreimpresion.validation.precio.required",
|
||||||
|
|||||||
@ -5,30 +5,40 @@
|
|||||||
<?= lang('Tarifapreimpresion.nombre') ?>*
|
<?= lang('Tarifapreimpresion.nombre') ?>*
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="nombre"
|
id="nombre"
|
||||||
name="nombre"
|
name="nombre"
|
||||||
required
|
required
|
||||||
maxLength="255"
|
maxLength="255"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value="<?= old('nombre', $tarifapreimpresionEntity->nombre) ?>"
|
value="<?= old('nombre', $tarifapreimpresionEntity->nombre) ?>">
|
||||||
>
|
</div><!--//.mb-3 -->
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="code" class="form-label">
|
||||||
|
<?= lang('Tarifapreimpresion.code') ?>*
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
id="code"
|
||||||
|
name="code"
|
||||||
|
required
|
||||||
|
maxLength="5"
|
||||||
|
class="form-control"
|
||||||
|
value="<?= old('code', $tarifapreimpresionEntity->code) ?>">
|
||||||
</div><!--//.mb-3 -->
|
</div><!--//.mb-3 -->
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="precio" class="form-label">
|
<label for="precio" class="form-label">
|
||||||
<?= lang('Tarifapreimpresion.precio') ?>*
|
<?= lang('Tarifapreimpresion.precio') ?>*
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="precio"
|
id="precio"
|
||||||
name="precio"
|
name="precio"
|
||||||
required
|
required
|
||||||
maxLength="31"
|
maxLength="31"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value="<?= old('precio', $tarifapreimpresionEntity->precio) ?>"
|
value="<?= old('precio', $tarifapreimpresionEntity->precio) ?>">
|
||||||
>
|
|
||||||
</div><!--//.mb-3 -->
|
</div><!--//.mb-3 -->
|
||||||
|
|
||||||
|
|
||||||
@ -37,30 +47,41 @@
|
|||||||
<?= lang('Tarifapreimpresion.margen') ?>*
|
<?= lang('Tarifapreimpresion.margen') ?>*
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="margen"
|
id="margen"
|
||||||
name="margen"
|
name="margen"
|
||||||
required
|
required
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value="<?= old('margen', $tarifapreimpresionEntity->margen) ?>"
|
value="<?= old('margen', $tarifapreimpresionEntity->margen) ?>">
|
||||||
>
|
|
||||||
</div><!--//.mb-3 -->
|
</div><!--//.mb-3 -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="comment" class="form-label">
|
||||||
|
<?= lang('Tarifapreimpresion.comment') ?>*
|
||||||
|
</label>
|
||||||
|
<textarea
|
||||||
|
id="comment"
|
||||||
|
name="comment"
|
||||||
|
rows="5"
|
||||||
|
cols="10"
|
||||||
|
placeholder="<?= lang('Tarifapreimpresion.comment_placeholder') ?>"
|
||||||
|
class="form-control"><?= old('comment', $tarifapreimpresionEntity->comment) ?></textarea>
|
||||||
|
</div><!--//.mb-3 -->
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div class="form-check form-check-inline">
|
<div class="form-check form-check-inline">
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
id="mostrar_en_presupuesto"
|
id="mostrar_en_presupuesto"
|
||||||
name="mostrar_en_presupuesto"
|
name="mostrar_en_presupuesto"
|
||||||
value="1"
|
value="1"
|
||||||
class="form-check-input"<?= $tarifapreimpresionEntity->mostrar_en_presupuesto == true ? 'checked' : ''; ?>
|
class="form-check-input" <?= $tarifapreimpresionEntity->mostrar_en_presupuesto == true ? 'checked' : ''; ?>>
|
||||||
>
|
|
||||||
<label for="mostrar_en_presupuesto" class="form-check-label">
|
<label for="mostrar_en_presupuesto" class="form-check-label">
|
||||||
<?= lang('Tarifapreimpresion.mostrar_en_presupuesto') ?>
|
<?= lang('Tarifapreimpresion.mostrar_en_presupuesto') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div><!--//.col -->
|
</div><!--//.col -->
|
||||||
|
|
||||||
</div><!-- //.row -->
|
</div><!-- //.row -->
|
||||||
@ -16,6 +16,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= lang('Tarifapreimpresion.nombre') ?></th>
|
<th><?= lang('Tarifapreimpresion.nombre') ?></th>
|
||||||
|
<th><?= lang('Tarifapreimpresion.code') ?></th>
|
||||||
<th><?= lang('Tarifapreimpresion.precio') ?></th>
|
<th><?= lang('Tarifapreimpresion.precio') ?></th>
|
||||||
<th><?= lang('Tarifapreimpresion.margen') ?></th>
|
<th><?= lang('Tarifapreimpresion.margen') ?></th>
|
||||||
<th><?= lang('Tarifapreimpresion.mostrar_en_presupuesto') ?></th>
|
<th><?= lang('Tarifapreimpresion.mostrar_en_presupuesto') ?></th>
|
||||||
@ -28,6 +29,9 @@
|
|||||||
<td class="align-middle">
|
<td class="align-middle">
|
||||||
<?= empty($item->nombre) || strlen($item->nombre) < 51 ? esc($item->nombre) : character_limiter(esc($item->nombre), 50) ?>
|
<?= empty($item->nombre) || strlen($item->nombre) < 51 ? esc($item->nombre) : character_limiter(esc($item->nombre), 50) ?>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="align-middle">
|
||||||
|
<?= esc($item->code) ?>
|
||||||
|
</td>
|
||||||
<td class="align-middle">
|
<td class="align-middle">
|
||||||
<?= esc($item->precio) ?>
|
<?= esc($item->precio) ?>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user