diff --git a/openslides/agenda/templates/beamer.html b/openslides/agenda/templates/beamer.html new file mode 100644 index 000000000..18fdc4bfb --- /dev/null +++ b/openslides/agenda/templates/beamer.html @@ -0,0 +1,38 @@ + + + +{% load tags %} + + + + + + {% block title %} {% get_config 'event_name' %} {% endblock %} + {% block header %} + {% endblock %} + + + +
+ + + +
+ {% now "H:i" %} +
+ +
0:00
+ +
+ {% block content %} + {% endblock %} +
+ + diff --git a/openslides/application/templates/projector/ItemApplication.html b/openslides/application/templates/projector/ItemApplication.html new file mode 100644 index 000000000..8bbde4567 --- /dev/null +++ b/openslides/application/templates/projector/ItemApplication.html @@ -0,0 +1,60 @@ +{% extends "beamer.html" %} +{% load tags %} +{% block title %}{{ block.super }} - {{ item.title }}{% endblock %} +{% block content %} + + + +

{% trans "Application No." %} {{ item.application.number }}

+ {{ item.title }} +

+

{{ item.application.public_version.text|linebreaks }}
+ {% if item.application.public_version.reason %} +
+

{% trans "Reason" %}:

+ {{ item.application.public_version.reason|linebreaks }}
+ {% endif %} +

+{% endblock %} diff --git a/openslides/application/templates/projector/ItemAssignment.html b/openslides/application/templates/projector/ItemAssignment.html new file mode 100644 index 000000000..e0b175128 --- /dev/null +++ b/openslides/application/templates/projector/ItemAssignment.html @@ -0,0 +1,105 @@ +{% extends "beamer.html" %} +{% block title %}{{ block.super }} - #{{ item.title }}{% endblock %} +{% block header %} + + +{% endblock %} +{% block content %} +

{% trans "Election" %}: {{ item.assignment }}

+ + {% if item.assignment.status != "fin" %} + + {% endif %} + + {% if not item.assignment.profile.exists %} +

+

{{ item.assignment.description|linebreaks }}
+

+ {% endif %} + + {% if item.assignment.profile.exists and item.assignment.status != "fin" %} +

{% trans "Candidates" %}

+
    + {% for profile in item.assignment.profile.all|dictsort:"user.first_name" %} +
  1. {{ profile }}
  2. + {% empty %} +
  3. + {% trans "No candidates available." %} +
  4. + {% endfor %} +
+


+ {% endif %} + + {% with polls|first as firstpoll %} + {% if polls.count > 0 and firstpoll.published %} +

{% trans "Election results" %}

+ + + + {% for poll in item.assignment.poll_set.all %} + {% if poll.published %} + + {% endif %} + {% endfor %} + + {% for vote in votes %} + + {% with vote|first as candidate %} + + {% for v in vote|last %} + + {% endfor %} + {% endwith %} + + {% empty %} + + + + {% endfor %} + + + {% for p in polls %} + {% if p.published %} + + {% endif %} + {% endfor %} + + + + {% for p in polls %} + {% if p.published %} + + {% endif %} + {% endfor %} + +
{% trans "Candidates" %}{{forloop.counter}}. {% trans "ballot" %}
+ {% if candidate.1 %} + + {% endif %} + {{ candidate.0 }} + {% if v %} + {% if v|length == 3 %} + {% if v.0 %}{{ v.0 }}{% else %}∅{% endif %}
+ {% if v.1 %}{{ v.1 }}{% else %}∅{% endif %}
+ {% if v.2 %}{{ v.2 }}{% else %}∅{% endif %}
+ {% else %} + {% if v != "-" %}{% endif %} + {{ v }} + {% endif %} + {% endif %} +
{% trans "No ballots available." %}
{%trans 'Invalid votes' %} {{ p.votesinvalidf }}
{%trans 'Votes cast' %} {{ p.votescastf }}
+ {% endif %} + {% endwith %} + +
+{% endblock %} diff --git a/openslides/application/templates/projector/ItemPoll.html b/openslides/application/templates/projector/ItemPoll.html new file mode 100644 index 000000000..fe26c9197 --- /dev/null +++ b/openslides/application/templates/projector/ItemPoll.html @@ -0,0 +1,19 @@ +{% extends "beamer.html" %} +{% block title %}{{ block.super }} - {{ item.title }}{% endblock %} +{% block content %} + {%trans "Poll about" %}: +

{{ item.title }}

+ + + {% for option in item.poll.get_options %} + + + + {% if item.poll.optiondecision %} + + + {% endif %} + + {% endfor %} +
{{ option }}{{ option.voteyes }}{{ option.voteno }}{{ option.voteundesided }}
+{% endblock %} diff --git a/openslides/application/templates/projector/ItemText.html b/openslides/application/templates/projector/ItemText.html new file mode 100644 index 000000000..36626b53d --- /dev/null +++ b/openslides/application/templates/projector/ItemText.html @@ -0,0 +1,10 @@ +{% extends "beamer.html" %} +{% block title %}{{ block.super }} - {{ item.title }}{% endblock %} +{% block content %} + {% if item.text %} +

{{ item.title }}

+ {{ item.text|safe|linebreaks }} + {% else %} +
{{ item.title }}
+ {% endif %} +{% endblock %} diff --git a/openslides/application/templates/projector/overview.html b/openslides/application/templates/projector/overview.html new file mode 100644 index 000000000..1a5b240a4 --- /dev/null +++ b/openslides/application/templates/projector/overview.html @@ -0,0 +1,17 @@ +{% extends "beamer.html" %} +{% block title %}{{ block.super }} - + {% if title %} {{ title }} {% else %} {%trans "Agenda" %} {% endif %} +{% endblock %} + +{% block content %} + {% if title %} +

{{ title }}

+ {% else %} +

{%trans "Agenda" %}

+ {% endif %} + +{% endblock %}