forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_meeting_schedule_session.html
More file actions
91 lines (79 loc) · 3.67 KB
/
edit_meeting_schedule_session.html
File metadata and controls
91 lines (79 loc) · 3.67 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
<div id="session{{ session.pk }}"
class="session {% if not session.group.parent.scheduling_color %}untoggleable-by-parent{% endif %} {% if session.parent_acronym %}parent-{{ session.parent_acronym }}{% endif %} purpose-{{ session.purpose.slug }} {% if session.readonly %}readonly{% endif %} {% if not session.on_agenda %}off-agenda{% endif %}"
style="width:{{ session.layout_width }}em;"
data-duration="{{ session.requested_duration.total_seconds }}" {% if session.attendees != None %}
data-attendees="{{ session.attendees }}"{% endif %}
data-type="{{ session.type.slug }}">
<div class="session-label {% if session.group and session.group.is_bof %}bof-session{% endif %}">
{{ session.scheduling_label }}
{% if session.group and session.group.is_bof %}<span class="bof-tag">BOF</span>{% endif %}
</div>
<div>
<span class="requested-duration">{{ session.requested_duration_in_hours|floatformat }}h</span>
{% if session.attendees != None %}
<span class="attendees">· {{ session.attendees }}</span>
{% endif %}
{% if session.comments %}
<span class="comments"><i class="fa fa-comment-o"></i></span>
{% endif %}
{% if session.constrained_sessions %}
<span class="constraints">
{% for label, sessions in session.constrained_sessions %}
<span data-sessions="{{ sessions|join:"," }}">{{ label }}</span>
{% endfor %}
</span>
{% endif %}
<div class="past-flag">Past</div>
</div>
{# the JS uses this to display session information in the bottom panel #}
<div class="session-info">
<div class="title">
<strong>
<span class="time pull-right"></span>
{{ session.scheduling_label }} · {{ session.requested_duration_in_hours }}h
{% if session.purpose_label %} · {{ session.purpose_label }} {% endif %}
{% if session.attendees != None %} · {{ session.attendees }} <i class="fa fa-user-o"></i> {% endif %}
</strong>
</div>
{% if session.group %}
<div>
{{ session.group.name }}
{% if session.group.parent %}
· <span class="session-parent">{{ session.group.parent.acronym }}</span>
{% endif %}
{% if not session.on_agenda %}· <i>off agenda</i>{% endif %}
</div>
{% endif %}
{% if session.requested_by_person %}
<div>
<i title="Requested by" class="fa fa-user-circle-o"></i> {{ session.requested_by_person.plain_name }} {% if session.requested_time %}({{ session.requested_time|date:"Y-m-d" }}){% endif %}
</div>
{% endif %}
{% if session.resources.all %}
<div>
Resources:
{% for r in session.resources.all %}
{{ r.name }}{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
{% endif %}
{% if session.comments %}
<div class="comments">
{{ session.comments|linebreaksbr }}
</div>
{% endif %}
{% if session.formatted_constraints %}
<div class="formatted-constraints">
{% for constraint_name, values in session.formatted_constraints.items %}
<div>
<span title="{{ constraint_name.name }}">{{ constraint_name.countless_formatted_editor_label }}</span>: {{ values|join:", " }}
</div>
{% endfor %}
</div>
{% endif %}
{% for s in session.other_sessions %}
<div class="other-session" data-othersessionid="{{ s.pk }}"><i class="fa fa-calendar"></i> Other session <span class="time" data-scheduled="scheduled: {time}" data-notscheduled="not yet scheduled"></span></div>
{% endfor %}
<a href="{% url 'ietf.meeting.views.edit_session' session_id=session.pk %}">Edit session</a>
</div>
</div>