postulante-form.jsp 25.7 KB
Newer Older
1 2 3
<%@ 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" %>
4 5 6 7 8 9 10 11 12
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
13 14
    <title>Curriculum</title>
    <link href="../css/formPostulanteStyle.css" rel="stylesheet" type="text/css"/>
15 16
  </head>

Nelson Ruiz committed
17
  <body class="container">
18 19 20 21 22
    <div class="row">
      <div id="errorSection" class="col" tabindex="-1">

      </div>
    </div>
23 24
    <form name="postulante" method="post" class="needs-validation" novalidate>
                      <div class="container mt-3">
Nelson Ruiz committed
25 26
                          <div class="card p-3 text-center">
                              <div class="d-flex flex-row justify-content-center mb-3">
Nelson Ruiz committed
27
                                
Nelson Ruiz committed
28
                              </div>
Nelson Ruiz committed
29
                              <h4>Curriculum</h4>
Nelson Ruiz committed
30
                              <div class="row">
31
                                  
Nelson Ruiz committed
32 33

                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
34
                                    <label for="nombre" class="form-label">Nombre</label>
35
                                    <input type="text" name="nombre" class="form-control  " id="nombre" required>
36
                                    
Nelson Ruiz committed
37 38
                                  </div>
                                  
Nelson Ruiz committed
39
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
40
                                    <label for="apellido" class="form-label">Apellido</label>
41
                                    <input type="text" name="apellido" class="form-control  " id="apellido" required>
42
                                    
Nelson Ruiz committed
43 44 45
                                  </div>
          

Nelson Ruiz committed
46
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
47
                                    <label for="correo" class="form-label">Email address</label>
48
                                    <input type="email" name="correo" class="form-control  " id="correo" required>
49
                                    
Nelson Ruiz committed
50
                                  </div>
51 52 53 54 55 56 57 58 59

                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="nacionalidad" class="form-label"> Nacionalidad</label> 
                                    <select name="nacionalidad" id="nacionalidad" class="bg-light">
                                      <c:forEach items="${nacionalidades}" var="nacionalidad">
                                        <option value="${nacionalidad.getDescripcion()}">${nacionalidad.getDescripcion()}</option>
                                      </c:forEach>
                                    
                                  </select> </div>
60 61 62

                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="tipoDocumento" class="form-label"> Tipo de documento</label> 
63
                                    <select name="tipoDocumento" id="tipoDocumento" class="bg-light" required>
64 65 66 67
                                        <option value='CI' selected>C.I</option>
                                        <option value='PAS'>Pasport</option>
                                        <option value='Otro'>Otro</option>
                                    </select> 
68
                                  </div>
Nelson Ruiz committed
69
                              
Nelson Ruiz committed
70
                                  <div class="inputs  mb-3 col-md-6">
71 72
                                    <label for="nroDocument" class="form-label">Numero de Documento</label>
                                    <input type="number" name="nroDocument" class="form-control  " id="nroDocument" required>
73
                                    
Nelson Ruiz committed
74 75
                                  </div>
                                  
76 77 78 79 80 81 82 83
                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="departamentos" class="form-label"> Departamentos</label> 
                                    <select  id="departamentos" class="bg-light">
                                      <c:forEach items="${departamentos}" var="departamentos">
                                        <option value="${departamentos.getId()}">${departamentos.getNombre()}</option>
                                      </c:forEach>
                                    
                                    </select> 
Nelson Ruiz committed
84
                                  </div>
85 86 87 88 89 90

                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="ciudad" class="form-label"> Ciudad</label> 
                                    <select name="ciudadId" id="ciudad" class="bg-light">
                                      
                                    
91 92
                                    </select> 
                                  </div>
Nelson Ruiz committed
93
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
94
                                    <label for="telefono" class="form-label">Telefono</label>
95
                                    <input type="number" name="telefono" class="form-control  " id="telefono" required>
96
                                    
Nelson Ruiz committed
97 98
                                  </div>

