{% extends 'base.html' %} {% block titulo %} Configuración Estudio Socioeconómico {% endblock titulo %} {% block body %} {% load custom_filters %} {% include 'admin/config_nav.html' %}

Modificar Estudio Socioeconomico

{% csrf_token %}
{{seccionFormset.management_form}} {% for seccion in seccionFormset %} {% with pDiv=seccion.prefix|splitPop:'-' %}
{% for hidden in seccion.hidden_fields %} {{ hidden }} {% endfor %}
{{ seccion.nombre.label }} {{ seccion.nombre }}
{{ seccion.tipo.label }}
{% for choice in seccion.tipo %} {% if forloop.counter0 > 0 %} {{ choice }} {% endif %} {% endfor %}
{{ seccion.errors }}
{% with elementoFormSet=dictElemForm|hashD:seccion.prefix %} {% if elementoFormSet %} {{ elementoFormSet.management_form}} {% with first=elementoFormSet.0 %} {% if first %}
{% for elemento in elementoFormSet%} {% with eID=forloop.counter0 %}
{% for hidden in elemento.hidden_fields %} {{ hidden }} {% endfor %}
{{ elemento.nombre }}
{{ elemento.tipo }}
{{ elemento.obligatorio.label }}
{% for choice in elemento.obligatorio %} {{ choice }} {% endfor %}

Opciones

{% with opcionFormSet=dictOpcionForm|hashD:elemento.prefix %} {% if opcionFormSet %} {{ opcionFormSet.management_form}} {% for opcion in opcionFormSet%} {% with oID=forloop.counter0 %}
{% for hidden in opcion.hidden_fields %} {{ hidden }} {% endfor %} {{ opcion.nombre }}
{{ opcion.errors }}
{% endwith %} {% endfor %} {% endif %} {% endwith %}
{{ elemento.errors }}
{% endwith %} {% with c=elementoFormSet|hashD:forloop.counter %} {% with cb=elementoFormSet|hashD:forloop.counter0 %} {% if c.row.value != cb.row.value and c is not None %}
{% endif %} {% endwith %} {% endwith %} {% endfor %}
{% with ultimo=elementoFormSet|last %} {% endwith %}
{% else %}
{% endif %} {% endwith %} {% endif %} {% endwith %}
{% endwith%} {% endfor %}
{% endblock body %}