{% extends request.htmx|yesno:"dummy.html,rrhh/baseHR.html" %}
{
{% block rrhhcontent %}
<div class="container mt-4">
  <h2 class="h3 pt-2 mb-0">{{ title|default:"Detalle del Registro" }}</h2>
  <br/>
    <div class="card">
        <div class="card-header">
        </div>
        <div class="card-body">
            <table class="table table-striped table-bordered">
                <tbody>
                    {% for field in field_list %}
                        <tr>
                            <th style="width: 30%;">{{ field.label }}</th>
                            <td>
                                {{ field.value|linebreaksbr }}
                            </td>
                        </tr>
                    {% empty %}
                        <tr>
                            <td colspan="2">No hay información para mostrar.</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
        <div class="card-footer text-end">
            <a href="{{ request.META.HTTP_REFERER|default:'/' }}" class="btn btn-secondary">
                <i class="bi bi-arrow-left"></i> Volver
            </a>
        </div>
    </div>
</div>
{% endblock rrhhcontent %}
