{% extends 'base.html' %} {% load custom_filters %} {% block titulo %} Puntajes generales {% endblock titulo %} {% block body %} {% include 'admin/config_nav.html' %}

Modificar Puntajes generales

{% csrf_token %} {{ formset.management_form }}
{% with first=formset.0 %} {% if first %} {% for choice_value, choice_text in first.tipo.field.choices %} {% if choice_value == first.tipo.value %}

{{ choice_text }}

{% endif %} {% endfor %} {% endif %} {% endwith %} {% for form in formset %}
{% for hidden in form.hidden_fields %} {{ hidden }}
{{ hidden.errors }}
{% endfor %} {% if form.tipo.value == '1-Genero' or form.tipo.value == '3-Tipo de solicitud' %}
{{ form.nombre }}
{{ form.nombre.value }}
{% else %} {{ form.nombre }} {% endif %}
{{ form.nombre.errors }}
{{ form.puntos }}
{{ form.puntos.errors }} {{ form.non_field_errors }}
{% with c=formset|hashD:forloop.counter %} {% with cb=form %} {% if c.tipo.value != cb.tipo.value and c is not None %}
{% for choice_value, choice_text in c.tipo.field.choices %} {% if choice_value == c.tipo.value %}

{{ choice_text }}

{% endif %} {% endfor %} {% endif %} {% endwith %} {% endwith %} {% endfor %}
{% include 'admin/municipio_puntos.html' %}
{% endblock body %}