{% set current_theme = current_theme() %} {% set config = config() %} {{ current_theme.headertags() }} {{ _('Resultado de Evaluación') }} {{ current_theme.local_style() }} {{ current_theme.navbar() }}
{{ current_theme.notify() }}

{{ attempt.evaluation.title }}

{{ _('Resultado del intento') }} {% if attempt.passed %} {{ _('APROBADO') }} {% else %} {{ _('NO APROBADO') }} {% endif %}

{{ "%.1f"|format(attempt.score) }}%

{{ _('Puntuación obtenida') }}

{{ attempt.evaluation.passing_score }}%

{{ _('Puntuación mínima') }}

{{ attempt.submitted_at.strftime('%d/%m/%Y %H:%M') }}

{{ _('Fecha de envío') }}

{% if attempt.was_late %}
{{ _('Este intento fue enviado después de la fecha límite y se aplicó una penalización.') }}
{% endif %}
{{ _('Detalles de respuestas') }}
{% for answer in attempt.answers %} {% set question = answer.question %}
{{ _('Pregunta') }} {{ loop.index }}

{{ question.text }}

{% if question.type == "boolean" %} {% if answer.selected_option_ids %} {% set selected_ids = answer.selected_option_ids | fromjson %} {% for option_id in selected_ids %} {% set option = question.options | selectattr("id", "equalto", option_id) | first %}

{{ _('Tu respuesta:') }} {{ option.text }}

{% endfor %} {% endif %} {% elif question.type == "multiple" %} {% if answer.selected_option_ids %} {% set selected_ids = answer.selected_option_ids | fromjson %}

{{ _('Tus respuestas:') }}

    {% for option_id in selected_ids %} {% set option = question.options | selectattr("id", "equalto", option_id) | first %}
  • {{ option.text }}
  • {% endfor %}
{% endif %} {% endif %}

{{ _('Respuestas correctas:') }}

    {% for option in question.options %} {% if option.is_correct %}
  • {{ option.text }}
  • {% endif %} {% endfor %}
{% if question.explanation %}

{{ _('Explicación:') }}

{{ question.explanation }}

{% endif %}
{% set is_correct = false %} {% if answer.selected_option_ids %} {% set selected_ids = answer.selected_option_ids | fromjson %} {% set correct_ids = question.options | selectattr("is_correct", "equalto", true) | map(attribute="id") | list %} {% if selected_ids | sort == correct_ids | sort %} {% set is_correct = true %} {% endif %} {% endif %} {% if is_correct %} {{ _('Correcta') }} {% else %} {{ _('Incorrecta') }} {% endif %}
{% endfor %}