{% extends "layouts/base.html" %} {% load i18n static %} {% block extra_css %} {% endblock %} {% block title %}{% if template %}Edit Survey Template{% else %}Create Survey Template{% endif %} - PX360{% endblock %} {% block content %}

{% if template %}Edit Survey Template{% else %}Create Survey Template{% endif %}

{% if template %}Modify survey template and questions{% else %}Create a new survey template with questions{% endif %}

Back to Templates
{% csrf_token %}
Template Details
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors }}
{% endif %}
{{ form.name_ar }} {% if form.name_ar.errors %}
{{ form.name_ar.errors }}
{% endif %}
{{ form.hospital }} {% if form.hospital.errors %}
{{ form.hospital.errors }}
{% endif %}
{{ form.survey_type }} {% if form.survey_type.errors %}
{{ form.survey_type.errors }}
{% endif %}
{{ form.scoring_method }} {% if form.scoring_method.errors %}
{{ form.scoring_method.errors }}
{% endif %}
{{ form.negative_threshold }} {% if form.negative_threshold.errors %}
{{ form.negative_threshold.errors }}
{% endif %} Scores below this are marked as negative
{{ form.is_active }}
{% if form.is_active.errors %}
{{ form.is_active.errors }}
{% endif %}

Questions
{{ formset.management_form }} {% for form in formset %}
Question #{{ forloop.counter }}
{% if form.DELETE %} {{ form.DELETE }} {% endif %}
{{ form.text }} {% if form.text.errors %}
{{ form.text.errors }}
{% endif %}
{{ form.text_ar }} {% if form.text_ar.errors %}
{{ form.text_ar.errors }}
{% endif %}
{{ form.question_type }} {% if form.question_type.errors %}
{{ form.question_type.errors }}
{% endif %}
{{ form.order }} {% if form.order.errors %}
{{ form.order.errors }}
{% endif %}
{{ form.is_required }} {% if form.is_required.errors %}
{{ form.is_required.errors }}
{% endif %}
{{ form.choices_json }} {% if form.choices_json.errors %}
{{ form.choices_json.errors }}
{% endif %} {{ form.choices_json.help_text }}
{{ form.id }}
{% endfor %}
Cancel
{% endblock %} {% block extra_js %} {% endblock %}