99 100 101
                                  <div class="inputs mb-3 col-md-6">
                                    <label for="fechaNacimiento" class="form-label">Fecha de nacimiento</label>
                                    <input type="date" name="fechaNacimiento" class="form-control  " id="fechaNacimiento" required>
102 103 104 105 106 107 108 109
                                    
                                  </div>

                                  <div class="about-inputs  mb-3 col-md-12 center">
                                    <label for="resumen" class="form-label">Resumen</label>
                                    <textarea  class="form-control center  " name="resumen" id="resumen" required > </textarea>
                                    
                                    
110
                                  </div>
Nelson Ruiz committed
111 112
                              
                        
113
                                  <div class="inputs mb-3 col-md-3"> <label for="nivelIngles" class="form-label"> Nivel de ingles</label> 
114
                                    <select name="nivelIngles" id="nivelIngles" class="content-select">
115 116 117 118 119
                                    <option value="1" selected>Ingles muy basico</option>
                                    <option value="2" >Comprendo algunas cosas y puedo leer con la ayuda del traductor</option>
                                    <option value="3" >Puedo leer tranquilamente</option>
                                    <option value="4" >Puedo escribir documentacion</option>
                                    <option value="5" >Puedo escribir y hablar tranquilamente</option>
120 121
                                    </select> 
                                  </div>
Nelson Ruiz committed
122
                                
123
                                  <div class="inputs mb-3 col-md-3"> 
124
                                    <label for="disponibilidad" class="form-label"> Disponibilidad</label> 
125
                                    <select name="disponibilidad" id="disponibilidad" class="content-select">
126 127 128 129
                                      <c:forEach items="${disponibilidades}" var="disponibilidad">
                                        <option value="${disponibilidad.getCode()}">${disponibilidad.getDescripcion()}</option>
                                      </c:forEach>
                                    
130
                                  </select> </div>
Nelson Ruiz committed
131
                                
132
                                  <div class="inputs mb-3 col-md-3"> 
133
                                    <label for="estadoCivil" class="form-label"> Estado Civil</label> 
134
                                    <select name="estadoCivil" id="estadoCivil" class="content-select">
135 136
                                      <c:forEach items="${estadosCiviles}" var="estadoCivil">
                                        <option value="${estadoCivil.getDescripcion()}">${estadoCivil.getDescripcion()}</option>
137
                                      </c:forEach>
138
                                    </select> 
139
                                  </div>
140
                                  <div class="inputs mb-3 col-md-3">
141 142 143
                                    <label for="formFile" class="form-label">Cargar cv</label>
                                    <input class="form-control" type="file" id="cvFile">
                                  </div>
144
                                  <!-- Button Agregar Cargo al que postulas -->
145
                                  <button type="button" class="btn btn-primary"><span class="add-experience" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#cargoForm"><i  class="fa fa-plus"></i>&nbsp;Agregar Cargo al que postulas</span></button><br>
146 147 148
                                  <p id="no-valid-cargo" style="display: none; color: darkred; border: solid 1px darkred; border-radius: 25px; width: 75%" class="m-3">
                                    *Agrega por lo menos un cargo
                                  </p>   
149
                                  <div class="mt-3 gap-2 row row-cols-4" style="display: flex;" id="cargos"></div>
Nelson Ruiz committed
150

151
                                  <!-- Button Agregar Experiencia -->
152
                                  <button type="button" class="btn btn-primary mt-2"><span class="add-experience"  data-bs-toggle="modal" data-bs-target="#experienciaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Experiencia</span></button><br>   
153
                                  <div class="mt-3 gap-2 row row-cols-4" id="experiencias"></div>
154
                                    
155
                                  <!-- Button Agregar Estudio -->
156
                                  <button type="button" class="btn btn-primary mt-2"><span class="add-experience"  data-bs-toggle="modal" data-bs-target="#estudioForm"><i class="fa fa-plus"></i>&nbsp;Agregar Estudio</span></button><br>   
