{% 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="candidates" only %}
{% trans "Please configure the candidates/list of candidates" %}
{% csrf_token %} {{form.non_field_errors}} {% if object.write_in %}
{% trans "# Candidates" %} {% trans "File uploaded" %} {% trans "Upload file" %}
{{object.candidates.write_in.count}} {% if object.write_in_import and object.write_in_import.document %} {{object.write_in_import.document.name}} {% else %} {% trans "No candidates file uploaded." %} {% endif %} {% prepare_field form.document %}
{% else %}
{{form.management_form}} {% for f in form %} {% include "management/includes/candidate_form.html" with form=f prefix=form.prefix only %} {% endfor %}
{% trans "Image/logo" %} {% trans "Candidate/List of candidates Name" %}
{% endif %}
{% endblock container %}