Fedgo29 commited on
Commit ·
d40e08c
1
Parent(s): f7690ab
Adding changes by FedgoX
Browse filesFiles changed (6)
12345638 unmodified lines45464748495051525354535556575859606120 unmodified lines828384858687888927 unmodified lines117118119115116120121122123124125126127128129130131132121122123124125133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175163164165177178179166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212182183184185186187188189190191192193194195213214215216217218219220221222223224225226227228229198230<!doctype html><html lang="es">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">38 unmodified lines background: #dc2626; transform: translateY(-2px); }
.cert-form { background: #0f172a; padding: 2rem; border-radius: 14px; max-width: 650px; margin: 0 auto; box-shadow: 0 0 25px rgba(0,0,0,0.45); box-shadow: 0 0 25px rgba(0, 0, 0, 0.45); animation: fadeIn 0.5s ease; }
form { background: #0f172a; }20 unmodified lines font-size: 14px; outline: none; transition: border 0.2s; box-sizing: border-box; /* ✔️ Esto asegura que todos los inputs tengan el mismo tamaño */ }
input:focus {27 unmodified lines }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); } }
/* Responsive tweaks */ @media (max-width: 768px) { body { padding: 18px; } .cert-form { width: 100% !important; max-width: 100%; padding: 1rem; box-sizing: border-box; } .topbar { flex-direction: column; align-items: flex-start; gap: 12px; } h2 { font-size: 20px; } button[type="submit"] { font-size: 15px; } body { padding: 18px; }
.cert-form { width: 100% !important; max-width: 100%; padding: 1rem; box-sizing: border-box; }
.topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
h2 { font-size: 20px; }
button[type="submit"] { font-size: 15px; } } </style></head>
<body>
<div class="topbar"> <h2>Issue Diploma (Admin)</h2>
<form method="post" action="/auth/logout"> <button class="logout-btn" type="submit">Logout</button> </form></div>
<form class="cert-form" method="post" enctype="multipart/form-data" action="/diploma/create">
<div class="field"> <label>Nombre del Estudiante:</label> <input name="student_name" required> </div>
<div class="field"> <label>Cédula:</label> <input name="student_id" required> </div>
<div class="field"> <label>Centro de Enseñanza Superior:</label> <input name="center_name" required> </div>
<div class="field"> <label>Nombre del Título Obtenido:</label> <input name="title" required> </div>
<div class="field"> <label>Año de la Graduación:</label> <input type="number" name="graduation_year" required> </div>
<div class="field"> <label>Número de Registro:</label> <input name="registration_number" required> </div>
<div class="field"> <label>Director del Centro Educativo:</label> <input name="director" required> </div> <div class="topbar"> <h2>Issue Diploma (Admin)</h2>
<div class="field"> <label>Directora Provincial:</label> <input name="provincial_director" required> <form method="post" action="/auth/logout"> <button class="logout-btn" type="submit">Logout</button> </form> </div>
<form class="cert-form" method="post" enctype="multipart/form-data" action="/diploma/create">
<div class="field"> <label>Nombre del Estudiante:</label> <input name="student_name" required> </div>
<div class="field"> <label>Cédula:</label> <input name="student_id" required> </div>
<div class="field"> <label>Centro de Enseñanza Superior:</label> <input name="center_name" required> </div>
<div class="field"> <label>Nombre del Título Obtenido:</label> <input name="title" required> </div>
<div class="field"> <label>Año de la Graduación:</label> <input type="number" name="graduation_year" required> </div>
<div class="field"> <label>Número de Registro:</label> <input name="registration_number" required> </div>
<div class="field"> <label>Director del Centro Educativo:</label> <input name="director" required> </div>
<div class="field"> <label>Directora Provincial:</label> <input name="provincial_director" required> </div>
<div class="field"> <label>Profesor (opcional):</label> <input name="professor"> </div>
<div class="field"> <label>Adjuntar PDF del diploma (opcional):</label> <input type="file" name="pdf" accept="application/pdf"> </div>
<button type="submit">Emitir & Generar QR</button>
<p>El navegador debe estar autenticado como administrador.</p></form> <div class="field"> <label>Profesor (opcional):</label> <input name="professor"> </div>
<div class="field"> <label>Adjuntar PDF del diploma (opcional):</label> <input type="file" name="pdf" accept="application/pdf"> </div>
<button type="submit">Emitir & Generar QR</button>
<p>El navegador debe estar autenticado como administrador.</p> </form>
</body>
</html></html>12345615 unmodified lines22232424252627287 unmodified lines36373838394041421 unmodified line444546474849505136 unmodified lines888990888991929394959697989910010110210394959697104105106107108109110111112113114115116117118119120121122123124125126127128129130131103104132133134106107135136137109138139111112140141142143144115145<!doctype html><html lang="es">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">15 unmodified lines padding: 2rem; border-radius: 12px; width: 320px; box-shadow: 0 0 25px rgba(0,0,0,0.4); box-shadow: 0 0 25px rgba(0, 0, 0, 0.4); animation: fadeIn 0.6s ease; }
7 unmodified lines input { width: 100%; padding: 12px; margin: 10px 0; margin: 10px 0 10px 0; border-radius: 8px; border: 1px solid #374151; background: #1f2937;1 unmodified line font-size: 14px; outline: none; transition: border 0.2s; box-sizing: border-box; /* 🔥 Garantiza que todos los inputs tengan el mismo tamaño */ }
input:focus {36 unmodified lines }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); } }
/* Responsive tweaks */ @media (max-width: 640px) { body { padding: 18px; align-items: flex-start; height: auto; } form { width: 100% !important; max-width: 420px; margin: 40px auto; padding: 1.25rem; box-sizing: border-box; } h2 { font-size: 20px; } input, button { font-size: 15px; } body { padding: 18px; align-items: flex-start; height: auto; }
form { width: 100% !important; max-width: 420px; margin: 40px auto; padding: 1.25rem; box-sizing: border-box; }
h2 { font-size: 20px; }
input, button { font-size: 15px; } } </style></head>
<body>
<form method="post" action="/auth/login"> <h2>Login</h2> <form method="post" action="/auth/login"> <h2>Login</h2>
<input name="email" placeholder="Email" required> <input name="password" placeholder="Password" type="password" required> <input name="email" placeholder="Email" required> <input name="password" placeholder="Password" type="password" required>
<button type="submit">Ingresar</button> <button type="submit">Ingresar</button>
<p>¿No tienes cuenta? <a href="/auth/register">Regístrate</a></p></form> <p>¿No tienes cuenta? <a href="/auth/register">Regístrate</a></p> </form>
</body>
</html></html>12345615 unmodified lines222324242526272815 unmodified lines44454647484950513 unmodified lines55565755585960616225 unmodified lines888990878891929394959697989910010110210393949596104105106107108109110111112113114115116117118119120121122123124125126127128129130131102103132133134105106107108135136137138139110140141112113142143144145146116147<!doctype html><html lang="es">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">15 unmodified lines padding: 2rem; border-radius: 12px; width: 320px; box-shadow: 0 0 25px rgba(0,0,0,0.4); box-shadow: 0 0 25px rgba(0, 0, 0, 0.4); animation: fadeIn 0.6s ease; }
15 unmodified lines font-size: 14px; outline: none; transition: border 0.2s; box-sizing: border-box; /* 🔥 asegura que todos tengan exactamente el mismo tamaño */ }
input:focus {3 unmodified lines button { width: 100%; padding: 12px; background: #10b981; /* verde agradable para diferenciar */ background: #10b981; /* verde agradable para diferenciar */ color: white; border: none; border-radius: 8px;25 unmodified lines }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); } }
/* Responsive tweaks */ @media (max-width: 640px) { body { padding: 18px; align-items: flex-start; height: auto; } form { width: 100% !important; max-width: 420px; margin: 40px auto; padding: 1.25rem; box-sizing: border-box; } h2 { font-size: 20px; } input, button { font-size: 15px; } body { padding: 18px; align-items: flex-start; height: auto; }
form { width: 100% !important; max-width: 420px; margin: 40px auto; padding: 1.25rem; box-sizing: border-box; }
h2 { font-size: 20px; }
input, button { font-size: 15px; } } </style></head>
<body>
<form method="post" action="/auth/register"> <h2>Registro</h2> <form method="post" action="/auth/register"> <h2>Registro</h2>
<input name="name" placeholder="Nombre completo" required> <input name="email" placeholder="Email" required> <input name="password" type="password" placeholder="Password" required> <input name="entity_id" type="number" placeholder="Entidad ID" required> <input name="name" placeholder="Nombre completo" required> <input name="email" placeholder="Email" required> <input name="password" type="password" placeholder="Password" required> <input name="entity_id" type="number" placeholder="Entidad ID" required>
<button type="submit">Registrarme</button> <button type="submit">Registrarme</button>
<p>¿Ya tienes cuenta? <a href="/">Inicia sesión</a></p></form> <p>¿Ya tienes cuenta? <a href="/">Inicia sesión</a></p> </form>
</body>
</html></html>app/templates/issue.html+102-70
app/templates/login.html+46-16
app/templates/register.html+49-18
app_pkg/static/pdfs/dadb9e008c3d459fa9be192fa22e914d.pdfAdded
app_pkg/static/qrs/dadb9e008c3d459fa9be192fa22e914d.pngAdded

instance/data.db