Update templates/index.html
Browse files- templates/index.html +82 -82
templates/index.html
CHANGED
@@ -1,82 +1,82 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
<head>
|
4 |
-
<title>Ingreso de datos</title>
|
5 |
-
<script>
|
6 |
-
let startTime;
|
7 |
-
function empezar() {
|
8 |
-
document.getElementById('inicio').style.display = 'none';
|
9 |
-
document.getElementById('contenido').style.display = 'flex';
|
10 |
-
startTime = Date.now();
|
11 |
-
}
|
12 |
-
|
13 |
-
function prepararEnvio() {
|
14 |
-
const tiempoTranscurrido = Math.floor((Date.now() - startTime) / 1000);
|
15 |
-
document.getElementById('tiempo').value = tiempoTranscurrido;
|
16 |
-
return true;
|
17 |
-
}
|
18 |
-
</script>
|
19 |
-
</head>
|
20 |
-
<body style="font-family: Arial, sans-serif; text-align: center; margin: 30px;">
|
21 |
-
|
22 |
-
<div id="inicio">
|
23 |
-
<!-- Imagen portada inicial -->
|
24 |
-
<img src="/images/DNI.jpg" width="400" alt="DNI Portada" style="margin-bottom: 30px;">
|
25 |
-
|
26 |
-
<h2>Ingresa todos los datos solicitados.<br>* Escribe los datos con may煤sculas y las fechas en el formato indicado. *<br>Da clic en el bot贸n Empezar cuando est茅s listo.</h2>
|
27 |
-
<button onclick="empezar()" style="padding:10px 20px; font-size:16px; cursor:pointer;">Empezar</button>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
<div id="contenido" style="display:none; justify-content: center; align-items: flex-start; gap: 50px;">
|
31 |
-
|
32 |
-
<!-- Imagen a la izquierda -->
|
33 |
-
<div id="imagen" style="flex: 1; text-align: center;">
|
34 |
-
<img src="/images/{{ image_name }}" width="800" alt="Documento" style="margin-bottom: 20px;">
|
35 |
-
</div>
|
36 |
-
|
37 |
-
<!-- Formulario a la derecha -->
|
38 |
-
<div id="formulario" style="flex: 1; text-align: left;">
|
39 |
-
<form method="POST" action="/submit" onsubmit="return prepararEnvio()" style="max-width: 400px; margin: 0 auto;">
|
40 |
-
<label>DNI:</label><br>
|
41 |
-
<input type="text" name="dni" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
42 |
-
|
43 |
-
<label>Primer Apellido:</label><br>
|
44 |
-
<input type="text" name="primer_apellido" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
45 |
-
|
46 |
-
<label>Segundo Apellido:</label><br>
|
47 |
-
<input type="text" name="segundo_apellido" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
48 |
-
|
49 |
-
<label>Pre Nombres:</label><br>
|
50 |
-
<input type="text" name="pre_nombres" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
51 |
-
|
52 |
-
<label>Fecha de nacimiento (DD/MM/AA):</label><br>
|
53 |
-
<input type="text" name="fecha_nacimiento" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
54 |
-
|
55 |
-
<label>Ubigeo
|
56 |
-
<input type="text" name="ubigeo" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
57 |
-
|
58 |
-
<label>Sexo (F/M):</label><br>
|
59 |
-
<input type="text" name="sexo" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
60 |
-
|
61 |
-
<label>Estado Civil (C/S):</label><br>
|
62 |
-
<input type="text" name="estado_civil" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
63 |
-
|
64 |
-
<label>Fecha Inscripci贸n (DD/MM/AA):</label><br>
|
65 |
-
<input type="text" name="fecha_inscripcion" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
66 |
-
|
67 |
-
<label>Fecha Emisi贸n (DD/MM/AA):</label><br>
|
68 |
-
<input type="text" name="fecha_emision" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
69 |
-
|
70 |
-
<label>Fecha Caducidad (DD/MM/AA):</label><br>
|
71 |
-
<input type="text" name="fecha_caducidad" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
72 |
-
|
73 |
-
<input type="hidden" name="image_name" value="{{ image_name }}">
|
74 |
-
<input type="hidden" name="tiempo" id="tiempo" value="0">
|
75 |
-
|
76 |
-
<button type="submit" style="margin-top: 20px; padding: 10px 20px; font-size: 16px; cursor:pointer;">Enviar</button>
|
77 |
-
</form>
|
78 |
-
</div>
|
79 |
-
</div>
|
80 |
-
|
81 |
-
</body>
|
82 |
-
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Ingreso de datos</title>
|
5 |
+
<script>
|
6 |
+
let startTime;
|
7 |
+
function empezar() {
|
8 |
+
document.getElementById('inicio').style.display = 'none';
|
9 |
+
document.getElementById('contenido').style.display = 'flex';
|
10 |
+
startTime = Date.now();
|
11 |
+
}
|
12 |
+
|
13 |
+
function prepararEnvio() {
|
14 |
+
const tiempoTranscurrido = Math.floor((Date.now() - startTime) / 1000);
|
15 |
+
document.getElementById('tiempo').value = tiempoTranscurrido;
|
16 |
+
return true;
|
17 |
+
}
|
18 |
+
</script>
|
19 |
+
</head>
|
20 |
+
<body style="font-family: Arial, sans-serif; text-align: center; margin: 30px;">
|
21 |
+
|
22 |
+
<div id="inicio">
|
23 |
+
<!-- Imagen portada inicial -->
|
24 |
+
<img src="/images/DNI.jpg" width="400" alt="DNI Portada" style="margin-bottom: 30px;">
|
25 |
+
|
26 |
+
<h2>Ingresa todos los datos solicitados.<br>* Escribe los datos con may煤sculas y las fechas en el formato indicado. *<br>Da clic en el bot贸n Empezar cuando est茅s listo.</h2>
|
27 |
+
<button onclick="empezar()" style="padding:10px 20px; font-size:16px; cursor:pointer;">Empezar</button>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div id="contenido" style="display:none; justify-content: center; align-items: flex-start; gap: 50px;">
|
31 |
+
|
32 |
+
<!-- Imagen a la izquierda -->
|
33 |
+
<div id="imagen" style="flex: 1; text-align: center;">
|
34 |
+
<img src="/images/{{ image_name }}" width="800" alt="Documento" style="margin-bottom: 20px;">
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<!-- Formulario a la derecha -->
|
38 |
+
<div id="formulario" style="flex: 1; text-align: left;">
|
39 |
+
<form method="POST" action="/submit" onsubmit="return prepararEnvio()" style="max-width: 400px; margin: 0 auto;">
|
40 |
+
<label>N煤mero de DNI:</label><br>
|
41 |
+
<input type="text" name="dni" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
42 |
+
|
43 |
+
<label>Primer Apellido:</label><br>
|
44 |
+
<input type="text" name="primer_apellido" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
45 |
+
|
46 |
+
<label>Segundo Apellido:</label><br>
|
47 |
+
<input type="text" name="segundo_apellido" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
48 |
+
|
49 |
+
<label>Pre Nombres:</label><br>
|
50 |
+
<input type="text" name="pre_nombres" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
51 |
+
|
52 |
+
<label>Fecha de nacimiento (DD/MM/AA):</label><br>
|
53 |
+
<input type="text" name="fecha_nacimiento" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
54 |
+
|
55 |
+
<label>Ubigeo: (N煤mero al lado de la fecha de nacimiento)</label><br>
|
56 |
+
<input type="text" name="ubigeo" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
57 |
+
|
58 |
+
<label>Sexo (F/M):</label><br>
|
59 |
+
<input type="text" name="sexo" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
60 |
+
|
61 |
+
<label>Estado Civil (C/S):</label><br>
|
62 |
+
<input type="text" name="estado_civil" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
63 |
+
|
64 |
+
<label>Fecha Inscripci贸n (DD/MM/AA):</label><br>
|
65 |
+
<input type="text" name="fecha_inscripcion" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
66 |
+
|
67 |
+
<label>Fecha Emisi贸n (DD/MM/AA):</label><br>
|
68 |
+
<input type="text" name="fecha_emision" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
69 |
+
|
70 |
+
<label>Fecha Caducidad (DD/MM/AA):</label><br>
|
71 |
+
<input type="text" name="fecha_caducidad" placeholder="DD/MM/AA" required style="width: 100%; padding: 8px; margin-top:5px;"><br>
|
72 |
+
|
73 |
+
<input type="hidden" name="image_name" value="{{ image_name }}">
|
74 |
+
<input type="hidden" name="tiempo" id="tiempo" value="0">
|
75 |
+
|
76 |
+
<button type="submit" style="margin-top: 20px; padding: 10px 20px; font-size: 16px; cursor:pointer;">Enviar</button>
|
77 |
+
</form>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
|
81 |
+
</body>
|
82 |
+
</html>
|