Spaces:
Sleeping
Sleeping
File size: 2,076 Bytes
e09caf0 | 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 | {# Herencia de la plantilla base #}
{% extends "layout.html" %}
{% block content %}
<div class="d-flex justify-content-between align-items-center"
style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;">
<div> </div>
<a class="btn-clinic" href="{{ url_for('persona.crud') }}" style="text-decoration: none;">+ Agregar Persona</a>
</div>
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Nombres y Apellidos</th>
<th>Cédula</th>
<th>F. Nacimiento</th>
<th>Dirección</th>
<th>Correo Electrónico</th>
<th width="60"></th>
<th width="60"></th>
</tr>
</thead>
<tbody>
{% for r in personas %}
<tr>
<td>{{ r['nombres'] }}</td>
<td>{{ r['cedula'] }}</td>
<td>{{ r['fecha_nmto'] }}</td>
<td>{{ r['direccion'] }}</td>
<td>{{ r['email'] }}</td>
<td class="text-center">
<a href="{{ url_for('persona.crud', idpersona=r['idpersona']) }}" title="Editar"
style="color: var(--primary);">
<i class="glyphicon glyphicon-pencil"></i>
</a>
</td>
<td class="text-center">
<a href="{{ url_for('persona.eliminar', idpersona=r['idpersona']) }}" title="Eliminar"
style="color: #d9534f;" onclick="return confirm('¿Seguro de eliminar este registro?');">
<i class="glyphicon glyphicon-trash"></i>
</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="7" class="text-center">No hay registros disponibles.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %} |