{% load crispy_forms_tags %} {% load automarkup %}
{% if voting_round.decision %}

Decision

{% if voting_round.decision.outcome == 'elected' %}
{{ voting_round.decision.get_outcome_display }}
{% elif voting_round.decision.outcome == 'notelected' %}
{{ voting_round.decision.get_outcome_display }}
{% endif %}
{% comment %} {% if voting_round.decision.comments %} {% endcomment %}

Decision comments

{{ voting_round.decision.comments }}

{% comment %} {% endif %} {% endcomment %}
{% else %} {% if "edadmin" in user_roles %} {% if voting_round.is_open %}

The voting round is still open. You many not draft a decision yet.

{% elif voting_round.is_scheduled %}

The voting round is scheduled but has not yet started.

{% elif voting_round.is_unscheduled %}

The voting round is not yet scheduled.

{% else %} {% with blocks=voting_round.decision_blocks %} {% if blocks %}

The decision cannot be fixed at this moment: {{ blocks }}

{% else %}
{% crispy decision_form %}
{% endif %} {% endwith %} {% endif %} {% else %}

No decision has been formulated yet.

{% endif %} {% endif %}