Spaces:
Sleeping

xertify / app /templates /admin_pending.html
Fedgo29
Adding changes by FedgoX
5398422
Raw History Blame Contribute Delete
2.88 kB
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Usuarios Pendientes</title>
<style>
body {
margin: 0;
padding: 2rem;
font-family: "Segoe UI", sans-serif;
background: linear-gradient(135deg, #0d1117, #1f2937);
color: #e5e7eb;
}
/* Barra superior con logout */
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
background: #111827;
padding: 1rem 1.5rem;
border-radius: 10px;
border: 1px solid #374151;
box-shadow: 0 0 15px rgba(0,0,0,0.3);
margin-bottom: 2rem;
}
h2 {
margin: 0;
color: #f3f4f6;
letter-spacing: 1px;
}
.btn {
padding: 10px 18px;
background: #3b82f6;
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: 0.2s ease-in-out;
}
.btn:hover {
background: #2563eb;
transform: translateY(-2px);
}
.card {
background: #111827;
padding: 1.5rem 2rem;
border-radius: 12px;
border: 1px solid #374151;
box-shadow: 0 0 25px rgba(0,0,0,0.4);
animation: fadeIn 0.5s ease;
}
ul {
list-style: none;
padding: 0;
}
li {
background: #1f2937;
padding: 1rem;
margin-bottom: 10px;
border-radius: 8px;
border: 1px solid #374151;
display: flex;
justify-content: space-between;
align-items: center;
}
a {
color: #60a5fa;
text-decoration: none;
font-weight: 600;
margin-top: 20px;
display: inline-block;
}
a:hover {
text-decoration: underline;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Responsive tweaks */
@media (max-width: 700px) {
body { padding: 12px; }
.top-bar { flex-direction: column; align-items: flex-start; gap:10px; }
.card { padding: 12px; }
li { flex-direction: column; align-items: flex-start; gap:8px; }
.btn { width: 100%; }
}
</style>
</head>
<body>
<div class="top-bar">
<h2>Usuarios Pendientes (Admin)</h2>
<form method="post" action="/auth/logout">
<button type="submit" class="btn">Logout</button>
</form>
</div>
<div class="card">
{% if users %}
<ul>
{% for u in users %}
<li>
<span><b>{{ u.name }}</b> ({{ u.email }})</span>
<form method="post" action="/admin/approve/{{ u.id }}">
<button type="submit" class="btn">Aprobar</button>
</form>
</li>
{% endfor %}
</ul>
{% else %}
<p>No hay usuarios pendientes.</p>
{% endif %}
<a href="/auth/logout">Volver</a>
</div>
</body>
</html>