mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'fix/add_presupuesto_tirada_0' into 'main'
arreglada la comprobación de páginas y tirada cuando se añade un presupuesto See merge request jjimenez/safekat!841
This commit is contained in:
@ -395,6 +395,7 @@ return [
|
||||
'gramaje_interior' => 'Seleccione el gramaje',
|
||||
'pais' => 'Debe seleccionar un país',
|
||||
'integer_greatherThan_0' => 'Número entero > 0 requerido',
|
||||
'greater_than_0' => 'El campo {field} debe ser mayor que 0',
|
||||
'tirada_no_valida' => "Tirada no valida",
|
||||
'sin_gramaje' => "Seleccione gramaje",
|
||||
'tipo_cubierta' => 'Seleccione tipo de cubierta',
|
||||
|
||||
@ -151,6 +151,14 @@ class PresupuestoModel extends \App\Models\BaseModel
|
||||
public static $labelField = "titulo";
|
||||
|
||||
protected $validationRulesAdd = [
|
||||
"tirada" => [
|
||||
"label" => "Presupuestos.tirada",
|
||||
"rules" => "required|integer|greater_than[0]",
|
||||
],
|
||||
"paginas" => [
|
||||
"label" => "Presupuestos.paginas",
|
||||
"rules" => "required|integer|greater_than[0]",
|
||||
],
|
||||
"autor" => [
|
||||
"label" => "Presupuestos.autor",
|
||||
"rules" => "trim|max_length[150]",
|
||||
@ -190,6 +198,12 @@ class PresupuestoModel extends \App\Models\BaseModel
|
||||
];
|
||||
|
||||
protected $validationMessagesAdd = [
|
||||
"tirada" => [
|
||||
"greater_than" => "Presupuestos.validation.greater_than_0",
|
||||
],
|
||||
"paginas" => [
|
||||
"greater_than" => "Presupuestos.validation.greater_than_0",
|
||||
],
|
||||
"autor" => [
|
||||
"max_length" => "Presupuestos.validation.max_length",
|
||||
"required" => "Presupuestos.validation.requerido",
|
||||
|
||||
Reference in New Issue
Block a user