{% extends "ishtar/forms/qa_base.html" %} {% load i18n inline_formset table_form %} {% block main_form %} {% if form.non_field_errors %} {% endif %}

{% trans "Containers" %}

{% trans "Move" context "action" %}

{% for hidden in form.hidden_fields %} {{hidden}} {% if hidden.errors %}
{{ hidden.errors }}
{% endif %} {% endfor %}
{% with force_large_col=True %} {% with form.qalocation as field %} {% include "blocks/bs_field_snippet.html" %} {% endwith %} {% with form.qaparent as field %} {% include "blocks/bs_field_snippet.html" %} {% endwith %} {% endwith %}
{{ form.create_treatment }} 
{% with force_large_col=false %}{% for field in form %} {% if field.name != 'qalocation' and field.name != 'qaparent' and field.name != 'create_treatment' %} {% include "blocks/bs_field_snippet.html" %} {% endif %} {% endfor %}{% endwith %}
{% endblock %} {% block js %} var update_form_display = function(){ if ($("#{{form.create_treatment.auto_id}}:checked").length){ $("#new-treatment").show(); } else { $("#new-treatment").hide(); } }; $(document).ready(function(){ $("#{{form.create_treatment.auto_id}}").click(update_form_display); update_form_display(); }); {% endblock %}