OpenSlides/openslides/agenda/templates/agenda/overview.html

129 lines
5.8 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2012-02-09 16:57:10 +01:00
{% load i18n %}
{% load mptt_tags %}
{% load staticfiles %}
2012-02-09 16:57:10 +01:00
{% block title %}{% trans "Agenda" %} {{ block.super }}{% endblock %}
2011-07-31 10:46:29 +02:00
{% block header %}
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/agenda.css' %}" />
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/agenda_sort.css' %}" />
{% endblock %}
{% block javascript %}
<script type="text/javascript" src="{% static 'javascript/agenda.js' %}"></script>
<script type="text/javascript" src="{% static 'javascript/jquery.cookie.js' %}"></script>
2011-07-31 10:46:29 +02:00
{% if perms.agenda.can_manage_agenda %}
<script type="text/javascript" src="{% static 'javascript/jquery.once.js' %}"></script>
<script type="text/javascript" src="{% static 'javascript/jquery-ui.custom.min.js' %}"></script>
<script type="text/javascript" src="{% static 'javascript/jquery.tmpl.js' %}"></script>
<script type="text/javascript" src="{% static 'javascript/jquery.mjs.nestedSortable.js' %}"></script>
2011-07-31 10:46:29 +02:00
{% endif %}
<script type="text/javascript" src="{% static 'javascript/agenda_sort.js' %}"></script>
2011-07-31 10:46:29 +02:00
{% endblock %}
{% block content %}
2012-06-23 10:27:58 +02:00
<form action="" method="post">{% csrf_token %}
{% if perms.agenda.can_manage_agenda %}
<div id="changed-order-message" style="display:none" class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<p>{% trans "Do you want to save the changed order of agenda items?" %}</p>
<p>
<button class="btn" type="submit">{% trans 'Yes' %}</button>
2013-01-05 15:29:57 +01:00
<a href="{% url 'item_overview' %}" class="btn">{% trans 'No' %}</a>
</p>
</div>
{% endif %}
<h1>{% trans "Agenda" %}
2013-02-11 23:01:48 +01:00
<small class="pull-right">
{% if perms.agenda.can_manage_agenda %}
<a href="{% url 'item_new' %}" class="btn btn-mini btn-primary" rel="tooltip" data-original-title="{% trans 'New item' %}"><i class="icon-plus icon-white"></i> {% trans "New" %}</a>
2013-02-11 23:01:48 +01:00
{% endif %}
2013-05-28 20:49:22 +02:00
<a href="{% url 'print_agenda' %}" class="btn btn-mini" rel="tooltip" data-original-title="{% trans 'Print agenda as PDF' %}" target="_blank"><i class="icon-print"></i> PDF</a>
2013-02-11 23:01:48 +01:00
</small>
</h1>
{% if perms.agenda.can_see_orga_items %}
{% if start and end %}
<table id="agendatime" class="table table-bordered">
<tr>
<td>{% trans "Start of event" %}:</td>
<td>{{ start|date:"DATETIME_FORMAT" }}</td>
</tr>
<tr>
<td>{% trans "Estimated end" %}:</td>
<td>{{ end|date:"DATETIME_FORMAT" }}</td>
</tr>
</table>
{% else %}
<div style="float: right;">
<a href="{% url 'config_agenda' %}" class="btn btn-mini">{% trans 'Set start time of event' %}</a>
</div>
{% endif %}
{% endif %}
<label class="checkbox">
<input type="checkbox" id="hide_closed_items"> {% trans "Hide closed items" %}
</label>
<small><i>{{ items|length }}
{% blocktrans count counter=items|length %}item{% plural %}items{% endblocktrans %}<span id="hiddencount"></span>
</i></small>
<table id="menu-overview" class="table table-striped table-bordered">
<tr>
<th class="title">{% trans "Item" %}</th>
{% if perms.agenda.can_manage_agenda %}
<th class="optional">{% trans "Comment" %}</th>
{% endif %}
{% if perms.agenda.can_see_orga_items %}
<th class="duration">{% trans "Duration" %}</th>
2013-01-29 14:28:42 +01:00
{% endif %}
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
<th class="manage">{% trans "Actions" %}</th>
{% endif %}
</tr>
2012-07-04 12:50:33 +02:00
<tr class="topline{% if active_sid == 'agenda' %} activeline{% endif %}">
<td class="title">
{% trans "Agenda" %}
</td>
{% if perms.agenda.can_manage_agenda %}
<td class="optional"></td>
{% endif %}
{% if perms.agenda.can_see_orga_items %}
<td class="duration">{{ duration }} h</td>
{% endif %}
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
<td class="manage">
2012-07-04 12:50:33 +02:00
{% if perms.projector.can_manage_projector %}
<span>
<a href="{% url 'projector_activate_slide' 'agenda' %}"
class="activate_link btn {% if active_sid == 'agenda' %}btn-primary{% endif %} btn-mini"
rel="tooltip" data-original-title="{% trans 'Show agenda' %}">
<i class="icon-facetime-video {% if active_sid == 'agenda' %}icon-white{% endif %}"></i>
</a>
</span>
2012-07-04 12:50:33 +02:00
{% endif %}
</td>
{% endif %}
</tr>
</table>
2012-07-04 12:50:33 +02:00
{% if items %}
<ol class="agenda_list {% if perms.agenda.can_manage_agenda %}sortable{% endif %}">
{% recursetree items %}
<li class="draggable">
{% include "agenda/item_row.html" %}
{% if not node.is_leaf_node %}
<ol>
{{ children }}
</ol>
{% endif %}
</li>
{% endrecursetree %}
</ol>
{% else %}
<div class="overview_no_items">{% trans "No items available." %}</div>
{% endif %}
</form>
2011-07-31 10:46:29 +02:00
{% endblock %}