funcionando la vista papel generico. investiganto ruta del boton añadir. falta poder quitar botones primera col

This commit is contained in:
Jaime Jimenez
2023-05-22 20:47:03 +02:00
parent 671f196191
commit 0ddd37b0c5
10 changed files with 321 additions and 354 deletions

View File

@ -21,7 +21,7 @@ class PapelGenericoModel extends \App\Models\GoBaseModel
];
protected $allowedFields = ["nombre", "code", "code_ot", "show_in_client"];
protected $returnType = "App\Entities\Configuracion\PapelGenericoEntity";
protected $returnType = "App\Entities\Configuracion\PapelGenerico";
protected $useTimestamps = true;
protected $useSoftDeletes = false;
@ -34,29 +34,29 @@ class PapelGenericoModel extends \App\Models\GoBaseModel
protected $validationRules = [
"code" => [
"label" => "PapelGenericoes.code",
"label" => "PapelGenerico.code",
"rules" => "trim|max_length[5]",
],
"code_ot" => [
"label" => "PapelGenericoes.codeOt",
"label" => "PapelGenerico.codeOt",
"rules" => "trim|max_length[5]",
],
"nombre" => [
"label" => "PapelGenericoes.nombre",
"label" => "PapelGenerico.nombre",
"rules" => "trim|required|max_length[255]",
],
];
protected $validationMessages = [
"code" => [
"max_length" => "PapelGenericoes.validation.code.max_length",
"max_length" => "PapelGenerico.validation.code.max_length",
],
"code_ot" => [
"max_length" => "PapelGenericoes.validation.code_ot.max_length",
"max_length" => "PapelGenerico.validation.code_ot.max_length",
],
"nombre" => [
"max_length" => "PapelGenericoes.validation.nombre.max_length",
"required" => "PapelGenericoes.validation.nombre.required",
"max_length" => "PapelGenerico.validation.nombre.max_length",
"required" => "PapelGenerico.validation.nombre.required",
],
];