{% 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 %} {% trans '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 state == evaluation.State.IN_EVALUATION %}
{% trans '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 %}
{% trans '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 %}
{% trans '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 %}