{#- SPDX-License-Identifier: Apache-2.0 SPDX-FileCopyrightText: 2025 - 2026 BMO Soluciones, S.A. -#} {% extends "base.html" %} {% block title %}{{ report.name }}{% endblock %} {% block content %}

{{ report.name }}

{{ _('Ejecutar') }} {{ _('Volver') }}
{{ _('Información del Reporte') }}
{{ _('Nombre') }}:
{{ report.name }}
{{ _('Descripción') }}:
{{ report.description or _('Sin descripción') }}
{{ _('Tipo') }}:
{{ _('Sistema') if report.type == 'system' else _('Personalizado') }}
{{ _('Categoría') }}:
{{ report.category|capitalize if report.category else '-' }}
{{ _('Entidad Base') }}:
{{ report.base_entity }}
{{ _('Estado') }}:
{{ _('Habilitado') if report.status == 'enabled' else _('Deshabilitado') }}
{{ _('Ejecuciones Recientes') }}
{% if executions %}
{% for exec in executions %} {% endfor %}
{{ _('Fecha') }} {{ _('Usuario') }} {{ _('Estado') }} {{ _('Registros') }} {{ _('Tiempo') }}
{{ exec.timestamp.strftime('%Y-%m-%d %H:%M') if exec.timestamp else exec.creado.strftime('%Y-%m-%d') }} {{ exec.executed_by }} {{ exec.status }} {{ exec.row_count or '-' }} {{ exec.execution_time_ms or '-' }} ms
{% else %}

{{ _('No hay ejecuciones registradas.') }}

{% endif %}
{% if metadata %}
{{ _('Parámetros') }}
{% if metadata.parameters %}
    {% for param in metadata.parameters %}
  • {{ param.name|replace('_', ' ')|title }}
    {{ _('Tipo') }}: {{ param.type }} {% if param.required %}({{ _('Requerido') }}){% endif %}
  • {% endfor %}
{% else %}

{{ _('Sin parámetros') }}

{% endif %}
{% endif %}
{% endblock %}