{% extends 'staff_evaluation_base.html' %} {% load evaluation_filters %} {% block content %} {{ block.super }}

{% if evaluation_form.instance.id %} {{ evaluation.full_name }} ({{ evaluation.course.semester.name }}) {% else %} {% translate 'Create evaluation' %} {% endif %}

{% if evaluation_form.instance.id %}
{% with approval_state_values=evaluation.state|approval_state_values %} {{ approval_state_values.description }} {% endwith %} {% include 'course_badges.html' with course=evaluation.course %}
{% endif %}
{% csrf_token %}
{% include 'evaluation_form_general_questionnaires.html' with evaluation=evaluation evaluation_form=evaluation_form %}
{% include 'contribution_formset.html' with formset=formset manager=True editable=editable %}
{% if editable %}
{% if questionnaires_with_answers_per_contributor %}
{% translate 'You are editing an evaluation, for which answers have already been received. If you remove any of the questionnaires highlighted in red above, all related answers will be permanently deleted.' %}
{% endif %} {% if state == evaluation.State.IN_EVALUATION %}
{% translate 'You are editing an evaluation, which is already running. Please note that only the participants who did not evaluate yet will see your changes.' %}
{% endif %} {% if state == evaluation.State.EVALUATED or state == evaluation.State.REVIEWED %}
{% translate 'You are editing an evaluation, for which the evaluation already finished. Please be careful to not destroy any results.' %}
{% endif %} {% if state == evaluation.State.NEW or state == evaluation.State.PREPARED %}
{% translate 'You are editing an evaluation which has not been approved by the editor yet.' %}
{% endif %} {% if state == evaluation.State.NEW or state == evaluation.State.PREPARED or state == evaluation.State.EDITOR_APPROVED %} {% endif %}
{% endif %} {% include 'log/logentries.html' with logged_object=evaluation %}
{% endblock %} {% block additional_javascript %} {% include 'evap_evaluation_edit_js.html' %} {% endblock %}