postulante-form.jsp 26.8 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 13
<!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">
    <title>Hello, world!</title>
14

Joel Florentin committed
15
    
Nelson Ruiz committed
16 17
    <style type="text/css" media="screen">
          body {
Nelson Ruiz committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
                  background-color: blue
              }

              .card {
                  border: none
              }

              .image {
                  position: relative
              }

              .image span {
                  background-color: blue;
                  color: #fff;
                  padding: 6px;
                  height: 30px;
                  width: 30px;
                  border-radius: 50%;
                  font-size: 13px;
                  position: absolute;
                  display: flex;
                  justify-content: center;
                  align-items: center;
                  top: -0px;
                  right: 0px
              }

              .user-details h4 {
                  color: blue
              }

              .ratings {
                  font-size: 30px;
                  font-weight: 600;
                  display: flex;
                  justify-content: left;
                  align-items: center;
                  color: #f9b43a
              }

              .user-details span {
                  text-align: left
              }

              .inputs label {
                  display: flex;
                  margin-left: 3px;
                  font-weight: 500;
                  font-size: 13px;
                  margin-bottom: 4px
              }

              .inputs input {
                  font-size: 14px;
                  height: 40px;
                  border: 2px solid #ced4da
              }

              .inputs input:focus {
                  box-shadow: none;
                  border: 2px solid blue
              }

              .about-inputs label {
                  display: flex;
                  margin-left: 3px;
                  font-weight: 500;
                  font-size: 13px;
                  margin-bottom: 4px
              }

              .about-inputs textarea {
                  font-size: 14px;
                  height: 100px;
                  border: 2px solid #ced4da;
                  resize: none
              }

              .about-inputs textarea:focus {
                  box-shadow: none
              }

              .btn {
                  font-weight: 600
              }

              .btn:focus {
                  box-shadow: none
              }

              select {
                  display: block;
                  width: 100%;
                  border: 1px solid #ddd;
                  border-radius: 10px;
                  height: 40px;
                  padding: 5px 10px
              }

              select:focus {
                  outline: none
              }

              .add-experience:hover {
Nelson Ruiz committed
122
                
Nelson Ruiz committed
123 124 125
                  background: blue;
                  color: #fff;
                  cursor: pointer;
Nelson Ruiz committed
126 127 128 129
                  border: solid 1px blue;
                  display:inline-block;
                  
                  
Nelson Ruiz committed
130
              }
Nelson Ruiz committed
131 132 133 134 135 136 137 138 139
                #outer
                {
                    width:100%;
                    text-align: center;
                }
                .inner
                {
                    display: inline-block;
                }
Nelson Ruiz committed
140 141 142
    </style>


143 144
  </head>

Nelson Ruiz committed
145
  <body class="container">
146 147
    <form name="postulante" method="post" class="needs-validation" novalidate>
                      <div class="container mt-3">
Nelson Ruiz committed
148 149
                          <div class="card p-3 text-center">
                              <div class="d-flex flex-row justify-content-center mb-3">
Nelson Ruiz committed
150
                                
Nelson Ruiz committed
151
                              </div>
Nelson Ruiz committed
152
                              <h4>Curriculum</h4>
Nelson Ruiz committed
153
                              <div class="row">
154 155 156 157 158 159 160 161
                                  <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>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
                                    
                                  </div>
Nelson Ruiz committed
162 163

                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
164
                                    <label for="nombre" class="form-label">Nombre</label>
165 166 167 168
                                    <input type="text" name="nombre" class="form-control  " id="nombre" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
169 170
                                  </div>
                                  
Nelson Ruiz committed
171
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
172
                                    <label for="apellido" class="form-label">Apellido</label>
173 174 175 176
                                    <input type="text" name="apellido" class="form-control  " id="apellido" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
177 178 179
                                  </div>
          

Nelson Ruiz committed
180
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
181
                                    <label for="correo" class="form-label">Email address</label>
182 183 184 185
                                    <input type="email" name="correo" class="form-control  " id="correo" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
186
                                  </div>
