Commit 62c9343f by Joel Florentin

agregar enlaces al index a las demas paginas

parent 86dda698
...@@ -31,7 +31,7 @@ public class CargoController { ...@@ -31,7 +31,7 @@ public class CargoController {
this.convoRepo = convoRepo; this.convoRepo = convoRepo;
} }
@RequestMapping("/cargos") @RequestMapping("/convocatorias")
public String menuCargos(Model model, public String menuCargos(Model model,
@RequestParam(required = false) Long cargoId, @RequestParam(required = false) Long cargoId,
@RequestParam(required = false) Integer isOpen//1: true, 0: false @RequestParam(required = false) Integer isOpen//1: true, 0: false
...@@ -41,7 +41,7 @@ public class CargoController { ...@@ -41,7 +41,7 @@ public class CargoController {
model.addAttribute("convocatorias", convoRepo.f1ndByCargoAndEstado(new TypedParameterValue(LongType.INSTANCE, cargoId), new Date(), new TypedParameterValue(IntegerType.INSTANCE, isOpen))); model.addAttribute("convocatorias", convoRepo.f1ndByCargoAndEstado(new TypedParameterValue(LongType.INSTANCE, cargoId), new Date(), new TypedParameterValue(IntegerType.INSTANCE, isOpen)));
//model.addAttribute("convocatorias",cargoId==null? convoRepo.findAll() : convoRepo.findByCargoId(cargoId)); //model.addAttribute("convocatorias",cargoId==null? convoRepo.findAll() : convoRepo.findByCargoId(cargoId));
return "cargo"; return "convocatorias";
} }
@RequestMapping("/cargo") @RequestMapping("/cargo")
......
...@@ -8,5 +8,8 @@ ...@@ -8,5 +8,8 @@
</head> </head>
<body> <body>
<a href="postulante">Form postulante</a> <a href="postulante">Form postulante</a>
<a href="postulantes">Lista de postulantes</a>
<a href="#">Tecnologias</a>
<a href="convocatorias">Lista de convocatorias</a>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment