OpenSlides/openslides/motion/templates/projector/Motion.html

82 lines
2.9 KiB
HTML
Raw Normal View History

2012-02-06 22:08:08 +01:00
{% extends "base-projector.html" %}
2012-02-21 08:21:59 +01:00
2011-07-31 10:46:29 +02:00
{% load tags %}
2012-02-21 08:21:59 +01:00
{% load i18n %}
{% load staticfiles %}
2012-02-21 08:21:59 +01:00
2012-10-24 11:04:23 +02:00
{% block title %}{{ block.super }} - {% trans "Motion" %} {{ motion.number }}{% endblock %}
2011-07-31 10:46:29 +02:00
{% block content %}
<div id="sidebar">
<div class="box">
<p><b>{% trans "Status" %}:</b><br>
2012-10-24 11:04:23 +02:00
{% if motion.status != "pub" %}
{% if motion.status == "acc" %}
<img src="{% static 'images/icons/voting-yes.png' %}">
{% endif %}
2012-10-24 11:04:23 +02:00
{% if motion.status == "rej" %}
<img src="{% static 'images/icons/voting-no.png' %}">
{% endif %}
2012-10-24 11:04:23 +02:00
{% trans motion.get_status_display %}
2011-09-08 18:57:11 +02:00
{% else %}
2012-10-24 11:04:23 +02:00
{% for note in motion.notes %}
2011-09-08 18:57:11 +02:00
{{ note }}
{% endfor %}
{% endif %}
</p>
2011-07-31 10:46:29 +02:00
2012-10-24 11:04:23 +02:00
{% with motion.polls as polls %}
{% if polls.exists and polls.0.has_votes %}
<p><b>{% trans "Poll result" %}:</b>
{% for poll in polls %}
{% if poll.has_votes %}
{% if polls|length > 1 %}
<p>{{forloop.counter}}. {% trans "Vote" %}:</p>
{% endif %}
{% with poll.get_options.0 as option %}
<div class="results">
<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.Abstain }}<br>
<img src="{% static 'images/icons/voting-invalid.png' %}" title="{% trans 'Invalid' %}"> {{ poll.print_votesinvalid }}<br>
<hr>
<img src="{% static 'images/icons/voting-total.png' %}" title="{% trans 'Votes cast' %}"> {{ poll.print_votescast }}
</div>
{% endwith %}
{% else %}
{% if poll|length == 1 %}
<i>{% trans "No poll results available." %}</i>
{% endif %}
{% endif %}
{% endfor %}
</p>
{% endif %}
{% endwith %}
2011-09-08 18:57:11 +02:00
<p><b>{% trans "Submitter" %}:</b><br>
2012-10-24 11:04:23 +02:00
{{ motion.submitter }}
</p>
2011-07-31 10:46:29 +02:00
</div>
</div>
<h1>
2012-10-24 11:04:23 +02:00
{% if motion.number != None %}
{% trans "Motion No." %} {{ motion.number }}
{% else %}
{% trans "Motion" %} <i>[{% trans "no number" %}]</i>
{% endif %}
</h1>
2012-10-24 11:04:23 +02:00
<b>{{ motion.public_version.title }}</b>
<hr>
{% endblock %}
{% block scrollcontent %}
2011-07-31 10:46:29 +02:00
<p>
2012-10-24 11:04:23 +02:00
<div class="text">{{ motion.public_version.text|linebreaks }}</div>
{% if motion.public_version.reason %}
2011-09-08 18:57:11 +02:00
<br>
<div class="reason"><p><b>{% trans "Reason" %}:</b></p>
2012-10-24 11:04:23 +02:00
{{ motion.public_version.reason|linebreaks }}</div>
2011-09-08 18:57:11 +02:00
{% endif %}
2011-07-31 10:46:29 +02:00
</p>
{% endblock %}