{% extends "soc/models/edit.html" %} {% comment %} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. {% endcomment %} {% load forms_helpers %} {% block scripts %} {{ block.super }} {% endblock %} {# cannot add an id for the main form with inheritance #} {% block body %}

{# TODO: check if can be changed to div #}

{% block instructions %} Please use this form to edit the {{ entity_type }}. {% endblock %}

{% if error_message %}
{{ error_message|safe }}
{% endif %}
{% block form_table %} {% as_table form %} {% endblock %}
Survey content:
{% block survey_content %} {% if survey_form %} {% as_twoline_table survey_form %} {% else %} {% endif %} {% endblock %}
{% for type_id, type_info in question_types.items %} {% endfor %}
{# end survey_widget #}
{% block submit_buttons %} {% block save_button %} {% if entity %} {% else %} {% endif %} {% endblock %} {% if entity %} {% block delete_button %} {% endblock %} {% if export_link %} {% endif %} {% ifequal entity.taking_access "mentor evaluation" %} {% endifequal %} {% endif %} {% endblock %}
 
{% if edit_cancel_redirect %} {% else %} {% endif %}

This item will be permanently deleted and cannot be recovered. Are you sure?

{% if not new_survey %} {% if survey_records %} {{ survey_records|safe }} {% endif %} {% endif %} {% endblock %}