diff --git a/openslides/assignment/templates/assignment/overview.html b/openslides/assignment/templates/assignment/overview.html index 282b1b2b2..4e58d6a67 100644 --- a/openslides/assignment/templates/assignment/overview.html +++ b/openslides/assignment/templates/assignment/overview.html @@ -1,9 +1,18 @@ {% extends "base.html" %} {% load i18n %} +{% load staticfiles %} {% block title %}{{ block.super }} – {% trans "Elections" %}{% endblock %} +{% block header %} + +{% endblock %} + +{% block javascript %} + + +{% endblock %} {% block content %}
{% trans "Election" %} | -{% trans "Candidates" %} | -{% trans "Status" %} | +{% trans "Election" %} | +{% trans "Candidates" %} | +{% trans "Status" %} | {% trans "Actions" %} |
---|---|---|---|---|---|---|
{{ assignment }} | -- {% blocktrans with posts=assignment.posts context "Number of searched candidates for an election"%}posts: {{ posts }}{% endblocktrans %} + | + + {% trans "Posts" context "Number of searched candidates for an election" %}: + {{ assignment.posts }} + {% if assignment.status != 'fin' %} - | {% blocktrans with candidates=assignment.get_participants|length %}candidates: {{ candidates }}{% endblocktrans %} + | {% trans "Candidates" %}: {{ assignment.get_participants|length }} {% endif %} - | {% blocktrans with elected=assignment.elected|length %}elected: {{ elected }}{% endblocktrans %} + + | {% trans "Elected" %}: {{ assignment.elected|length }} | -{{ assignment.get_status_display }} | +{{ assignment.get_status_display }} | {% if perms.projector.can_manage_projector %} @@ -69,10 +71,6 @@ | |
{% trans "No assignments available." %} | -
{% trans "Version" %} {{ version_rev1.version_number }} - {% trans "created" %}: {{ version_rev1.creation_time }} + {% trans "Last changes" %}: {{ version_rev1.creation_time }} {{ version_rev1.title }} |
{% trans "Version" %} {{ version_rev2.version_number }} - {% trans "created" %}: {{ version_rev1.creation_time }} + {% trans "Last changes" %}: {{ version_rev1.creation_time }} {{ version_rev2.title }} |
{% trans "#" %} | -{% trans "Motion title" %} | +{% trans "#" %} | +{% trans "Motion title" %} | {% trans 'Category' %} | - {% if min_supporters > 0 %} -{% trans "Number of supporters" %} | +{% trans "Status" %} | +{% trans "Submitter" %} | + {% if 'motion_min_supporters'|get_config > 0 %} +{% trans "Supporters" %} | {% endif %} -{% trans "Status" %} | -{% trans "Submitter" %} | -{% trans "Creation Time" %} | +{% trans "Last changes" %} | {% trans "Actions" %} |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ motion.identifier|default:'' }} | +{{ motion.identifier|default:'' }} | {{ motion.title }} | -{% if motion.category %}{{ motion.category }}{% else %}{% trans 'No category' %}{% endif %} | - {% if min_supporters > 0 %} -{# motion.count_supporters #} | - {% endif %} -{% trans motion.state.name %} | +{% if motion.category %}{{ motion.category }}{% else %}-{% endif %} | +{% trans motion.state.name %} | {% for submitter in motion.submitter.all %} {{ submitter.person }}{% if not forloop.last %}, {% endif %} {% endfor %} | - {# TODO: user creation_time of _first_ version #} -{{ motion.version.creation_time }} | + {% if 'motion_min_supporters'|get_config > 0 %} + {% with supporters=motion.supporters|length %} ++ {% if supporters >= 'motion_min_supporters'|get_config %} + {{ supporters }} + {% endif %} + {% if supporters < 'motion_min_supporters'|get_config %} + {{ supporters }} + {% endif %} + | + {% endwith %} + {% endif %} +{{ motion.last_version.creation_time }} | {% if perms.projector.can_manage_projector %} @@ -103,10 +92,6 @@ | |
{% trans "No motions available." %} | -
{% trans "Present" %} | @@ -125,10 +125,6 @@ {% endif %}||||||||
---|---|---|---|---|---|---|---|---|
{% trans "No participants available." %} | -