187 188 189 190 191 192 193 194 195

                                  <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>
Nelson Ruiz committed
196
                                  
197 198 199 200 201 202 203
                                  <div class="inputs  mb-3 col-md-6">
                                    <label for="tipoDocumento" class="form-label">Tipo de documento</label>
                                    <input type="text" name="tipoDocumento" class="form-control  " id="tipoDocumento" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
                                  </div>
Nelson Ruiz committed
204
                              
Nelson Ruiz committed
205
                                  <div class="inputs  mb-3 col-md-6">
Nelson Ruiz committed
206
                                    <label for="ci" class="form-label">Cedula de identidad</label>
207 208 209 210
                                    <input type="number" name="ci" class="form-control  " id="ci" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
211 212
                                  </div>
                                  
213 214 215 216 217 218 219 220
                                  <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
221
                                  </div>
222 223 224 225 226 227 228 229

                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="ciudad" class="form-label"> Ciudad</label> 
                                    <select name="ciudadId" id="ciudad" class="bg-light">
                                      
                                    
                                     </select> 
                                </div>
Nelson Ruiz committed
230
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
231
                                    <label for="telefono" class="form-label">Telefono</label>
232 233 234 235
                                    <input type="number" name="telefono" class="form-control  " id="telefono" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
236 237
                                  </div>

238 239 240 241 242 243 244
                                  <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>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
                                  </div>
Nelson Ruiz committed
245 246
                              
                        
247 248 249 250 251 252 253 254 255
                                  <div class="inputs col-md-6"> <label for="nivelIngles" class="form-label"> Nivel de ingles</label> 
                                    <select name="nivelIngles" id="nivelIngles" class="bg-light">
                                    <option value="1" selected>1</option>
                                    <option value="2" >2</option>
                                    <option value="3" >3</option>
                                    <option value="4" >4</option>
                                    <option value="5" >5</option>
                                    </select> 
                                  </div>
Nelson Ruiz committed
256
                                
257 258 259
                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="disponibilidad" class="form-label"> Disponibilidad</label> 
                                    <select name="disponibilidad" id="disponibilidad" class="bg-light">
260 261 262 263
                                      <c:forEach items="${disponibilidades}" var="disponibilidad">
                                        <option value="${disponibilidad.getCode()}">${disponibilidad.getDescripcion()}</option>
                                      </c:forEach>
                                    
264
                                  </select> </div>
Nelson Ruiz committed
265
                                
266
                                  <div class="inputs mb-3 col-md-6"> 
267 268 269 270
                                    <label for="estadoCivil" class="form-label"> Estado Civil</label> 
                                    <select name="estadoCivil" id="estadoCivil" class="bg-light">
                                      <c:forEach items="${estadosCiviles}" var="estadoCivil">
                                        <option value="${estadoCivil.getDescripcion()}">${estadoCivil.getDescripcion()}</option>
271 272
                                      </c:forEach>
                                    
273 274
                        
                                  </select> </div>
Nelson Ruiz committed
275
                              
Nelson Ruiz committed
276 277 278 279 280
                                  <div class=" p-3 py-5">
                                    <div class="  d-flex justify-content-between align-items-center experience">
                                      <span class="border px-3 p-1 add-experience"  data-toggle="modal" data-target="#experienciaForm">
                                        <i class="fa fa-plus"></i>&nbsp;Agregar Experiencia</span>
                                      </div><br>   
281
                                  </div>
Nelson Ruiz committed
282

283 284 285 286
                                  <div class="mt-3 gap-2 d-flex justify-content-between" id="experiencias">
                                  </div>
                                    
                               
Nelson Ruiz committed
287 288
                                  <div class=" p-3 py-5">
                                   <div class="  d-flex justify-content-between align-items-center experience"><span class="border px-3 p-1 add-experience"  data-toggle="modal" data-target="#estudioForm"><i class="fa fa-plus"></i>&nbsp;Agregar Estudio</span></div><br>   
289 290 291 292 293 294 295
                                  </div>
                                 
                                  <div class="mt-3 gap-2 d-flex justify-content-between" id="estudios">
                                  </div>
                            
                               
                               
