Improved assignment projector view.
This commit is contained in:
parent
d671d2b153
commit
2f027663ed
@ -7,6 +7,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% trans "Election" %}: {{ item.assignment }}</h1>
|
<h1>{% trans "Election" %}: {{ item.assignment }}</h1>
|
||||||
|
|
||||||
|
{% if item.assignment.status != "fin" %}
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<p><b>{% trans "Status" %}:</b><br>
|
<p><b>{% trans "Status" %}:</b><br>
|
||||||
@ -17,12 +18,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if not item.assignment.profile.exists %}
|
||||||
<p>
|
<p>
|
||||||
<div class="text">{{ item.assignment.description|linebreaks }}</div>
|
<div class="text">{{ item.assignment.description|linebreaks }}</div>
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if item.assignment.status != "fin" %}
|
{% if item.assignment.profile.exists and item.assignment.status != "fin" %}
|
||||||
<h3>{% trans "Candidates" %}</h3>
|
<h3>{% trans "Candidates" %}</h3>
|
||||||
<ol>
|
<ol>
|
||||||
{% for profile in item.assignment.profile.all|dictsort:"user.first_name" %}
|
{% for profile in item.assignment.profile.all|dictsort:"user.first_name" %}
|
||||||
@ -33,12 +37,11 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
|
<p><br></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% with polls|first as firstpoll %}
|
{% with polls|first as firstpoll %}
|
||||||
{% if polls.count > 0 and firstpoll.published %}
|
{% if polls.count > 0 and firstpoll.published %}
|
||||||
|
|
||||||
<p><br></p>
|
|
||||||
<h3>{% trans "Election results" %}</h3>
|
<h3>{% trans "Election results" %}</h3>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user