{% extends 'management/election_detail_configs.html' %} {% load i18n core_tags form_tags formset_tags %} {% block container %}
{% include "management/includes/election_tabs.html" with election=object tab="categories" only %}
{% trans "Use the following form to identify the categories and respective weights" %}
{% csrf_token %}
{{form.management_form}} {% with default_category=object.categories.default %} {% if default_category %} {% endif %} {% endwith %} {% for f in form %} {% endfor %}
{% trans "Id" %} {% trans "Designation [pt]" %} {% trans "Designation [en]" %} {% trans "Weight" %}
{{default_category.slug}} {{ default_category.designation_pt }} {{ default_category.designation_en }} {{ default_category.weight }}
{{f.instance.slug}} {% prepare_field f.designation_pt %} {% prepare_field f.designation_en %} {% prepare_field f.weight %} {{f.id}} {{f.election}}
{% endblock container %}