forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession_details.html
More file actions
138 lines (112 loc) · 4.14 KB
/
session_details.html
File metadata and controls
138 lines (112 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin ietf_filters static %}
{% block title %}{{ meeting }} : {{ acronym }}{% endblock %}
{% block morecss %}
.ui-sortable tr {
cursor:pointer;
}
{% endblock %}
{% block content %}
{% origin %}
<h1>{{ meeting }} : {{ acronym }}
{% if meeting.date >= thisweek %}
<a class="regular pull-right" title="icalendar entry for {{acronym}}@{{meeting.number}}" href="{% url 'ietf.meeting.views.agenda_ical' num=meeting.number acronym=acronym %}"><span class="fa fa-fw fa-calendar"></span> </a>
{% endif %}
</h1>
{% if is_materials_manager and not can_manage_materials %}
<div class="alert alert-warning">
The materials upload cutoff date for this session has passed. If you need to change the materials, contact the Secretariat.
</div>
{% endif %}
{% with use_panels=unscheduled_sessions %}
{% if use_panels %}
<div class="panel panel-default">
<div class="panel-heading">Scheduled Sessions</div>
<div class="panel-body">
{% endif %}
{% include 'meeting/session_details_panel.html' with sessions=scheduled_sessions %}
{% if use_panels %}
</div>
</div>
<div class="panel panel-warning">
<div class="panel-heading">Unscheduled Sessions</div>
<div class="panel-body">
{% endif %}
{% include 'meeting/session_details_panel.html' with sessions=unscheduled_sessions %}
{% if use_panels %}
</div>
</div>
{% endif %}
{% endwith %}
{% if pending_suggestions %}
<div class="panel panel-info">
<div class="panel-heading">{% if can_manage_materials %}Proposed slides awaiting your approval{% else %}Your proposed slides awaiting chair approval{% endif %}</div>
<div id="proposedslidelist" class="panel-body">
{% for s in pending_suggestions %}
{% if can_manage_materials %}
<p><a href="{% url "ietf.meeting.views.approve_proposed_slides" slidesubmission_id=s.pk num=s.session.meeting.number %}">{{s.submitter}} - {{s.title}} ({{s.time}})</a></p>
{% else %}
<p>{{s.title}} ({{s.time}})</p>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}
{% block js %}
{% if can_manage_materials %}
<script type="text/javascript" src="{% static 'jquery/jquery.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js-cookie/src/js.cookie.js' %}"></script>
<script type="text/javascript" src={% static 'Sortable/Sortable.min.js' %}></script>
<script type="text/javascript">
$.ajaxSetup({
crossDomain: false,
beforeSend: function(xhr, settings) {
if (!csrfSafeMethod(settings.type)) {
xhr.setRequestHeader("X-CSRFToken", Cookies.get('csrftoken'));
}
}
});
var sortables=[];
var options = {
group: "slides",
animation: 150,
onAdd: function(event) {onAdd(event)},
onRemove: function(event) {onRemove(event)},
onEnd: function(event) {onEnd(event)}
};
function onAdd(event) {
var old_session = event.from.getAttribute("session");
var new_session = event.to.getAttribute("session");
$.post(event.to.getAttribute("addToSession"), {
'order': event.newIndex + 1,
'name': event.item.getAttribute("name")
});
$(event.item).find("td:eq(1)").find("a").each(function(){
$(this).attr("href", $(this).attr("href").replace(old_session,new_session) );
});
}
function onRemove(event) {
var old_session = event.from.getAttribute("session");
$.post(event.from.getAttribute("removeFromSession"),{
'oldIndex': event.oldIndex + 1,
'name': event.item.getAttribute("name")
});
}
function onEnd(event) {
if (event.to == event.from) {
$.post(event.from.getAttribute("reorderInSession"),{
'oldIndex': event.oldIndex + 1,
'newIndex': event.newIndex + 1
});
}
}
$(document).ready(function() {
$(".slides tbody").each(function() {
sortables.push(Sortable.create(this, options));
});
});
</script>
{% endif %}
{% endblock %}