97 lines
3.2 KiB
HTML
97 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
|
|
<title>Registro</title>
|
|
<style>
|
|
.list {
|
|
text-align: left;
|
|
display: inline-block;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
text-align: center;
|
|
font-size: 24pt;
|
|
}
|
|
|
|
.header {
|
|
font-size: 40pt;
|
|
}
|
|
|
|
.contenedor {
|
|
width: 100%;
|
|
margin: auto;
|
|
}
|
|
|
|
button {
|
|
display: inline-block;
|
|
padding: 2% 8%;
|
|
font-size: 34pt;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
background-color: #060674;
|
|
border: none;
|
|
border-radius: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="contenedor">
|
|
<br /> <br />
|
|
{% if error == 'NO_USERNAME' %}
|
|
<h1>Error</h1>
|
|
<p>No se encontro el usuario.<br /><br /><a href='https://auth.agofer.net/'>Inicia sesión AQUI</a>.</p>
|
|
{% elif error == 'ALREADY_USED' %}
|
|
<h1>Error</h1>
|
|
<p>El enlace ya ha sido utilizado.<br /><br /><a href='https://attendance.agofer.net'>inténteta de nuevo
|
|
AQUI</a>.</p>
|
|
{% elif error == 'DIFFERENT_NODE' %}
|
|
<h1>Error</h1>
|
|
<p>El código no fue generado por este sistema.<br /><br /><a href='https://attendance.agofer.net'>inténteta
|
|
de nuevo AQUI</a>.</p>
|
|
{% elif error == 'DIFFERENT_TYPE' %}
|
|
<h1>Error</h1>
|
|
<p>No se encontró el tipo de entrada.<br /><br /><a href='https://attendance.agofer.net'>inténteta de nuevo
|
|
AQUI</a>.</p>
|
|
{% elif error == 'MISSING_EXIT' %}
|
|
<h1>!Olvidaste la Salida!</h1>
|
|
<p>Para registrar la entrada es necesario terminar la jornada de trabajo anterior.<br /><br /><a
|
|
href='https://attendance.agofer.net'>Escanear Salida AQUI</a>.</p>
|
|
{% elif error == 'MISSING_ENTER' %}
|
|
<h1>!Olvidaste la Entrada!</h1>
|
|
<p>Para registrar la salida es necesario iniciar la jornada laboral.<br /><br /><a
|
|
href='https://attendance.agofer.net'>Escanear entrada AQUI</a>.</p>
|
|
{% else %}
|
|
<span class="fa-stack fa-lg">
|
|
<i class="fa fa-circle fa-stack-2x text-success" style="color:green;"></i>
|
|
<i class="fa fa-check fa-stack-1x fa-inverse"></i>
|
|
</span>
|
|
<span class="header"><strong>Registro Guardado</strong></span>
|
|
<br />
|
|
<p><strong>{{ time }}</strong></p>
|
|
<p>Registrado {{ type }} para el usuario {{ user }} .</p>
|
|
<br />
|
|
<span><strong>Últimos 10 registros para {{ user }}:</strong></span>
|
|
<br />
|
|
<ul class="list">
|
|
{% if type == 'CheckOut' %}
|
|
{% for hit in hits %}
|
|
<li>{{ hit['dateout'] }}</li>
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for hit in hits %}
|
|
<li>{{ hit['datein'] }}</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
<br /> <br />
|
|
</div>
|
|
<button onclick="window.close();">Cerrar</button>
|
|
</body>
|
|
|
|
</html> |