{% load i18n %} {% if single_view %} {% if candidate == task.candidate_id %} {% for choice in choices %} {% if choice.0 == task.status %} {{choice.1}} {% else %} {{choice.1}} {% endif %} {% endfor %} {% else %} {% trans "Assign" %} {% endif %} {% else %} {% if candidate.candidate_id in task.candidates.all %} {% for choice in choices %} {% if choice.0 == status %} {{choice.1}} {% else %} {{choice.1}} {% endif %} {% endfor %} {% else %} {% trans "Assign" %} {% endif %} {% endif %}