157
                                  <div class="mt-3 gap-2 row row-cols-4" id="estudios"></div>
158 159
                            
                               
160
                                  <!-- Button Agregar Tecnologia -->
161
                                  <button type="button" class="btn btn-primary mt-2"><span class="add-experience"  data-bs-toggle="modal" data-bs-target="#tecnologiaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Tecnologia</span></button><br>
162 163 164 165 166 167
                                  
                                  <p id="no-valid-tecno" style="display: none; color: darkred; border: solid 1px darkred; border-radius: 25px; width: 75%" class="m-3">
                                    *Agrega por lo menos una tecnologia
                                  </p>   
                                  <div class="mt-3 gap-2 row row-cols-5" style="display: flex;" id="tecnologias">
                                  </div>
168

169
                                  <!-- Button Agregar Refencia personal -->
170
                                  <button type="button" class="btn btn-primary mt-2"><span class="add-experience"  data-bs-toggle="modal" data-bs-target="#referenciaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Referencia Personal</span></button><br>   
171
                                  <div class="mt-3 gap-2 row row-cols-4" id="referencia"></div>
172 173
                      
                        
Nelson Ruiz committed
174 175
                                
                                <div class="mt-3 gap-2 d-flex justify-content-end">
176
                                  <a class="px-3 btn btn-sm btn-outline-primary" href="/work-with-us">Cancelar</a>
Nelson Ruiz committed
177
                                  <button class="px-3 btn btn-sm btn-primary" type="submit">Guardar</button>
Nelson Ruiz committed
178
                                </div>
Nelson Ruiz committed
179
                              </div>
180
                          </div>
Nelson Ruiz committed
181
                      </div>
182
    </form>
willgonzz committed
183
    <!---------------------------------------Modal de Cargos disponibles---------------------------------------------------------------->
184
    <div class="modal fade" id="cargoForm" tabindex="-1" role="dialog" aria-labelledby="cargoForm" aria-hidden="true">
willgonzz committed
185 186 187 188
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel" >CargosDisponibles</h5>
189
            <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
willgonzz committed
190 191 192 193 194 195 196 197
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <form name="cargo-form" class="needs-validation" novalidate>
              <label for="cargo-nombre" class="form-label">Cargo</label>
              <div class="input-group mb-3">
                <select class="form-select" name="cargo-id" aria-label="Default select example" required>
198
                  
willgonzz committed
199 200 201 202 203 204 205 206
                  <c:forEach items="${CargosDisponibles}" var="convocatoria">
                                <option value="${convocatoria.getId()}">${convocatoria.getCargo().getNombre()}</option>
                  </c:forEach>>
                </select>
              </div>
            </form>
        </div>
        <div class="modal-footer">
207 208
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" onclick="agregarFieldCargo()">Agregar</button>
willgonzz committed
209 210 211 212 213
        </div>
      </div>
    </div>
  </div>  
  <!-------------------------------------------------------------------------------------------------------------------------->
214

215
      <!--Modal de Experiencia-->
216 217 218 219 220
      <div class="modal fade" id="experienciaForm" tabindex="-1" role="dialog" aria-labelledby="experienciaForm" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel">Experiencia</h5>
221
              <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
222 223 224 225
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
226
                <form name="experiencia-form" class="needs-validation" novalidate>
227

Nelson Ruiz committed
228
                        <div class="inputs">
229 230
                            <label for="institucionExperiencia" class="inputs form-label">Institucion</label>
                            <input type="text" class="inputs form-control  " name="institucion" id="institucionExperiencia" required>
Nelson Ruiz committed
231 232
                        </div>
                        <div class="inputs">
233 234
                            <label for="fechaDesdeExperiencia" class="form-label">Fecha Desde</label>
                            <input type="date" class="form-control" name="fechaDesde" id="fechaDesdeExperiencia" required>
235 236 237
                            <div class="invalid-feedback errorFechaDesde">
                              
                            </div>
