Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oscar Enrique Gonzalez Escurra
th-app-java
Commits
f44403cf
Commit
f44403cf
authored
Nov 24, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editar perfil vista y navbar
parent
638f36e4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
63 deletions
+53
-63
curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java
+1
-4
curriculumsearch/src/main/webapp/jsp/edit-user-data.jsp
+43
-56
curriculumsearch/src/main/webapp/jsp/layouts/base.jsp
+3
-0
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
+6
-3
No files found.
curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java
View file @
f44403cf
package
com
.
roshka
.
configuration
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.authentication.dao.DaoAuthenticationProvider
;
...
...
@@ -12,13 +11,11 @@ import org.springframework.security.core.userdetails.UserDetailsService;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.web.util.matcher.AntPathRequestMatcher
;
import
javax.sql.DataSource
;
@Configuration
@EnableWebSecurity
public
class
WebSecurityConfig
extends
WebSecurityConfigurerAdapter
{
@Autowired
private
DataSource
dataSource
;
@Bean
public
UserDetailsService
userDetailsService
()
{
...
...
curriculumsearch/src/main/webapp/jsp/edit-user-data.jsp
View file @
f44403cf
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%
>
<
html
>
<
head
>
<meta
charset=
"ISO-8859-1
"
>
<title>
Edit Profile
</title
>
<
meta
charset=
"UTF-8
"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge
"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0
"
>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin=
"anonymous"
>
<script
src=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity=
"sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin=
"anonymous"
></script
>
</head>
<style>
@media
(
min-width
:
1025px
)
{
.h-custom
{
height
:
100vh
!important
;
}
}
</style
>
<body
>
<section
class=
"h-100 h-custom"
>
<div
class=
"container py-5 h-100"
>
<div
class=
"row d-flex justify-content-center align-items-center h-100"
>
<div
class=
"col-lg-8 col-xl-6
"
>
<div
class=
"card rounded-3"
>
<img
src=
"https://cdn.pixabay.com/photo/2013/08/09/05/54/layer-170971_960_720.jpg"
class=
"w-100"
style=
"border-top-left-radius: .3rem; border-top-right-radius: .3rem;height: 250px;"
alt=
"Sample photo"
;
>
<div
class=
"card-body p-4 p-md-5"
>
<
h3
class=
"mb-4 pb-2 pb-md-0 mb-md-5 px-md-2"
>
Perfil
</h3
>
<form:form
action=
"/edit-user-data"
class=
"px-md-2"
method=
"POST"
modelAttribute=
"user
"
>
<div
class=
"form-outline mb-4"
>
<form:label
path=
"email"
class=
"form-label"
>
Email
</form:label
>
<form:input
path=
"email"
type=
"email"
class=
"form-control"
required=
"required
"
></form:input>
<
%@
page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%
>
<
%@
taglib
uri=
"http://kwonnam.pe.kr/jsp/template-inheritance"
prefix=
"layout"
%
>
<layout:extends
name=
"layouts/base.jsp
"
>
<layout:put
block=
"cssDeclaracion"
type=
"APPEND"
></layout:put
>
<
layout:put
block=
"contents"
type=
"REPLACE
"
>
<div
class=
"card justify-content-center mx-auto mt-2"
style=
"width: 30rem;
"
>
<div
class=
"card-header
"
>
<h5>
Datos del usuario
</h5
>
</div
>
<form:form
action=
"/edit-user-data"
method=
"post"
modelAttribute=
"user"
class=
"d-flex flex-column"
>
<div
class=
"card-body"
>
<div
class=
"row mb-3"
>
<form:label
path=
"email"
class=
"col-sm-3 col-form-label"
>
Email
</form:label
>
<div
class=
"col-sm"
>
<form:input
path=
"email"
placeholder=
"Ingrese su email"
type=
"email"
class=
"form-control"
required=
"required"
></form:input
>
</div
>
</div
>
<div
class=
"row mb-3
"
>
<form:label
path=
"firstName"
class=
"col-sm-3 col-form-label"
>
Nombre
</form:label
>
<div
class=
"col-sm"
>
<form:input
path=
"firstName"
class=
"form-control"
placeholder=
"Ingrese su nombre"
></form:input
>
<
/div
>
</div>
<div
class=
"row mb-3
"
>
<form:label
path=
"lastName"
class=
"col-sm-3 col-form-label"
>
Apellido
</form:label
>
<div
class=
"col-sm"
>
<form:input
path=
"lastName"
class=
"form-control"
placeholder=
"Ingrese su apellido
"
></form:input>
</div>
<div
class=
"row"
>
<div
class=
"col-md-6 mb-4"
>
<div
class=
"form-outline"
>
<form:label
path=
"firstName"
class=
"form-label"
>
Nombre
</form:label>
<form:input
path=
"firstName"
class=
"form-control"
></form:input>
</div>
</div>
<div
class=
"col-md-6 mb-4"
>
<div
class=
"form-outline"
>
<form:label
path=
"lastName"
class=
"form-label"
>
Apellido
</form:label>
<form:input
path=
"lastName"
class=
"form-control"
></form:input>
<div
class=
"card-footer d-flex flex-column"
>
<div
class=
"mt-2 align-self-end"
>
<input
type=
"submit"
value=
'${tecnologia.id == null ? "Agregar" : "Modificar"}'
class=
"btn btn-primary"
/>
</div>
</div>
</form:form>
</div>
<div
class=
"row mb-4 pb-2 pb-md-0 mb-md-5"
>
<div
class=
"col-md-6"
>
</div>
</div>
</layout:put>
<layout:put
block=
"scripts"
type=
"APPEND"
>
</layout:put>
</layout:extends><html>
<button
type=
"submit"
class=
"btn btn-success btn-lg mb-1"
>
Submit
</button>
<a
href=
"/home"
class=
"btn btn-danger btn-lg mr-3 ml-3 mb-1"
>
Volver
</a>
</form:form>
</div>
</div>
</div>
</div>
</div>
</section>
</body>
</html>
curriculumsearch/src/main/webapp/jsp/layouts/base.jsp
View file @
f44403cf
...
...
@@ -62,6 +62,9 @@
</ul>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"/edit-user-data"
>
Editar Perfil
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"/logout"
>
Salir
</a>
</li>
</ul>
...
...
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
View file @
f44403cf
...
...
@@ -123,9 +123,12 @@
<div class="col-auto col-md-8">
<select class="form-select form-select-sm " name="lvlEng" id="lvlEng">
<option value="">Todas</option>
<c:forEach var = "lvl" begin = "1" end = "5">
<option value="${lvl}" ${param.lvlEng == lvl ? "selected" : ""}>${lvl}</option>
</c:forEach>
<option value="1">Básico</option>
<option value="2">Regular</option>
<option value="3">Intermedio</option>
<option value="4">Avanzado</option>
<option value="5">Proficiente</option>
</select>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment