postulante-form.jsp 28.1 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
    <form name="postulante" method="post" class="needs-validation" novalidate>
                      <div class="container mt-3">
Nelson Ruiz committed
20 21
                          <div class="card p-3 text-center">
                              <div class="d-flex flex-row justify-content-center mb-3">
Nelson Ruiz committed
22
                                
Nelson Ruiz committed
23
                              </div>
Nelson Ruiz committed
24
                              <h4>Curriculum</h4>
Nelson Ruiz committed
25
                              <div class="row">
26 27 28 29 30 31 32 33
                                  <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
34 35

                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
36
                                    <label for="nombre" class="form-label">Nombre</label>
37 38 39 40
                                    <input type="text" name="nombre" class="form-control  " id="nombre" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
41 42
                                  </div>
                                  
Nelson Ruiz committed
43
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
44
                                    <label for="apellido" class="form-label">Apellido</label>
45 46 47 48
                                    <input type="text" name="apellido" class="form-control  " id="apellido" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
49 50 51
                                  </div>
          

Nelson Ruiz committed
52
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
53
                                    <label for="correo" class="form-label">Email address</label>
54 55 56 57
                                    <input type="email" name="correo" class="form-control  " id="correo" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
58
                                  </div>
59 60 61 62 63 64 65 66 67

                                  <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>
68 69 70 71 72 73 74 75

                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="tipoDocumento" class="form-label"> Tipo de documento</label> 
                                    <select name="tipoDocumento" id="tipoDocumento" class="bg-light" required onchange='carg(this.value);'>
                                        <option value='CI' selected>C.I</option>
                                        <option value='PAS'>Pasport</option>
                                        <option value='Otro'>Otro</option>
                                    </select> 
76
                                  </div>
Nelson Ruiz committed
77
                              
Nelson Ruiz committed
78
                                  <div class="inputs  mb-3 col-md-6">
79 80
                                    <label for="nroDocument" class="form-label">Numero de Documento</label>
                                    <input type="number" name="nroDocument" class="form-control  " id="nroDocument" required>
81 82 83
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
84 85
                                  </div>
                                  
86 87 88 89 90 91 92 93
                                  <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
94
                                  </div>
95 96 97 98 99 100

                                  <div class="inputs mb-3 col-md-6"> 
                                    <label for="ciudad" class="form-label"> Ciudad</label> 
                                    <select name="ciudadId" id="ciudad" class="bg-light">
                                      
                                    
101 102
                                    </select> 
                                  </div>
Nelson Ruiz committed
103
                                  <div class="inputs mb-3 col-md-6">
Nelson Ruiz committed
104
                                    <label for="telefono" class="form-label">Telefono</label>
105 106 107 108
                                    <input type="number" name="telefono" class="form-control  " id="telefono" required>
                                    <div class="valid-feedback">
                                      Luce Bien!
                                    </div>
Nelson Ruiz committed
109 110
                                  </div>

111 112 113 114 115 116 117
                                  <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
118 119
                              
                        
120 121
                                  <div class="inputs mb-3 col-md-4"> <label for="nivelIngles" class="form-label"> Nivel de ingles</label> 
                                    <select name="nivelIngles" id="nivelIngles" class="content-select">
122 123 124 125 126
                                    <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>
127 128
                                    </select> 
                                  </div>
Nelson Ruiz committed
129
                                
130
                                  <div class="inputs mb-3 col-md-4"> 
131
                                    <label for="disponibilidad" class="form-label"> Disponibilidad</label> 
132
                                    <select name="disponibilidad" id="disponibilidad" class="content-select">
133 134 135 136
                                      <c:forEach items="${disponibilidades}" var="disponibilidad">
                                        <option value="${disponibilidad.getCode()}">${disponibilidad.getDescripcion()}</option>
                                      </c:forEach>
                                    
137
                                  </select> </div>
Nelson Ruiz committed
138
                                
139
                                  <div class="inputs mb-3 col-md-4"> 
140
                                    <label for="estadoCivil" class="form-label"> Estado Civil</label> 
141
                                    <select name="estadoCivil" id="estadoCivil" class="content-select">
142 143
                                      <c:forEach items="${estadosCiviles}" var="estadoCivil">
                                        <option value="${estadoCivil.getDescripcion()}">${estadoCivil.getDescripcion()}</option>
144
                                      </c:forEach>
145
                                    </select> 
146
                                  </div>
147 148 149 150
                                  <div class="inputs mb-3 col-md-4">
                                    <label for="formFile" class="form-label">Cargar cv</label>
                                    <input class="form-control" type="file" id="cvFile">
                                  </div>
151
                                  <!-- Button Agregar Cargo al que postulas -->
152
                                  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#cargoForm"><span class="add-experience"><i  class="fa fa-plus"></i>&nbsp;Agregar Cargo al que postulas</span></button><br>
153 154 155
                                  <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>   
156
                                  <div class="mt-3 gap-2 row row-cols-4" style="display: flex;" id="cargos"></div>
Nelson Ruiz committed
157

158 159 160
                                  <!-- Button Agregar Experiencia -->
                                  <button type="button" class="btn btn-primary"><span class="add-experience"  data-toggle="modal" data-target="#experienciaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Experiencia</span></button><br>   
                                  <div class="mt-3 gap-2 row row-cols-4" id="experiencias"></div>
161
                                    
162 163 164
                                  <!-- Button Agregar Estudio -->
                                  <button type="button" class="btn btn-primary"><span class="add-experience"  data-toggle="modal" data-target="#estudioForm"><i class="fa fa-plus"></i>&nbsp;Agregar Estudio</span></button><br>   
                                  <div class="mt-3 gap-2 row row-cols-4" id="estudios"></div>
165 166
                            
                               
167
                                  <!-- Button Agregar Tecnologia -->
168 169 170 171 172 173 174
                                  <button type="button" class="btn btn-primary"><span class="add-experience"  data-toggle="modal" data-target="#tecnologiaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Tecnologia</span></button><br>
                                  
                                  <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>
175

176 177 178
                                  <!-- Button Agregar Refencia personal -->
                                  <button type="button" class="btn btn-primary"><span class="add-experience"  data-toggle="modal" data-target="#referenciaForm"><i class="fa fa-plus"></i>&nbsp;Agregar Referencia Personal</span></button><br>   
                                  <div class="mt-3 gap-2 row row-cols-4" id="referencia"></div>
179 180
                      
                        
Nelson Ruiz committed
181 182
                                
                                <div class="mt-3 gap-2 d-flex justify-content-end">
183
                                  <a class="px-3 btn btn-sm btn-outline-primary" href="/postulante">Cancelar</a>
Nelson Ruiz committed
184
                                  <button class="px-3 btn btn-sm btn-primary" type="submit">Guardar</button>
Nelson Ruiz committed
185
                                </div>
Nelson Ruiz committed
186
                              </div>
187
                          </div>
Nelson Ruiz committed
188
                      </div>
189
    </form>
willgonzz committed
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
    <!---------------------------------------Modal de Cargos disponibles---------------------------------------------------------------->
    <div class="modal fade" id="cargoForm" tabindex="-2" role="dialog" aria-labelledby="cargoForm" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel" >CargosDisponibles</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="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>
                  <option value="-1" selected>Open this select menu</option>
                  <c:forEach items="${CargosDisponibles}" var="convocatoria">
                                <option value="${convocatoria.getId()}">${convocatoria.getCargo().getNombre()}</option>
                  </c:forEach>>
                </select>
              </div>
            </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="agregarFieldCargo()" data-dismiss="modal">Agregar</button>
        </div>
      </div>
    </div>
  </div>  
  <!-------------------------------------------------------------------------------------------------------------------------->
221

222
      <!--Modal de Experiencia-->
223 224 225 226 227 228 229 230 231 232
      <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">
233
                <form name="experiencia-form" class="needs-validation" novalidate>
234

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

                        <div class="inputs">
259
                          <label for="descripcion" class="form-label">Descripcion</label>
260
                          <textarea  class="form-control  " name="descripcion" id="descripcion"> </textarea>
261 262 263 264 265 266 267 268 269

                        </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
270
                        </div>
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
                        
                        <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
286
                          
287

288 289 290 291
                </form>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
292
              <button id="agregar-exp" type="button" class="btn btn-primary" onclick="agregarFieldExpierncia()" data-dismiss="modal">Agregar</button>
293 294 295 296
            </div>
          </div>
        </div>
      </div>
willgonzz committed
297 298 299 300 301 302 303 304 305 306 307
    <!--------------------------------------------------------------------------------------->
      <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">
308
              <form name="tecnologia-form" class="needs-validation" novalidate>
Joel Florentin committed
309 310
                <label for="tecnologia-nombre" class="form-label">Tecnologia</label>
                <div class="input-group mb-3">
311
                  <select class="form-select" name="tecnologia-id" aria-label="Default select example" required>
Joel Florentin committed
312 313 314 315 316 317 318 319 320 321
                    <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>
                </div>
                  
                  
                  <input type="text" class="form-control d-none" name="tecnologia-nombre" id="tecnologia-nombre" >
                  <label for="nivel" class="form-label">Nivel</label>
322
                  <input type="range" class="form-range" name="nivel" id="nivel" min="1" max="5" required>
Joel Florentin committed
323 324 325 326 327
              </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
328 329
          </div>
        </div>
Joel Florentin committed
330 331 332
      </div>
    </div>      
  <!--------------------------------------------------------------------------------------->
333

334 335 336 337 338 339 340 341 342 343 344 345

      <!--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">
346
              <form name="estudio-form" class="needs-validation" novalidate>
347 348 349 350


                <div class="form-group">
                    <label for="tipoDeEstudio">Tipo de Estudio</label>
351
                    <select name="tipoDeEstudio" id="tipoDeEstudio" required>
352 353 354 355 356
                        <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
357
                </div>
358 359 360
<%--                <label for="tipoDeEstudio" class="form-label">Tipo De Estudio</label>--%>
<%--                <input type="text" class="form-control  " name="tipoDeEstudio" id="tipoDeEstudio">--%>
                <div class="form-group">
361 362
                    <label for="institucionEstudio" class="form-label">Institucion</label>
                    <input type="text" class="form-control" name="institucion" id="institucionEstudio" required>
Joel Florentin committed
363
                </div>
364 365
                <div class="form-group">
                    <label for="temaDeEstudio" class="form-label">Carrera/Bachiller/Tema de Curso</label>
366
                    <input type="text" class="form-control" name="temaDeEstudio" id="temaDeEstudio" required>
367 368 369
                </div>
                  <div class="form-group">
                      <label for="estado">Estado</label>
370
                      <select name="estado" id="estado" required>
371 372 373 374 375
                          <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
376
                  </div>
377
                <div class="form-group">
378 379
                    <label for="fechaDesdeEstudio" class="form-label">Fecha Desde</label>
                    <input type="date" class="form-control  " name="fechaDesde" id="fechaDesdeEstudio" required>
380 381
                </div>
                <div class="form-group">
382 383
                    <label for="fechaHastaEstudio" class="form-label">Fecha Hasta</label>
                    <input type="date" class="form-control  " name="fechaHasta" id="fechaHastaEstudio" >
Joel Florentin committed
384
                </div>
385 386


Joel Florentin committed
387 388 389 390 391
            </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>
392 393
        </div>
      </div>
Joel Florentin committed
394 395
    </div>
  </div>
396 397
    <meta name="_csrf" content="${_csrf.token}"/>
    <meta name="_csrf_header" content="${_csrf.headerName}"/>
398 399 400 401 402 403 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 429 430 431 432 433 434 435
    <!--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>
436

437

438
    <!-- Optional JavaScript; choose one of the two! -->
439

440
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
willgonzz committed
441 442
    <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>
443 444
    <script>
      var ciudades = ${ciudades};
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
      (function(){
          var today = new Date();
          var dd = today.getDate();
          var mm = today.getMonth() + 1; //January is 0!
          var yyyy = today.getFullYear();

          if (dd < 10) {
              dd = '0' + dd;
          }

          if (mm < 10) {
              mm = '0' + mm;
          }

          today = yyyy + '-' + mm + '-' + dd;


          let fechaDesdeEstudio = document.querySelector("#fechaDesdeEstudio");
          let fechaDesdeExperiencia = document.querySelector("#fechaDesdeExperiencia");
          let fechaHastaEstudio = document.querySelector("#fechaHastaEstudio");
          let fechaHastaExperiencia = document.querySelector("#fechaHastaExperiencia");
466 467 468
          let fechaNacimiento = document.querySelector("#fechaNacimiento");
          let fechas = [fechaDesdeEstudio,fechaDesdeExperiencia,fechaHastaEstudio,fechaHastaExperiencia,fechaNacimiento]
          fechas.forEach(fch => fch.addEventListener('keydown',()=>false))//no dejar cargar manualmente fechas
469 470 471

          fechaDesdeEstudio.setAttribute("max", today);
          fechaDesdeExperiencia.setAttribute("max", today);
472
          fechaNacimiento.setAttribute("max", today);
473 474 475 476 477 478 479 480

          fechaDesdeExperiencia.addEventListener("change", ()=>{
              fechaHastaExperiencia.setAttribute("min", fechaDesdeExperiencia.value)
          })
          fechaDesdeEstudio.addEventListener("change", ()=>{
              fechaHastaEstudio.setAttribute("min", fechaDesdeEstudio.value)
          })
      })()
481
    </script>
482
    <script src="./main.js"></script>
483 484
  </body>
</html>