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 %}
|
2012-04-14 14:51:56 +02:00
|
|
|
{% load staticfiles %}
|
2012-02-21 08:21:59 +01:00
|
|
|
|
2013-03-14 23:04:32 +01:00
|
|
|
{% block title %}{{ block.super }} - {% trans "Motion" %} {{ motion.identifier }}{% endblock %}
|
2011-07-31 10:46:29 +02:00
|
|
|
{% block content %}
|
|
|
|
<div id="sidebar">
|
|
|
|
<div class="box">
|
2013-05-06 20:17:13 +02:00
|
|
|
<!-- Status -->
|
2012-07-16 14:00:29 +02:00
|
|
|
<p><b>{% trans "Status" %}:</b><br>
|
2013-05-06 20:17:13 +02:00
|
|
|
{% trans motion.state.name %}
|
2011-09-08 18:57:11 +02:00
|
|
|
</p>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-05-06 20:17:13 +02:00
|
|
|
<!-- poll results -->
|
2013-05-22 23:53:01 +02:00
|
|
|
{% with motion.polls.all as polls %}
|
2012-04-30 08:30:04 +02:00
|
|
|
{% if polls.exists and polls.0.has_votes %}
|
2012-05-15 20:36:49 +02:00
|
|
|
<p><b>{% trans "Poll result" %}:</b>
|
2013-05-06 20:17:13 +02:00
|
|
|
{% 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 'img/voting-yes.png' %}" title="{% trans 'Yes' %}"> {{ option.Yes }} <br>
|
|
|
|
<img src="{% static 'img/voting-no.png' %}" title="{% trans 'No' %}"> {{ option.No }} <br>
|
|
|
|
<img src="{% static 'img/voting-abstention.png' %}" title="{% trans 'Abstention' %}"> {{ option.Abstain }}<br>
|
|
|
|
<img src="{% static 'img/voting-invalid.png' %}" title="{% trans 'Invalid' %}"> {{ poll.print_votesinvalid }}<br>
|
|
|
|
<hr>
|
|
|
|
<img src="{% static 'img/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 %}
|
2012-04-30 08:30:04 +02:00
|
|
|
{% endif %}
|
2013-05-06 20:17:13 +02:00
|
|
|
{% endfor %}
|
2012-04-30 08:30:04 +02:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
2013-05-06 20:17:13 +02:00
|
|
|
<!-- Submitter -->
|
2011-09-08 18:57:11 +02:00
|
|
|
<p><b>{% trans "Submitter" %}:</b><br>
|
2013-05-06 20:17:13 +02:00
|
|
|
{% for submitter in motion.submitter.all %}
|
|
|
|
{{ submitter.person }}{% if not forloop.last %},<br> {% endif %}
|
|
|
|
{% endfor %}
|
2012-04-30 08:23:50 +02:00
|
|
|
</p>
|
2011-07-31 10:46:29 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-09-09 22:34:55 +02:00
|
|
|
|
2012-04-20 22:43:12 +02:00
|
|
|
<h1>
|
2013-03-14 23:04:32 +01:00
|
|
|
{% if motion.identifier %}
|
|
|
|
{% trans "Motion No." %} {{ motion.identifier }}
|
2012-04-20 22:43:12 +02:00
|
|
|
{% else %}
|
2013-05-06 20:17:13 +02:00
|
|
|
{% trans "Motion" %} [---]
|
2012-04-20 22:43:12 +02:00
|
|
|
{% endif %}
|
2013-05-06 20:17:13 +02:00
|
|
|
<small>
|
|
|
|
{% if motion.last_version.version_number > 1 %}({% trans 'Version' %} {{ motion.active_version.version_number }}){% endif %}
|
|
|
|
</small>
|
2012-04-20 22:43:12 +02:00
|
|
|
</h1>
|
2013-05-06 20:17:13 +02:00
|
|
|
<b>{{ motion.active_version.title }}</b>
|
2012-04-24 22:27:16 +02:00
|
|
|
<hr>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scrollcontent %}
|
2011-07-31 10:46:29 +02:00
|
|
|
<p>
|
2013-05-06 20:17:13 +02:00
|
|
|
<div class="text">{{ motion.active_version.text|safe }}</div>
|
|
|
|
{% if motion.active_version.reason %}
|
2011-09-08 18:57:11 +02:00
|
|
|
<br>
|
|
|
|
<div class="reason"><p><b>{% trans "Reason" %}:</b></p>
|
2013-05-06 20:17:13 +02:00
|
|
|
{{ motion.active_version.reason|safe }}</div>
|
2011-09-08 18:57:11 +02:00
|
|
|
{% endif %}
|
2011-07-31 10:46:29 +02:00
|
|
|
</p>
|
|
|
|
{% endblock %}
|