Nelson Ruiz committed
296 297
                                <div class=" p-3 py-5">
                                  <div class="  d-flex justify-content-between align-items-center experience"><span class="border px-3 p-1 add-experience"  data-toggle="modal" data-target="#tecnologiaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Tecnologia</span></div><br>   
298 299
                                </div>
                                
300
                                
301
                                <div class="mt-3 gap-2 d-flex justify-content-between" id="tecnologias"> 
Nelson Ruiz committed
302
                                </div>
303

Nelson Ruiz committed
304 305
                                <div class=" p-3 py-5">
                                  <div class="  d-flex justify-content-between align-items-center experience"><span class="border px-3 p-1 add-experience"  data-toggle="modal" data-target="#referenciaForm"><i class="fa fa-plus"></i>&nbsp;Referencias Personales</span></div><br>   
306 307 308
                                </div>
                                <div class="mt-3 gap-2 d-flex justify-content-between" id="referencia"> 
                                </div>
309 310
                      
                        
Nelson Ruiz committed
311 312 313 314
                                
                                <div class="mt-3 gap-2 d-flex justify-content-end">
                                  <button class="px-3 btn btn-sm btn-outline-primary">Cancelar</button> 
                                  <button class="px-3 btn btn-sm btn-primary" type="submit">Guardar</button>
Nelson Ruiz committed
315
                                </div>
Nelson Ruiz committed
316
                              </div>
317
                          </div>
Nelson Ruiz committed
318
                      </div>
319
    </form>
Nelson Ruiz committed
320

321

322
      <!--Modal de Experiencia-->
323 324 325 326 327 328 329 330 331 332
      <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>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
333
                <form name="experiencia-form" class="needs-validation" novalidate>
334

Nelson Ruiz committed
335 336
                        <div class="inputs">
                            <label for="institucion" class="inputs form-label">Institucion</label>
337
                            <input type="text" class="inputs form-control  " name="institucion" id="institucion" required>
Nelson Ruiz committed
338 339 340
                        </div>
                        <div class="inputs">
                            <label for="fechaDesde" class="form-label">Fecha Desde</label>
341
                            <input type="date" class="form-control  " name="fechaDesde" id="fechaDesde" required>
Nelson Ruiz committed
342 343 344 345 346 347 348 349 350
                        </div>
                         
                        <div class="inputs">
                            <label for="fechaHasta" class="form-label">Fecha Hasta</label>
                            <input type="date" class="form-control  " name="fechaHasta" id="fechaHasta" >
                        </div>
                        
                        <div class="inputs">
                            <label for="cargo" class="form-label">Cargo</label>
351
                            <input type="text" class="form-control  " name="cargo" id="cargo" required>
Nelson Ruiz committed
352 353 354
                        </div>

                        <div class="inputs">
355
                          <label for="descripcion" class="form-label">Descripcion</label>
356
                          <textarea  class="form-control  " name="descripcion" id="descripcion"> </textarea>
357 358 359 360 361 362 363 364 365

                        </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
366
                        </div>
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
                        
                        <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
382
                          
383

384 385 386 387
                </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
388
              <button id="agregar-exp" type="button" class="btn btn-primary" onclick="agregarFieldExpierncia()" data-dismiss="modal">Agregar</button>
389 390 391 392
            </div>
          </div>
        </div>
      </div>
willgonzz committed
393 394 395 396 397 398 399 400 401 402 403
    <!--------------------------------------------------------------------------------------->
      <div class="modal fade" id="tecnologiaForm" tabindex="-2" role="dialog" aria-labelledby="tecnologiaForm" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel" >tecnologia</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
404
              <form name="tecnologia-form" class="needs-validation" novalidate>
Joel Florentin committed
405 406
                <label for="tecnologia-nombre" class="form-label">Tecnologia</label>
                <div class="input-group mb-3">
407
                  <select class="form-select" name="tecnologia-id" aria-label="Default select example" required>
