{% extends "layout.html" %} {% from "macros.html" import render_table, render_form, render_likes %} {% block title %}Protokoll{% endblock %} {% set logged_in = check_login() %} {% set user = current_user() %} {% set has_public_type_view_right = protocol.protocoltype.has_public_view_right(user) %} {% set has_public_view_right = protocol.has_public_view_right(user) %} {% set has_private_view_right = protocol.has_private_view_right(user) %} {% set has_modify_right = protocol.has_modify_right(user) %} {% set has_admin_right = protocol.has_admin_right(user) %} {% block content %}
{% if has_modify_right %}
{% if has_modify_right %} {% if config.ETHERPAD_ACTIVE and not protocol.public %} Aus Etherpad {% endif %} {% if protocol.source is not none %} Quelltext {% endif %} {% if not protocol.public or has_admin_right %} Editieren {% endif %} {% if not protocol.public %} {% if config.ETHERPAD_ACTIVE %} Etherpad {% endif %} {% endif %} {% if not protocol.is_done() %} Vorlage {% if config.MAIL_ACTIVE %} Einladung versenden {% endif %} {% else %} {% if config.MAIL_ACTIVE %} Intern versenden {% if protocol.public %} Öffentlich versenden {% endif %} {% endif %} {% if not protocol.public %} Veröffentlichen {% endif %} {% endif %} Typ {% if protocol.has_compiled_document() %} Download {% endif %} {% if has_admin_right %} Neu kompilieren Löschen {% endif %} {% endif %}
{% endif %}
{% if protocol.is_done() %}

Protokoll: {{protocol.protocoltype.name}} {% if protocol.date is not none %}vom {{protocol.date|datify}}{% endif %} {{render_likes(protocol.likes, protocol_id=protocol.id)}}

{% else %}

{{protocol.protocoltype.name}} {% if protocol.date is not none %}am {{protocol.date|datify}}{% endif %} {{render_likes(protocol.likes, protocol_id=protocol.id)}}

{% endif %} {% if protocol.is_done() %} {% if protocol.date is not none %}

Datum: {{protocol.date|datify_long}}

{% endif %} {% if protocol.start_time is not none and protocol.end_time is not none %}

Zeit: von {{protocol.start_time|timify}} bis {{protocol.end_time|timify}}

{% endif %} {% if has_public_view_right %} {% for meta in protocol.metas %} {% if not meta.internal or has_private_view_right %}

{{meta.name}}: {{meta.value}}

{% endif %} {% endfor %} {% endif %} {% else %} {% if protocol.date is not none %}

Geplant: {{protocol.date|datify_long}}, {{protocol.get_time()|timify}}

{% endif %} {% for meta in protocol.metas %}

{{meta.name}}: {{meta.value}}

{% endfor %} {% endif %}

Tagesordnung{% if has_modify_right and not protocol.has_nonplanned_tops() %} Top hinzufügen{% endif %}

{% include "protocol-tops-include.html" %} {% if protocol.is_done() %}

Beschlüsse

    {% if protocol.decisions|length > 0 %} {% if has_public_view_right %} {% for decision in protocol.decisions %}
  • {{decision.content}} {% if config.PRINTING_ACTIVE and has_private_view_right and decision.document is not none %} Drucken {% endif %} {{render_likes(decision.likes, decision_id=decision.id)}}
  • {% endfor %} {% else %} {% if protocol.public %}
  • Protokoll und Beschlüsse sind in einem eingeschränkten Netzwerk sichtbar.
  • {% else %}
  • Das Protokoll ist noch nicht veröffentlicht.
  • {% endif %} {% endif %} {% else %}
  • Keine Beschlüsse
  • {% endif %}
{% endif %}
{% if protocol.is_done() and has_public_view_right and logged_in %}

Todos dieser Sitzung Aktuelle Todos Neu

    {% if protocol.get_originating_todos()|length > 0 %} {% for todo in protocol.get_originating_todos() %}
  • {{todo.render_html()|safe}} {{render_likes(todo.likes, todo_id=todo.id)}}
  • {% endfor %} {% else %}
  • Keine Todos
  • {% endif %}
{% endif %} {% if has_modify_right %} {% if protocol.errors|length > 0 %} {{render_table(errors_table)}} {% endif %} {% endif %} {% if protocol.documents|length > 0 and has_public_view_right %} {{render_table(documents_table)}} {% else %} {% if has_modify_right %}

Hochladen

{% endif %} {% endif %} {% if has_modify_right %} {{render_form(source_upload_form, action_url=url_for("upload_source_to_known_protocol", protocol_id=protocol.id, next=url_for("show_protocol", protocol_id=protocol.id)), action_text="Hochladen", enctype="multipart/form-data")}} {{render_form(document_upload_form, action_url=url_for("upload_document", protocol_id=protocol.id, next=url_for("show_protocol", protocol_id=protocol.id)), action_text="Hochladen", enctype="multipart/form-data")}} {% endif %}
{% if content_html is not none and has_public_view_right %}

Protokollinhalt

{{content_html|safe}}
{% endif %}
{% endblock %}