Nelson Ruiz committed
238 239 240
                        </div>
                         
                        <div class="inputs">
241 242
                            <label for="fechaHastaExperiencia" class="form-label">Fecha Hasta</label>
                            <input type="date" class="form-control" name="fechaHasta" id="fechaHastaExperiencia" >
243 244
                            <div class="invalid-feedback errorfechaHasta"></div>
                          </div>
Nelson Ruiz committed
245 246 247
                        
                        <div class="inputs">
                            <label for="cargo" class="form-label">Cargo</label>
248
                            <input type="text" class="form-control " name="cargo" id="cargo" required>
Nelson Ruiz committed
249 250 251
                        </div>

                        <div class="inputs">
252
                          <label for="descripcion" class="form-label">Descripcion</label>
253
                          <textarea  class="form-control  " name="descripcion" id="descripcion"> </textarea>
254 255 256 257 258 259 260 261 262

                        </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" >
Nelson Ruiz committed
263
                        </div>
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
                        
                        <div class="inputs">
                          <label for="motivoSalida" class="form-label">Motivo de Salida</label>
                          <textarea class="form-control  " name="motivoSalida" id="motivoSalida" ></textarea>
                        </div>
                        <div class="inputs">
                          <label for="tipoExperiencia" class="form-label"> Tipo de Experiencia</label> 
                            <select name="tipoExperiencia" id="tipoExperiencia" class="bg-light">
                              <c:forEach items="${tiposExperencia}" var="tipoExperiencia">
                                <option value="${tipoExperiencia.getDescripcion()}">${tipoExperiencia.getDescripcion()}</option>
                              </c:forEach>
                            
                            </select>
                        </div>
                        
Nelson Ruiz committed
279
                          
280

281 282 283
                </form>
            </div>
            <div class="modal-footer">
284 285
              <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
              <button id="agregar-exp" type="button" class="btn btn-primary" onclick="agregarFieldExpierncia()">Agregar</button>
286 287 288 289
            </div>
          </div>
        </div>
      </div>
willgonzz committed
290
    <!--------------------------------------------------------------------------------------->
291
      <div class="modal fade" id="tecnologiaForm" tabindex="-1" role="dialog" aria-labelledby="tecnologiaForm" aria-hidden="true">
willgonzz committed
292 293 294 295
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel" >tecnologia</h5>
296
              <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
willgonzz committed
297 298 299 300
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
301
              <form name="tecnologia-form" class="needs-validation" novalidate>
Joel Florentin committed
302 303
                <label for="tecnologia-nombre" class="form-label">Tecnologia</label>
                <div class="input-group mb-3">
304
                  <select class="form-select" name="tecnologia-id" aria-label="Default select example" required>
305
                    
Joel Florentin committed
306 307 308 309 310 311 312 313 314
                    <c:forEach items="${tecnologias}" var="tecnologia">
                      <option value="${tecnologia.id}">${tecnologia.nombre}</option>
                    </c:forEach>
                  </select>
                </div>
                  
                  
                  <input type="text" class="form-control d-none" name="tecnologia-nombre" id="tecnologia-nombre" >
                  <label for="nivel" class="form-label">Nivel</label>
315
                  <input type="range" class="form-range" name="nivel" id="nivel" min="1" max="5" required>
Joel Florentin committed
316 317 318
              </form>
          </div>
          <div class="modal-footer">
319 320
            <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
            <button type="button" class="btn btn-primary" onclick="agregarFieldTecnologia()">Agregar</button>
willgonzz committed
321 322
          </div>
        </div>
Joel Florentin committed
323 324 325
      </div>
    </div>      
  <!--------------------------------------------------------------------------------------->
326

327 328 329 330 331 332 333

      <!--Modal de Estudios-->
      <div class="modal fade" id="estudioForm" tabindex="-1" role="dialog" aria-labelledby="estudioForm" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel">Estudios</h5>
334
              <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
335 336 337 338
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
339
              <form name="estudio-form" class="needs-validation" novalidate>
