Download app/templates/issue.html from ed29/xertify: direct link, hf CLI and curl.
- Browser
- Download file 4.73 kB
-
https://huggingface.co/spaces/ed29/xertify/resolve/main/app/templates/issue.html
- Command line
-
hf download hf://spaces/ed29/xertify/app/templates/issue.html
-
curl -L -o issue.html https://huggingface.co/spaces/ed29/xertify/resolve/main/app/templates/issue.html
4.73 kB
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Emitir Diploma (Admin)</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| font-family: "Segoe UI", sans-serif; | |
| background: linear-gradient(135deg, #111827, #1e293b); | |
| color: #e5e7eb; | |
| min-height: 100vh; | |
| padding: 30px; | |
| } | |
| .topbar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 25px; | |
| padding-bottom: 15px; | |
| border-bottom: 1px solid #374151; | |
| } | |
| h2 { | |
| margin: 0; | |
| color: #93c5fd; | |
| font-size: 24px; | |
| } | |
| .logout-btn { | |
| padding: 10px 18px; | |
| background: #ef4444; | |
| border: none; | |
| border-radius: 8px; | |
| color: white; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: 0.2s; | |
| } | |
| .logout-btn:hover { | |
| 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); | |
| animation: fadeIn 0.5s ease; | |
| } | |
| form { | |
| background: #0f172a; | |
| } | |
| .field { | |
| margin-bottom: 15px; | |
| } | |
| label { | |
| display: block; | |
| font-size: 14px; | |
| margin-bottom: 6px; | |
| color: #93c5fd; | |
| font-weight: 600; | |
| } | |
| input { | |
| width: 100%; | |
| padding: 12px; | |
| border-radius: 8px; | |
| border: 1px solid #374151; | |
| background: #1e293b; | |
| color: #e5e7eb; | |
| 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 { | |
| border-color: #3b82f6; | |
| } | |
| button[type="submit"] { | |
| width: 100%; | |
| padding: 14px; | |
| margin-top: 10px; | |
| background: #3b82f6; | |
| border: none; | |
| border-radius: 8px; | |
| color: white; | |
| font-size: 16px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: 0.2s; | |
| } | |
| button[type="submit"]:hover { | |
| background: #2563eb; | |
| transform: translateY(-2px); | |
| } | |
| p { | |
| text-align: center; | |
| font-size: 13px; | |
| opacity: 0.7; | |
| margin-top: 15px; | |
| } | |
| @keyframes fadeIn { | |
| 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% ; | |
| 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="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> | |
| </body> | |
| </html> |