Pequenhos cambios a jsp de home y login

parent a9d779b8
...@@ -68,6 +68,12 @@ ...@@ -68,6 +68,12 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId> <artifactId>spring-boot-starter-security</artifactId>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>org.projectlombok</groupId>-->
<!-- <artifactId>lombok</artifactId>-->
<!-- <version>1.18.22</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
</dependencies> </dependencies>
<build> <build>
......
...@@ -84,7 +84,6 @@ public class PostulanteController { ...@@ -84,7 +84,6 @@ public class PostulanteController {
@PostMapping(value = "/postulante",consumes = "application/json") @PostMapping(value = "/postulante",consumes = "application/json")
public String guardarPostulante(@RequestBody Postulante postulante){ public String guardarPostulante(@RequestBody Postulante postulante){
System.out.println("hola");
postulante.getTecnologias().stream().filter( postulante.getTecnologias().stream().filter(
tec -> tec.getTecnologia().getId() != 0 tec -> tec.getTecnologia().getId() != 0
).forEach( ).forEach(
...@@ -98,7 +97,6 @@ public class PostulanteController { ...@@ -98,7 +97,6 @@ public class PostulanteController {
estudio.setInstitucion(institucion); estudio.setInstitucion(institucion);
} }
} }
System.out.println("hola");
post.save(postulante); post.save(postulante);
return "redirect:/postulacion-correcta"; return "redirect:/postulacion-correcta";
} }
......
...@@ -13,7 +13,14 @@ import javax.persistence.ManyToOne; ...@@ -13,7 +13,14 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table; import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonBackReference; import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
@Data
@RequiredArgsConstructor
@NoArgsConstructor(access = AccessLevel.PACKAGE, force = true)
@Entity @Entity
@Table(name="ciudad") @Table(name="ciudad")
public class Ciudad{ public class Ciudad{
...@@ -66,6 +73,6 @@ public class Ciudad{ ...@@ -66,6 +73,6 @@ public class Ciudad{
} }
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link href="https://getbootstrap.com/docs/4.0/examples/signin/signin.css" rel="stylesheet" crossorigin="anonymous">
<title>Document</title> <title>Document</title>
</head> </head>
<body> <body>
<a href="postulante">Form postulante</a>
<div> <div class="container">
<form action="/logout" method="get"> <jsp:include page="header.jsp"/>
<p> <a href="postulante">Form postulante</a>
Welcome <div>
</p> <form action="/logout" method="get">
<input type="submit" value="Sign Out" /> <p>
</form> Welcome
</p>
<input type="submit" value="Sign Out" />
</form>
</div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<form:form method="post" action="/login"> <form:form method="post" action="/login">
<h3 class="mb-5">Sign in</h3> <h3 class="mb-5">Ingresar</h3>
<div class="form-outline mb-4"> <div class="form-outline mb-4">
<input type="email" id="typeEmailX-2" class="form-control form-control-lg" name="email" placeholder="example@example.com"/> <input type="email" id="typeEmailX-2" class="form-control form-control-lg" name="email" placeholder="example@example.com"/>
<label class="form-label" for="typeEmailX-2">Email</label> <label class="form-label" for="typeEmailX-2">Email</label>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<button class="btn btn-primary btn-lg btn-block" type="submit">Login</button> <button class="btn btn-primary btn-lg btn-block" type="submit">Ingresar</button>
</form:form> </form:form>
<hr class="my-4"> <hr class="my-4">
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<style type="text/css" media="screen"> <style type="text/css" media="screen">
body { body {
background-color: blue background-color: #506BEE
} }
.card { .card {
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
} }
.image span { .image span {
background-color: blue; background-color: #506BEE;
color: #fff; color: #fff;
padding: 6px; padding: 6px;
height: 30px; height: 30px;
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
} }
.user-details h4 { .user-details h4 {
color: blue color: #506BEE
} }
.ratings { .ratings {
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
.inputs input:focus { .inputs input:focus {
box-shadow: none; box-shadow: none;
border: 2px solid blue border: 2px solid #506BEE
} }
.about-inputs label { .about-inputs label {
...@@ -119,10 +119,10 @@ ...@@ -119,10 +119,10 @@
} }
.add-experience:hover { .add-experience:hover {
background: blue; background: #506BEE;
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
border: solid 1px blue border: solid 1px #506BEE
} }
</style> </style>
......
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