2011-07-31 10:46:29 +02:00
|
|
|
{% extends "application/base_application.html" %}
|
2012-02-09 16:57:10 +01:00
|
|
|
|
2011-07-31 10:46:29 +02:00
|
|
|
{% load tags %}
|
2012-02-09 16:57:10 +01:00
|
|
|
{% load i18n %}
|
2012-04-14 14:51:56 +02:00
|
|
|
{% load staticfiles %}
|
2012-02-09 16:57:10 +01:00
|
|
|
|
|
|
|
{% block title %}{{ block.super }} - {% trans "Application" %} "{{ version.title }}"{% endblock %}
|
|
|
|
|
2012-04-18 19:50:51 +02:00
|
|
|
|
2012-04-15 16:13:26 +02:00
|
|
|
{% block submenu %}
|
|
|
|
{{ block.super }}
|
2012-04-20 22:13:47 +02:00
|
|
|
|
2012-04-15 16:13:26 +02:00
|
|
|
{% endblock %}
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
|
|
{% block content %}
|
2012-04-15 16:13:26 +02:00
|
|
|
<div id="sidebar">
|
2011-07-31 10:46:29 +02:00
|
|
|
<div class="box">
|
2012-04-15 16:13:26 +02:00
|
|
|
<h4>{% trans "Submitter" %}:</h4>
|
2011-09-05 20:05:23 +02:00
|
|
|
{{ application.submitter.profile }}
|
2011-07-31 10:46:29 +02:00
|
|
|
{% if user == application.submitter %}
|
2012-04-14 14:51:56 +02:00
|
|
|
<img src="{% static 'images/icons/user-information.png' %}" title="{% trans 'You!' %}">
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if min_supporters > 0 %}
|
|
|
|
<h4>{% trans "Supporters" %}: *</h4>
|
|
|
|
{% if application.supporter.count == 0 %}
|
|
|
|
-
|
|
|
|
{% else %}
|
2011-09-05 20:05:23 +02:00
|
|
|
<ol>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% for supporter in application.supporter.all %}
|
2011-09-05 20:05:23 +02:00
|
|
|
<li> {{ supporter.profile }}</li>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endfor %}
|
2011-09-05 20:05:23 +02:00
|
|
|
</ol>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<h4>{% trans "Status" %}:</h4>
|
|
|
|
{% if application.status != "pub" %}
|
|
|
|
{% trans application.get_status_display %}
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
{% for note in application.notes %}
|
|
|
|
{{ note }}
|
|
|
|
{% if not forloop.last %}<br>{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2011-09-03 12:16:47 +02:00
|
|
|
<h4>{% trans "Vote results" %}:</h4>
|
2012-02-14 16:31:21 +01:00
|
|
|
{% with application.polls as polls %}
|
2012-04-14 19:14:51 +02:00
|
|
|
{% if not polls.exists %}
|
2011-09-03 12:16:47 +02:00
|
|
|
{% if perms.application.can_manage_application %}
|
|
|
|
{% if "genpoll" in actions %}
|
|
|
|
<a href='{% url application_gen_poll application.id %}'>
|
2012-04-23 21:27:22 +02:00
|
|
|
<span class="button"><span class="icon statistics">{%trans 'New vote' %}</span></span>
|
2011-09-03 12:16:47 +02:00
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<ul class="results">
|
|
|
|
{% for poll in polls %}
|
2012-04-15 13:10:24 +02:00
|
|
|
{% if perms.application.can_manage_application or poll.has_votes %}
|
2011-09-03 12:16:47 +02:00
|
|
|
<li>
|
|
|
|
{% if perms.application.can_manage_application %}
|
2012-04-15 11:48:31 +02:00
|
|
|
<a href="{% url application_poll_view poll.id %}">
|
|
|
|
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
|
2011-09-03 12:16:47 +02:00
|
|
|
</a>
|
2012-04-15 11:48:31 +02:00
|
|
|
<a href="{% url application_poll_delete poll.id %}">
|
2012-04-23 21:27:22 +02:00
|
|
|
<img src="{% static 'images/icons/delete.png' %}" title="{% trans 'Delete Vote' %}">
|
2012-04-15 11:48:31 +02:00
|
|
|
</a>
|
2012-04-15 12:52:59 +02:00
|
|
|
{% elif poll.has_votes %}
|
|
|
|
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
|
2012-04-15 11:48:31 +02:00
|
|
|
{% endif %}
|
|
|
|
<br>
|
|
|
|
{% if poll.has_votes %}
|
|
|
|
{% with poll.get_options.0 as option %}
|
2012-04-17 17:35:50 +02:00
|
|
|
<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>
|
2012-04-15 11:48:31 +02:00
|
|
|
<img src="{% static 'images/icons/voting-invalid.png' %}" title="{% trans 'Invalid' %}"> {{ poll.print_votesinvalid }}<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' %}"> {{ poll.print_votescast }}
|
|
|
|
</div>
|
|
|
|
{% endwith %}
|
|
|
|
{% if perms.application.can_manage_application %}
|
|
|
|
{% if forloop.last %}
|
|
|
|
{% if "genpoll" in actions %}
|
|
|
|
<a href='{% url application_gen_poll application.id %}'>
|
2012-04-23 21:27:22 +02:00
|
|
|
<span class="button"><span class="icon statistics">{%trans 'New vote' %}</span></span>
|
2012-04-15 11:48:31 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2011-09-03 12:16:47 +02:00
|
|
|
{% endif %}
|
2012-04-15 11:48:31 +02:00
|
|
|
{% else %}
|
|
|
|
{% if perms.application.can_manage_application %}
|
|
|
|
<a href="{% url application_poll_view poll.id %}">{% trans "Enter vote results!" %}</a>
|
2011-09-03 12:16:47 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
2012-04-15 13:10:24 +02:00
|
|
|
{% endif %}
|
2011-09-03 12:16:47 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endwith %}
|
|
|
|
|
2011-07-31 10:46:29 +02:00
|
|
|
<h4>{% trans "Creation Time" %}:</h4>
|
|
|
|
{{ application.creation_time }}
|
2011-09-03 18:11:42 +02:00
|
|
|
|
2011-07-31 10:46:29 +02:00
|
|
|
<p></p>
|
|
|
|
{% if "wit" in actions and user == application.submitter %}
|
|
|
|
<p></p>
|
|
|
|
<a href='{% url application_set_status application.id 'wit' %}'>
|
2011-11-14 19:33:45 +01:00
|
|
|
<span class="button"><span class="icon revert">{%trans 'Withdraw' %}</span></span>
|
2011-07-31 10:46:29 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if perms.application.can_support_application and min_supporters > 0 %}
|
|
|
|
{% if "unsupport" in actions %}
|
|
|
|
<p></p>
|
|
|
|
<a href='{% url application_unsupport application.id %}'>
|
2011-11-14 19:33:45 +01:00
|
|
|
<span class="button"><span class="icon remove">{% trans 'Unsupport' %}</span></span>
|
2011-07-31 10:46:29 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if "support" in actions %}
|
|
|
|
<p></p>
|
|
|
|
<a href='{% url application_support application.id %}'>
|
2011-11-14 19:33:45 +01:00
|
|
|
<span class="button"><span class="icon add">{% trans 'Support' %}</span></span>
|
2011-07-31 10:46:29 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if min_supporters > 0 %}
|
|
|
|
<small>* {% trans "minimum required supporters" %}: {{ min_supporters }}</small>
|
|
|
|
{% endif %}
|
2011-09-03 18:11:42 +02:00
|
|
|
|
2011-07-31 10:46:29 +02:00
|
|
|
<br><br>
|
|
|
|
|
|
|
|
{% if perms.application.can_manage_application %}
|
|
|
|
<div class="box">
|
|
|
|
<h4><b>{% trans "Manage application" %}</b></h4>
|
|
|
|
|
2012-04-12 19:11:07 +02:00
|
|
|
{% if "pub" in actions or "per" in actions or "nop" in actions or "setnumber" in actions %}
|
2011-07-31 10:46:29 +02:00
|
|
|
<h4>{% trans "Formal validation" %}:</h4>
|
2012-04-12 19:11:07 +02:00
|
|
|
{% if "pub" in actions %}
|
|
|
|
<a href='{% url application_set_status application.id 'pub' %}'><span class="button"><span class="icon ok-blue">{% trans 'Publish' %}</span></span></a>
|
|
|
|
{% endif %}
|
2011-07-31 10:46:29 +02:00
|
|
|
{% if "per" in actions %}
|
2011-11-14 19:33:45 +01:00
|
|
|
<a href='{% url application_permit application.id %}'><span class="button"><span class="icon ok-blue">{% trans 'Permit' %}</span></span></a>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if "nop" in actions %}
|
2012-04-23 21:27:22 +02:00
|
|
|
<a href='{% url application_notpermit application.id %}'><span class="button"><span class="icon reject">{% trans 'Not permit (reject)' %}</span></span></a>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if "setnumber" in actions %}
|
2011-11-14 19:33:45 +01:00
|
|
|
<a href='{% url application_set_number application.id %}'><span class="button"><span class="icon number">{% trans 'Set Number' %}</span></span></a>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-02-03 23:12:28 +01:00
|
|
|
<h4></h4>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% if "acc" in actions or "rej" in actions %}
|
|
|
|
<h4>{% trans "Result after vote" %}:</h4>
|
|
|
|
{% if "acc" in actions %}
|
|
|
|
<a href='{% url application_set_status application.id 'acc' %}'>
|
2012-04-23 21:27:22 +02:00
|
|
|
<span class="button"><span class="icon done">{%trans 'Accepted' %}</span></span>
|
2011-07-31 10:46:29 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if "rej" in actions %}
|
|
|
|
<a href='{% url application_set_status application.id 'rej' %}'>
|
2011-11-14 19:33:45 +01:00
|
|
|
<span class="button"><span class="icon reject">{%trans 'Rejected' %}</span></span>
|
2011-07-31 10:46:29 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if "adj" in actions or "noc" in actions or "com" in actions or "wit" in actions %}
|
|
|
|
<h4>{% trans 'Result after debate' %}:</h4>
|
|
|
|
{% if "adj" in actions %}
|
2011-11-14 19:33:45 +01:00
|
|
|
<a href='{% url application_set_status application.id 'adj' %}'><span class="button">{% trans 'Adjourned' %}</span></a><br>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if "noc" in actions %}
|
2011-11-14 19:33:45 +01:00
|
|
|
<a href='{% url application_set_status application.id 'noc' %}'><span class="button">{% trans 'Not Concerned' %}</span></a><br>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if "com" in actions %}
|
2011-11-14 19:33:45 +01:00
|
|
|
<a href='{% url application_set_status application.id 'com' %}'><span class="button">{% trans 'Commited a bill' %}</span></a><br>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if "wit" in actions %}
|
2011-11-14 19:33:45 +01:00
|
|
|
<a href='{% url application_set_status application.id 'wit' %}'><span class="button">{% trans 'Withdrawed by Submitter' %}</span></a>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2012-04-20 22:13:47 +02:00
|
|
|
<p></p>
|
|
|
|
{% if perms.agenda.can_manage_agenda %}
|
|
|
|
<a href="{% url application_create_agenda application.id %}"><span class="button">{%trans 'New agenda item' %}</span></a>
|
|
|
|
{% endif %}
|
2011-07-31 10:46:29 +02:00
|
|
|
<p></p>
|
|
|
|
<hr>
|
|
|
|
<h4>{%trans "For Administration only:" %}</h4>
|
|
|
|
<a href='{% url application_reset application.id %}'>
|
2011-11-14 19:33:45 +01:00
|
|
|
<span class="button"><span class="icon undo">{%trans 'Reset' %}</span></span>
|
2011-07-31 10:46:29 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %} {# end perms.application.can_support_application #}
|
2012-04-15 16:13:26 +02:00
|
|
|
</div> <!-- end sidebar -->
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
|
|
|
2012-04-15 16:13:26 +02:00
|
|
|
<div id="main">
|
2011-09-06 23:23:05 +02:00
|
|
|
<h1>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% if application.number != None %}
|
2011-09-06 23:23:05 +02:00
|
|
|
{% trans "Application No." %} {{ application.number }}
|
2011-07-31 10:46:29 +02:00
|
|
|
{% else %}
|
2012-04-18 19:50:51 +02:00
|
|
|
{% trans "Application" %} <i>[{% trans "no number" %}]</i>
|
2011-09-06 23:23:05 +02:00
|
|
|
{% endif %}
|
|
|
|
</h1>
|
2011-09-06 10:41:06 +02:00
|
|
|
{% trans "Version" %} {{ version.aid }}
|
|
|
|
{% if application.public_version != application.last_version %}
|
|
|
|
{% if version == application.public_version %}
|
|
|
|
(<a href="{% url application_view_newest application.id %}">{% trans "Show newest Version" %}</a>)
|
|
|
|
{% else %}
|
|
|
|
(<a href="{% url application_view application.id %}">{% trans "Show permitted Version" %}</a>)
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<h2>{{ version.title }}</h2>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2011-09-06 10:41:06 +02:00
|
|
|
{{ version.text|linebreaks }}
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
|
|
<h2>{% trans "Reason" %}:</h2>
|
|
|
|
|
2011-09-06 10:41:06 +02:00
|
|
|
{% if version.reason %}
|
|
|
|
{{ version.reason|linebreaks }}
|
2011-07-31 10:46:29 +02:00
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if application.versions|length > 1 %}
|
2011-09-04 12:35:46 +02:00
|
|
|
<h2>{% trans "Version History" %}:</h2>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2011-09-04 19:07:45 +02:00
|
|
|
<table class="table valigntop" style="width: auto;">
|
2011-07-31 10:46:29 +02:00
|
|
|
<tr>
|
2011-09-04 19:07:45 +02:00
|
|
|
<th></th>
|
|
|
|
<th>{% trans "Version" %}</th>
|
2011-07-31 10:46:29 +02:00
|
|
|
<th>{% trans "Time" %}</th>
|
|
|
|
<th>{% trans "Title" %}</th>
|
|
|
|
<th>{% trans "Text" %}</th>
|
|
|
|
|
|
|
|
<th>{% trans "Reason" %}</th>
|
|
|
|
</tr>
|
|
|
|
{% for revision in application.versions %}
|
2011-09-04 10:21:06 +02:00
|
|
|
<tr class="{% cycle 'odd' '' %}">
|
2011-09-04 19:07:45 +02:00
|
|
|
<td style="white-space:nowrap;">
|
2011-09-04 10:21:06 +02:00
|
|
|
{% if application.status != "pub" %}
|
2011-09-03 18:11:42 +02:00
|
|
|
{% if revision == application.permitted %}
|
2012-04-23 21:27:22 +02:00
|
|
|
<img title="{%trans 'Version accepted' %}" src="{% static 'images/icons/accept.png' %}">
|
2011-09-04 10:21:06 +02:00
|
|
|
{% else %}
|
|
|
|
{% if perms.application.can_manage_application %}
|
2012-04-23 21:27:22 +02:00
|
|
|
<a href="{% url application_version_permit revision.id %}"><img title="{%trans 'Accept Version' %}" src="{% static 'images/icons/accept-grey.png' %}"></a>
|
2011-09-04 10:21:06 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if not revision.rejected and revision.id > application.permitted.id and perms.application.can_manage_application %}
|
2012-04-23 21:27:22 +02:00
|
|
|
<a href="{% url application_version_reject revision.id %}"><img title="{%trans 'Reject Version' %}" src="{% static 'images/icons/reject-grey.png' %}"></a>
|
2011-09-04 10:21:06 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if revision.rejected %}
|
2012-04-23 21:27:22 +02:00
|
|
|
<img title="{%trans 'Version rejected' %}" src="{% static 'images/icons/reject.png' %}">
|
2011-09-04 10:21:06 +02:00
|
|
|
{% endif %}
|
2011-09-03 18:11:42 +02:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2011-09-04 19:07:45 +02:00
|
|
|
<td>{{ revision.aid }}</td>
|
2011-07-31 10:46:29 +02:00
|
|
|
<td><i>{{ revision.time }}</i></td>
|
|
|
|
<td>
|
|
|
|
{% ifchanged %}
|
|
|
|
<b>{{ revision.title }}</b>
|
|
|
|
{% else %}
|
|
|
|
<i>[{% trans "unchanged" %}]</i>
|
|
|
|
{% endifchanged %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% ifchanged %}
|
|
|
|
{{ revision.text|linebreaks }}
|
|
|
|
{% else %}
|
|
|
|
<i>[{% trans "unchanged" %}]</i>
|
|
|
|
{% endifchanged %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% ifchanged %}
|
|
|
|
{{ revision.reason|linebreaks }}
|
|
|
|
{% else %}
|
|
|
|
<i>[{% trans "unchanged" %}]</i>
|
|
|
|
{% endifchanged %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if perms.application.can_manage_application %}
|
|
|
|
<h2>{% trans "Log" %}:</h2>
|
|
|
|
{{ application.log|linebreaks }}
|
|
|
|
{% endif %}
|
2012-04-15 16:13:26 +02:00
|
|
|
</div>
|
2011-07-31 10:46:29 +02:00
|
|
|
{% endblock %}
|