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

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

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

{% trans "Back to Templates" %}
{% csrf_token %}

{% trans "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 %}

{% trans "Scores below this are marked as negative" %}

{% if form.is_active.errors %}
{{ form.is_active.errors }}
{% endif %}

{% trans "Questions" %}

{{ formset.management_form }} {% for form in formset %}

{% trans "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 %}
{% 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 %}
{% trans "Cancel" %}
{% endblock %} {% block extra_js %} {% endblock %}