Automated merge with ssh://openslides.org/openslides

This commit is contained in:
Emanuel Schuetze 2011-09-03 12:16:52 +02:00
commit a9fd09951b
2 changed files with 58 additions and 56 deletions

View File

@ -41,29 +41,61 @@
{% if not forloop.last %}<br>{% endif %} {% if not forloop.last %}<br>{% endif %}
{% endfor %} {% endfor %}
<h4>{% trans "Vote results" %}:</h4>
{% with application.poll_set.all as polls %} {% with application.poll_set.all as polls %}
{% if poll|length > 0 %} {% if polls|length == 0 %}
<h4>{% trans "Poll result" %}:</h4> {% if perms.application.can_manage_application %}
{% for poll in polls %} {% if "genpoll" in actions %}
{% if poll.has_vote %} <a href='{% url application_gen_poll application.id %}'>
{% if polls|length > 1 %} <button><span class="icon poll">{%trans 'New vote' %}</span></button>
{{forloop.counter}}. {% trans "Poll" %}:<br>&nbsp;&nbsp;&nbsp; </a>
{% endif %}
{% for option in poll.options %}
{% trans "Yes" %}: {{ option.yes }} |
{% trans "No" %}: {{ option.no }} |
{% trans "Abstention" %}: {{ option.undesided }}
{% endfor %}
<br>
{% else %} {% else %}
{% if polls|length == 1 %} -
<i>{% trans "Not (yet) available." %}</i> {% endif %}
{% else %}
-
{% endif %} {% endif %}
{% endif %} {% endif %}
<ul class="results">
{% for poll in polls %}
<li>
{% if perms.application.can_manage_application %}
{% if poll.has_vote %}<a href="{% url application_poll_view poll.id %}">{% endif %}
{% endif %}
<b>{{ forloop.counter }}. {% trans "Vote" %}:</b>
{% if perms.application.can_manage_application %}
{% if poll.has_vote %}</a>{% endif %}
<a href="{% url application_poll_delete poll.id %}"><img src="/static/images/icons/edit-delete.png" title="{% trans 'Delete Vote' %}"></a>
{% endif %}
<br>
{% if poll.has_vote %}
{% for option in poll.options %}
{% trans "Yes" %}: {{ option.yes }}<br>
{% trans "No" %}: {{ option.no }}<br>
{% trans "Abstention" %}: {{ option.undesided }}<br>
{% trans "Invalid" %}: {{ poll.votesinvalid }}
{% endfor %} {% endfor %}
{% if perms.application.can_manage_application %}
{% if forloop.last %}
{% if "genpoll" in actions %}
<br>
<a href='{% url application_gen_poll application.id %}'>
<button><span class="icon poll">{%trans 'New vote' %}</span></button>
</a>
{% endif %} {% endif %}
{% endif %}
{% endif %}
{% else %}
{% if perms.application.can_manage_application %}
<a href="{% url application_poll_view poll.id %}">{% trans "Enter vote results!" %}</a>
{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
{% endwith %} {% endwith %}
<h4>{% trans "Creation Time" %}:</h4> <h4>{% trans "Creation Time" %}:</h4>
{{ application.creation_time }} {{ application.creation_time }}
@ -126,41 +158,6 @@
</a> </a>
{% endif %} {% endif %}
{% if application.status != "pub" %}
<h4></h4>
{% for poll in application.poll_set.all %}
{% if poll.has_vote %}<a href="{% url application_poll_view poll.id %}">{% endif %}
{{ forloop.counter }}. {% trans "Poll" %}:
{% if poll.has_vote %}</a>{% endif %}
<a href="{% url application_poll_delete poll.id %}"><img src="/static/images/icons/edit-delete.png" title="{% trans 'Delete Poll' %}"></a>
<br>&nbsp;&nbsp;&nbsp;
{% if poll.has_vote %}
{% for option in poll.options %}
{% trans "Yes" %}: {{ option.yes }} |
{% trans "No" %}: {{ option.no }} |
{% trans "Abstention" %}: {{ option.undesided }}
{% endfor %}
{% if forloop.last %}
{% if "genpoll" in actions %}
<br>
<a href='{% url application_gen_poll application.id %}'>
<button><span class="icon poll">{%trans 'New poll' %}</span></button>
</a>
{% endif %}
{% endif %}
{% else %}
<a href="{% url application_poll_view poll.id %}">{% trans "Enter vote results!" %}</a>
{% endif %}
{% if not forloop.last %}<br>{% endif %}
{% empty %}
{% if "genpoll" in actions %}
<a href='{% url application_gen_poll application.id %}'>
<button><span class="icon poll">{%trans 'New poll' %}</span></button>
</a>
{% endif %}
{% endfor %}
{% endif %}
{% if "acc" in actions or "rej" in actions %} {% if "acc" in actions or "rej" in actions %}
<h4>{% trans "Result after vote" %}:</h4> <h4>{% trans "Result after vote" %}:</h4>
{% if "acc" in actions %} {% if "acc" in actions %}

View File

@ -441,7 +441,12 @@ ol {
margin:0; margin:0;
padding-left:20px; padding-left:20px;
} }
ul.results {
list-style:square outside none;
-moz-padding-start:0px;
margin-left: 20px;
padding:0;
}
/* Fieldsets */ /* Fieldsets */
fieldset { fieldset {