340 341 342 343


                <div class="form-group">
                    <label for="tipoDeEstudio">Tipo de Estudio</label>
344
                    <select name="tipoDeEstudio" id="tipoDeEstudio" required>
345
                        
346 347 348 349
                        <c:forEach items="${tiposDeEstudio}" var="tipo">
                            <option value="${tipo}">${tipo.name}</option>
                        </c:forEach>
                    </select>
Joel Florentin committed
350
                </div>
351 352 353
<%--                <label for="tipoDeEstudio" class="form-label">Tipo De Estudio</label>--%>
<%--                <input type="text" class="form-control  " name="tipoDeEstudio" id="tipoDeEstudio">--%>
                <div class="form-group">
354 355
                    <label for="institucionEstudio" class="form-label">Institucion</label>
                    <input type="text" class="form-control" name="institucion" id="institucionEstudio" required>
Joel Florentin committed
356
                </div>
357 358
                <div class="form-group">
                    <label for="temaDeEstudio" class="form-label">Carrera/Bachiller/Tema de Curso</label>
359
                    <input type="text" class="form-control" name="temaDeEstudio" id="temaDeEstudio" required>
360 361 362
                </div>
                  <div class="form-group">
                      <label for="estado">Estado</label>
363
                      <select name="estado" id="estado" required>
364
                          
365 366 367 368
                          <c:forEach items="${estadosEstudio}" var="estado">
                              <option value="${estado}">${estado.name}</option>
                          </c:forEach>
                      </select>
Joel Florentin committed
369
                  </div>
370
                <div class="form-group">
371 372
                    <label for="fechaDesdeEstudio" class="form-label">Fecha Desde</label>
                    <input type="date" class="form-control  " name="fechaDesde" id="fechaDesdeEstudio" required>
373 374 375
                    <div class="invalid-feedback errorFechaDesde">
                              
                    </div>
376 377
                </div>
                <div class="form-group">
378 379
                    <label for="fechaHastaEstudio" class="form-label">Fecha Hasta</label>
                    <input type="date" class="form-control  " name="fechaHasta" id="fechaHastaEstudio" >
380 381 382
                    <div class="invalid-feedback errorFechaHasta">
                              
                    </div>
Joel Florentin committed
383
                </div>
384 385


Joel Florentin committed
386 387 388
            </form>
        </div>
        <div class="modal-footer">
389 390
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" onclick="agregarFieldEstudio()">Agregar</button>
391 392
        </div>
      </div>
Joel Florentin committed
393 394
    </div>
  </div>
395 396
    <meta name="_csrf" content="${_csrf.token}"/>
    <meta name="_csrf_header" content="${_csrf.headerName}"/>
397 398 399 400 401 402
    <!--Modal de referencias-->
       <div class="modal fade" id="referenciaForm" tabindex="-1" role="dialog" aria-labelledby="referenciaForm" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel">Referencias Personales</h5>
403
              <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <form name="referencia-form" class="needs-validation" novalidate>
                <div class="form-group">
                    <label for="nombre" class="form-label">Nombre</label>
                    <input type="text" class="form-control" name="nombre" id="nombre" required>
                </div>
                <div class="form-group">
                    <label for="relacion" class="form-label">Relacion</label>
                    <input type="text" class="form-control" name="relacion" id="relacion" required>
                </div>

                <div class="form-group">
                  <label for="telefono" class="form-label">Telefono</label>
                  <input type="number" class="form-control" name="telefono" id="telefono" required>
              </div>
                 
                


            </form>
        </div>
        <div class="modal-footer">
429 430
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" onclick="agregarFieldReferencia()">Agregar</button>
431 432 433 434
        </div>
      </div>
    </div>
      </div>
435

436

437
    <!-- Optional JavaScript; choose one of the two! -->
438 439
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
440 441
    <script>
      var ciudades = ${ciudades};
442
          </script>
443
    <script src="./main.js"></script>
444 445
  </body>
</html>