2012-09-05 00:20:28 +02:00
|
|
|
|
{% extends "base.html" %}
|
2012-02-09 16:57:10 +01:00
|
|
|
|
|
|
|
|
|
{% load i18n %}
|
2012-02-20 00:14:54 +01:00
|
|
|
|
{% load mptt_tags %}
|
2012-04-14 14:51:56 +02:00
|
|
|
|
{% load staticfiles %}
|
2012-02-09 16:57:10 +01:00
|
|
|
|
|
2013-06-14 20:24:48 +02:00
|
|
|
|
{% block title %}{% trans "Agenda" %} – {{ block.super }}{% endblock %}
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
|
|
|
|
{% block header %}
|
2012-04-14 14:51:56 +02:00
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/agenda.css' %}" />
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<link type="text/css" rel="stylesheet" media="all" href="{% static 'styles/agenda_sort.css' %}" />
|
2012-09-05 00:20:28 +02:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block javascript %}
|
2012-07-04 13:12:07 +02:00
|
|
|
|
<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 %}
|
2012-04-14 14:51:56 +02:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.once.js' %}"></script>
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery-ui.custom.min.js' %}"></script>
|
2012-04-14 14:51:56 +02:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.tmpl.js' %}"></script>
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<script type="text/javascript" src="{% static 'javascript/jquery.mjs.nestedSortable.js' %}"></script>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
{% endif %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<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 %}
|
2012-04-27 21:53:50 +02:00
|
|
|
|
{% if perms.agenda.can_manage_agenda %}
|
2012-09-05 00:20:28 +02:00
|
|
|
|
<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>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
</p>
|
2012-04-27 21:53:50 +02:00
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2013-01-31 20:37:55 +01:00
|
|
|
|
<h1>{% trans "Agenda" %}
|
2013-02-11 23:01:48 +01:00
|
|
|
|
<small class="pull-right">
|
|
|
|
|
{% if perms.agenda.can_manage_agenda %}
|
2013-03-09 14:17:30 +01:00
|
|
|
|
<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>
|
2013-03-16 17:02:14 +01:00
|
|
|
|
|
2013-01-31 20:37:55 +01:00
|
|
|
|
{% if perms.agenda.can_see_orga_items %}
|
2013-06-03 21:54:52 +02:00
|
|
|
|
{% 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 %}
|
2013-02-05 16:36:57 +01:00
|
|
|
|
{% endif %}
|
2012-09-05 00:20:28 +02:00
|
|
|
|
<label class="checkbox">
|
2013-01-08 23:05:35 +01:00
|
|
|
|
<input type="checkbox" id="hide_closed_items"> {% trans "Hide closed items" %}
|
2012-09-05 00:20:28 +02:00
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
<small><i>{{ items|length }}
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% blocktrans count counter=items|length %}item{% plural %}items{% endblocktrans %}<span id="hiddencount"></span>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
</i></small>
|
|
|
|
|
<table id="menu-overview" class="table table-striped table-bordered">
|
2012-06-30 10:39:58 +02:00
|
|
|
|
<tr>
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<th class="title">{% trans "Item" %}</th>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% if perms.agenda.can_manage_agenda %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<th class="optional">{% trans "Comment" %}</th>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% endif %}
|
2013-01-31 20:37:55 +01:00
|
|
|
|
{% if perms.agenda.can_see_orga_items %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<th class="duration">{% trans "Duration" %}</th>
|
2013-01-29 14:28:42 +01:00
|
|
|
|
{% endif %}
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<th class="manage">{% trans "Actions" %}</th>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
</tr>
|
2012-07-04 12:50:33 +02:00
|
|
|
|
<tr class="topline{% if active_sid == 'agenda' %} activeline{% endif %}">
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<td class="title">
|
2013-01-08 23:05:35 +01:00
|
|
|
|
{% trans "Agenda" %}
|
2012-06-30 10:39:58 +02:00
|
|
|
|
</td>
|
|
|
|
|
{% if perms.agenda.can_manage_agenda %}
|
2013-01-08 23:05:35 +01:00
|
|
|
|
<td class="optional"></td>
|
2013-01-31 20:37:55 +01:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% if perms.agenda.can_see_orga_items %}
|
2013-06-03 22:50:58 +02:00
|
|
|
|
<td class="duration">{{ duration }} h</td>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% if perms.agenda.can_manage_agenda or perms.projector.can_manage_projector %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<td class="manage">
|
2012-07-04 12:50:33 +02:00
|
|
|
|
{% if perms.projector.can_manage_projector %}
|
|
|
|
|
<span>
|
2013-05-06 20:17:13 +02:00
|
|
|
|
<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' %}">
|
2013-01-31 10:19:56 +01:00
|
|
|
|
<i class="icon-facetime-video {% if active_sid == 'agenda' %}icon-white{% endif %}"></i>
|
2013-01-08 23:05:35 +01:00
|
|
|
|
</a>
|
2013-03-16 17:02:14 +01:00
|
|
|
|
</span>
|
2012-07-04 12:50:33 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
</tr>
|
2013-03-16 17:02:14 +01:00
|
|
|
|
</table>
|
2012-07-04 12:50:33 +02:00
|
|
|
|
{% if items %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<ol class="agenda_list {% if perms.agenda.can_manage_agenda %}sortable{% endif %}">
|
|
|
|
|
{% recursetree items %}
|
2013-07-27 09:56:08 +02:00
|
|
|
|
<li class="draggable">
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% include "agenda/item_row.html" %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
{% if not node.is_leaf_node %}
|
|
|
|
|
<ol>
|
|
|
|
|
{{ children }}
|
|
|
|
|
</ol>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</li>
|
|
|
|
|
{% endrecursetree %}
|
|
|
|
|
</ol>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% else %}
|
2013-03-16 17:02:14 +01:00
|
|
|
|
<div class="overview_no_items">{% trans "No items available." %}</div>
|
2012-06-30 10:39:58 +02:00
|
|
|
|
{% endif %}
|
2012-04-27 21:53:50 +02:00
|
|
|
|
</form>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
{% endblock %}
|