OpenSlides/openslides/application/templates/projector/Application.html

61 lines
2.3 KiB
HTML
Raw Normal View History

2012-02-06 22:08:08 +01:00
{% extends "base-projector.html" %}
2011-07-31 10:46:29 +02:00
{% load tags %}
{% block title %}{{ block.super }} - {{ item.title }}{% endblock %}
{% block content %}
<div id="sidebar">
<div class="box">
2011-09-08 18:57:11 +02:00
<p><b>{%trans "Status" %}:</b><br>
{% if application.status != "pub" %}
{%trans application.get_status_display %}
2011-09-08 18:57:11 +02:00
<br>
{% else %}
{% for note in application.notes %}
2011-09-08 18:57:11 +02:00
{{ note }}
{% endfor %}
{% endif %}
</p>
2011-07-31 10:46:29 +02:00
2011-09-08 18:57:11 +02:00
<p><b>{% trans "Submitter" %}:</b><br>
{{ application.submitter.profile }}</p>
{% with application.poll_set.all as polls %}
2011-09-08 18:57:11 +02:00
{% if polls|length > 0 and polls.0.has_vote %}
<p><b>{% trans "Poll result" %}:</b></p>
{% for p in polls %}
2011-07-31 10:46:29 +02:00
{% if p.has_vote %}
2011-09-08 18:57:11 +02:00
{% if polls|length > 1 %}
{{forloop.counter}}. {% trans "Vote" %}:<br>
2011-07-31 10:46:29 +02:00
{% endif %}
2011-09-08 18:57:11 +02:00
{% for option in p.options %}
<img src="/static/images/icons/voting-yes.png" title="{% trans 'Yes' %}"> {{ option.yes }} <br>
<img src="/static/images/icons/voting-no.png" title="{% trans 'No' %}"> {{ option.no }} <br>
<img src="/static/images/icons/voting-abstention.png" title="{% trans 'Abstention' %}"> {{ option.undesided }}<br>
<img src="/static/images/icons/voting-invalid.png" title="{% trans 'Invalid' %}"> {{ p.votesinvalidf }}<br>
<div style="border-top: 1px solid; padding-top: 5px; margin: 5px 0; width: 10em;">
<img src="/static/images/icons/voting-total.png" title="{% trans 'Votes cast' %}"> {{ p.votescastf }}
2011-09-08 18:57:11 +02:00
</div>
2011-07-31 10:46:29 +02:00
{% endfor %}
<br>
{% else %}
{% if poll|length == 1 %}
<i>{% trans "No poll results available." %}</i>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
</div>
</div>
<h1>{% trans "Application No." %} {{ application.number }}</h1>
2011-09-08 18:57:11 +02:00
<b>{{ item.title }}</b>
2011-07-31 10:46:29 +02:00
<p>
<div class="text">{{ application.public_version.text|linebreaks }}</div>
{% if application.public_version.reason %}
2011-09-08 18:57:11 +02:00
<br>
<div class="reason"><p><b>{% trans "Reason" %}:</b></p>
{{ application.public_version.reason|linebreaks }}</div>
2011-09-08 18:57:11 +02:00
{% endif %}
2011-07-31 10:46:29 +02:00
</p>
{% endblock %}