{% extends "IcapDropzoneBundle:Correction:correct.html.twig" %} {% set commentInCorrectionRequired = false %} {% form_theme form "IcapDropzoneBundle::form_theme_bootstrap3.html.twig" %} {% block dropzone_correct_content %}
{% if edit %}

{{ 'Warning'|trans({}, 'icap_dropzone') }}

{{ 'You are about to make your correction. This action is final. The rating is %grade%/20'|trans({'%grade%': (totalGrade|number_format(2)) }, 'icap_dropzone') }}

{{ 'Are you sure you have done?'|trans({}, 'icap_dropzone') }}

{% endif %} {% if dropzone.allowCommentInCorrection %} {{ form_errors(form) }} {% if edit == true %} {% if dropzone.forceCommentInCorrection %} {% set commentInCorrectionRequired = 'required' %}

{{ 'Please comment'|trans({}, 'icap_dropzone') }}

{% else %}

{{ 'Would you like to comment?'|trans({}, 'icap_dropzone') }}

{% endif %} {% else %}

{{ 'Comment'|trans({}, 'icap_dropzone') }}

{% endif %} {% if edit %}
{{ form_row(form.comment, {'label_col_size': ' ', 'input_col_size': 'col-md-12', 'label_attr': {'style': 'display:none;' }} ) }}
{% else %}
{{ correction.comment|raw }}
{% endif %} {% endif %} {{ form_rest(form) }} {% if edit == true %}
{% if admin == true %} {{ 'Previous'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Previous'|trans({}, 'icap_dropzone') }} {% endif %}
{% else %} {% endif %}
{{ nbPages+1 }} / {{ nbPages+1 }}
{% endblock %} {% block javascripts %} {{ parent() }} {{ tinymce_init() }} {% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %}