File size: 4,355 Bytes
0e45ab7 f7690ab 0e45ab7 f7690ab 0e45ab7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | <!doctype html>
<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;
}
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% !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="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>
|