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
f3332535
Commit
f3332535
authored
Nov 03, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge estilo y select precargados
parent
b7177b73
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
12 deletions
+35
-12
curriculumsearch/src/main/java/com/roshka/modelo/Disponibilidad.java
+8
-2
curriculumsearch/src/main/java/com/roshka/modelo/Modalidad.java
+8
-2
curriculumsearch/src/main/resources/static/main.js
+1
-1
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
+18
-7
No files found.
curriculumsearch/src/main/java/com/roshka/modelo/Disponibilidad.java
View file @
f3332535
...
@@ -3,16 +3,22 @@ package com.roshka.modelo;
...
@@ -3,16 +3,22 @@ package com.roshka.modelo;
import
com.fasterxml.jackson.annotation.JsonValue
;
import
com.fasterxml.jackson.annotation.JsonValue
;
public
enum
Disponibilidad
{
public
enum
Disponibilidad
{
TIEMPO_COMPLETO
(
"C"
),
PARCIAL
(
"P
"
);
TIEMPO_COMPLETO
(
"C"
,
"Tiempo Completo"
),
PARCIAL
(
"P"
,
"Parcial
"
);
private
String
code
;
private
String
code
;
private
String
descripcion
;
private
Disponibilidad
(
String
code
)
{
private
Disponibilidad
(
String
code
,
String
descripcion
)
{
this
.
code
=
code
;
this
.
code
=
code
;
this
.
descripcion
=
descripcion
;
}
}
@JsonValue
@JsonValue
public
String
getCode
()
{
public
String
getCode
()
{
return
code
;
return
code
;
}
}
public
String
getDescripcion
()
{
return
descripcion
;
}
}
}
curriculumsearch/src/main/java/com/roshka/modelo/Modalidad.java
View file @
f3332535
...
@@ -3,16 +3,22 @@ package com.roshka.modelo;
...
@@ -3,16 +3,22 @@ package com.roshka.modelo;
import
com.fasterxml.jackson.annotation.JsonValue
;
import
com.fasterxml.jackson.annotation.JsonValue
;
public
enum
Modalidad
{
public
enum
Modalidad
{
PRESENCIAL
(
"P"
),
SEMIPRESENCIAL
(
"S"
),
REMOTO
(
"R
"
);
PRESENCIAL
(
"P"
,
"Presencial"
),
SEMIPRESENCIAL
(
"S"
,
"Semi Presencial"
),
REMOTO
(
"R"
,
"Remoto
"
);
private
String
code
;
private
String
code
;
private
String
descripcion
;
private
Modalidad
(
String
code
)
{
private
Modalidad
(
String
code
,
String
descripcion
)
{
this
.
code
=
code
;
this
.
code
=
code
;
this
.
descripcion
=
descripcion
;
}
}
@JsonValue
@JsonValue
public
String
getCode
()
{
public
String
getCode
()
{
return
code
;
return
code
;
}
}
public
String
getDescripcion
()
{
return
descripcion
;
}
}
}
curriculumsearch/src/main/resources/static/main.js
View file @
f3332535
...
@@ -93,7 +93,7 @@ function agregarFieldTecnologia(){
...
@@ -93,7 +93,7 @@ function agregarFieldTecnologia(){
pairs
[
name
]
=
value
pairs
[
name
]
=
value
}
}
tecnologias
[
cont_tecnologia
]
=
{}
tecnologias
[
cont_tecnologia
]
=
{}
tecnologias
[
cont_tecnologia
][
"tecnologia"
]
=
pairs
[
"tecnologia-id"
]
==
"-1"
?{
nombre
:
pairs
[
"tecnologia-nombre"
]}:{
id
:
pairs
[
"tecnologia-id"
],
nombre
:
document
.
querySelector
(
'option[value="'
+
pairs
[
"tecnologia-id"
]
+
'"]'
).
innerHTML
}
tecnologias
[
cont_tecnologia
][
"tecnologia"
]
=
pairs
[
"tecnologia-id"
]
==
"-1"
?{
nombre
:
pairs
[
"tecnologia-nombre"
]}:{
id
:
pairs
[
"tecnologia-id"
],
nombre
:
document
.
querySelector
(
'
[name=tecnologia-id] >
option[value="'
+
pairs
[
"tecnologia-id"
]
+
'"]'
).
innerHTML
}
tecnologias
[
cont_tecnologia
][
"nivel"
]
=
pairs
.
nivel
tecnologias
[
cont_tecnologia
][
"nivel"
]
=
pairs
.
nivel
//tecnologias[cont_tecnologia] = pairs;
//tecnologias[cont_tecnologia] = pairs;
formtecn
.
reset
();
formtecn
.
reset
();
...
...
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
View file @
f3332535
...
@@ -219,17 +219,19 @@
...
@@ -219,17 +219,19 @@
<div
class=
"inputs mb-3 col-md-6"
>
<div
class=
"inputs mb-3 col-md-6"
>
<label
for=
"disponibilidad"
class=
"form-label"
>
Disponibilidad
</label>
<label
for=
"disponibilidad"
class=
"form-label"
>
Disponibilidad
</label>
<select
name=
"disponibilidad"
id=
"disponibilidad"
class=
"bg-light"
>
<select
name=
"disponibilidad"
id=
"disponibilidad"
class=
"bg-light"
>
<option
value=
"Tiempo completo"
selected
>
Tiempo completo
</option>
<c:forEach
items=
"${disponibilidades}"
var=
"disponibilidad"
>
<option
value=
"Medio tiempo"
>
Medio tiempo
</option>
<option
value=
"${disponibilidad.getCode()}"
>
${disponibilidad.getDescripcion()}
</option>
</c:forEach>
</select>
</div>
</select>
</div>
<div
class=
"inputs mb-3 col-md-6"
>
<div
class=
"inputs mb-3 col-md-6"
>
<label
for=
"modalidad"
class=
"form-label"
>
Modalidad
</label>
<label
for=
"modalidad"
class=
"form-label"
>
Modalidad
</label>
<select
name=
"modalidad"
id=
"modalidad"
class=
"bg-light"
>
<select
name=
"modalidad"
id=
"modalidad"
class=
"bg-light"
>
<option
value=
"Pesencial"
selected
>
Presencial
</option>
<c:forEach
items=
"${modalidades}"
var=
"modalidad"
>
<option
value=
"Semi presencial"
>
Semi presencial
</option>
<option
value=
"${modalidad.getCode()}"
>
${modalidad.getDescripcion()}
</option>
<option
value=
"Remoto"
>
Remoto
</option>
</c:forEach>
</select>
</div>
</select>
</div>
...
@@ -303,8 +305,17 @@
...
@@ -303,8 +305,17 @@
</div>
</div>
<div
class=
"inputs"
>
<div
class=
"inputs"
>
<label
for=
"refNombre"
class=
"form-label"
>
Referencia Nombre
</label>
<label
for=
"descripcion"
class=
"form-label"
>
Descripcion
</label>
<input
type=
"text"
class=
"form-control "
name=
"referencias"
id=
"refNombre"
>
<textarea
class=
"form-control "
name=
"descripcion"
id=
"descripcion"
>
</textarea>
</div>
<div
class=
"inputs"
>
<label
for=
"refNombre"
class=
"form-label"
>
Nombre de la Referencia
</label>
<input
type=
"text"
class=
"form-control "
name=
"nombreReferencia"
id=
"refNombre"
>
</div>
<div
class=
"inputs"
>
<label
for=
"refTel"
class=
"form-label"
>
Telefono de la Referencia
</label>
<input
type=
"text"
class=
"form-control "
name=
"telefonoReferencia"
id=
"refTel"
>
</div>
</div>
<div
class=
"inputs"
>
<div
class=
"inputs"
>
...
...
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