{% extends "base.html" %} {% load tags %} {% load i18n %} {% load staticfiles %} {% load humanize %} {% block title %}{% trans "Motion" %} {{ motion.identifier|default:'' }} – {{ block.super }}{% endblock %} {% block header %} {{ block.super }} {% endblock %} {% block content %}

{{ title }}
{% if motion.identifier %} {% trans "Motion" %} {{ motion.identifier|default:'' }}, {% else %} [{% trans "no number" %}], {% endif %} {# TODO: show only for workflow with versioning #} {% trans "Version" %} {{ version.version_number }} {% trans "Back to overview" %} PDF {% if perms.projector.can_manage_projector %} {% endif %} {% if perms.motion.can_manage_motion or perms.agenda.can_manage_agenda or allowed_actions.edit %}
{% trans 'More actions' %}
{% endif %}

{# TODO: show only for workflow with versioning #} {% with last_version=motion.get_last_version active_version=motion.get_active_version %} {% if version.version_number != last_version.version_number %} {% trans "This is not the newest version." %} {% trans "Go to the newest version" %} (# {{ last_version.version_number }}) {% endif %} {% if version.version_number != active_version.version_number %} {% trans "This version is not authorized." %} {% trans "Go to the authorized version" %} (# {{ active_version.version_number }}) {% endif %} {% endwith %}

{% trans "Motion text" %}:

{{ text|safe }}

{% trans "Reason" %}:

{{ reason|safe|default:'–' }}
{% with versions=motion.versions.all %} {% if versions|length > 1 %} {% for version in versions %} {% if forloop.first %}

{% trans "Version history" %}:

{% endif %} {% if forloop.last %}
# {% trans "Time" %} {% trans "Actions" %}
{% if version == motion.active_version %} {% else %} {% if perms.motion.can_manage_motion %} {% endif %} {% endif %} {{ version.version_number }} {{ version.creation_time }}
{% endif %} {% endfor %} {% endif %} {% endwith %} {% if perms.motion.can_manage_motion %}

    {% for message in motion.log_messages.all %}
  • {{ message }}
  • {% endfor %}

{% endif %}
{% trans "Submitter" %}:
{% for submitter in motion.submitter.all %} {{ submitter }}{% if not forloop.last %}, {% endif %} {% endfor %} {% if 'motion_min_supporters'|get_config > 0 %}
{% trans "Supporters" %}: *
{% if not motion.supporters %} - {% else %}
    {% for supporter in motion.supporter.all %}
  1. {{ supporter }}
  2. {% endfor %}
{% endif %} {% endif %}
{% trans "Status" %}:
{% trans motion.state.name %}
{% trans "Vote results" %}:
{% with motion.polls.all as polls %}
    {% for poll in polls %} {% if perms.motion.can_manage_motion or poll.has_votes %}
  • {{ poll.poll_number|ordinal|safe }} {% trans "vote" %} {% if perms.motion.can_manage_motion %} {% endif %}
    {% if poll.has_votes %} {% with poll.get_options.0 as option %} {{ option.Yes }}
    {{ option.No }}
    {{ option.Abstain }}
    {{ poll.print_votesinvalid }}
    {{ poll.print_votescast }}
    {% endwith %} {% else %} {% if perms.motion.can_manage_motion %} {% trans 'No results' %} {% endif %} {% endif %}
  • {% endif %} {% empty %} {% endfor %}
{% if allowed_actions.create_poll %} {% trans 'New vote' %} {% endif %} {% endwith %}
{% trans "Category" %}:
{% if motion.category %} {{ motion.category }} {% else %} – {% endif %}
{% with versions=motion.versions.all %} {% if versions|length > 1 %} {% trans "Last changes (of this version)" %}: {% else %} {% trans "Last changes" %}: {% endif %} {% endwith %}
{{ motion.use_version.creation_time }} {# TODO: Check this button #} {% if allowed_actions.wit and user in motion.submitters %}

{% trans 'Withdraw motion' %} {% endif %} {% if perms.motion.can_support_motion and 'motion_min_supporters'|get_config > 0 %} {% if allowed_actions.unsupport %}

{% trans 'Unsupport' %} {% endif %} {% if allowed_actions.support %}

{% trans 'Support' %} {% endif %} {% endif %} {% if 'motion_min_supporters'|get_config > 0 %}

* {% trans "minimum required supporters" %}: {{ 'motion_min_supporters'|get_config }} {% endif %}
{% if perms.motion.can_manage_motion %}

{% trans "Manage motion" %}

{% for state in motion.state.next_states.all %} {% trans state.get_action_word %} {% endfor %}


{% trans "For administration only:" %}
{% trans 'Reset state' %}
{% endif %}
{% endblock %}