Joel Florentin committed
408 409 410 411 412 413 414 415 416 417 418
                    <option value="-1" selected>Open this select menu</option>
                    <c:forEach items="${tecnologias}" var="tecnologia">
                      <option value="${tecnologia.id}">${tecnologia.nombre}</option>
                    </c:forEach>
                  </select>
                  <button class="btn btn-outline-secondary" type="button" id="btn-new-tech">Agregar nuevo</button>
                </div>
                  
                  
                  <input type="text" class="form-control d-none" name="tecnologia-nombre" id="tecnologia-nombre" >
                  <label for="nivel" class="form-label">Nivel</label>
419
                  <input type="number" class="form-control" name="nivel" id="nivel" required>
Joel Florentin committed
420 421 422 423 424
              </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            <button type="button" class="btn btn-primary" onclick="agregarFieldTecnologia()" data-dismiss="modal">Agregar</button>
willgonzz committed
425 426
          </div>
        </div>
Joel Florentin committed
427 428 429
      </div>
    </div>      
  <!--------------------------------------------------------------------------------------->
430

431 432 433 434 435 436 437 438 439 440 441 442

      <!--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>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
443
              <form name="estudio-form" class="needs-validation" novalidate>
444 445 446 447


                <div class="form-group">
                    <label for="tipoDeEstudio">Tipo de Estudio</label>
448
                    <select name="tipoDeEstudio" id="tipoDeEstudio" required>
449 450 451 452 453
                        <option value="-1" selected disabled hidden>Seleccionar</option>
                        <c:forEach items="${tiposDeEstudio}" var="tipo">
                            <option value="${tipo}">${tipo.name}</option>
                        </c:forEach>
                    </select>
Joel Florentin committed
454
                </div>
455 456 457 458
<%--                <label for="tipoDeEstudio" class="form-label">Tipo De Estudio</label>--%>
<%--                <input type="text" class="form-control  " name="tipoDeEstudio" id="tipoDeEstudio">--%>
                <div class="form-group">
                    <label for="institucion" class="form-label">Institucion</label>
459
                    <input type="text" class="form-control" name="institucion" id="institucion" required>
Joel Florentin committed
460
                </div>
461 462
                <div class="form-group">
                    <label for="temaDeEstudio" class="form-label">Carrera/Bachiller/Tema de Curso</label>
463
                    <input type="text" class="form-control" name="temaDeEstudio" id="temaDeEstudio" required>
464 465 466
                </div>
                  <div class="form-group">
                      <label for="estado">Estado</label>
467
                      <select name="estado" id="estado" required>
468 469 470 471 472
                          <option value="-1" selected disabled hidden>Seleccionar</option>
                          <c:forEach items="${estadosEstudio}" var="estado">
                              <option value="${estado}">${estado.name}</option>
                          </c:forEach>
                      </select>
Joel Florentin committed
473
                  </div>
474 475
                <div class="form-group">
                    <label for="fechaDesde" class="form-label">Fecha Desde</label>
476
                    <input type="date" class="form-control  " name="fechaDesde" id="fechaDesde" required>
477 478 479 480
                </div>
                <div class="form-group">
                    <label for="fechaHasta" class="form-label">Fecha Hasta</label>
                    <input type="date" class="form-control  " name="fechaHasta" id="fechaHasta" >
Joel Florentin committed
481
                </div>
482 483


Joel Florentin committed
484 485 486 487 488
            </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" onclick="agregarFieldEstudio()" data-dismiss="modal">Agregar</button>
489 490
        </div>
      </div>
Joel Florentin committed
491 492
    </div>
  </div>
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
    <!--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>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <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">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-primary" onclick="agregarFieldReferencia()" data-dismiss="modal">Agregar</button>
        </div>
      </div>
    </div>
      </div>

532

533

534
    <!-- Optional JavaScript; choose one of the two! -->
535

536
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
willgonzz committed
537 538
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
539 540 541 542
    <script>
      var ciudades = ${ciudades};
        
    </script>
543
    <script src="./main.js"></script>
544 545
  </body>
</html>