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
86 lines (86 loc) · 4.56 KB
/
Copy pathedit_meeting_schedule_session.html
File metadata and controls
86 lines (86 loc) · 4.56 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
{% load person_filters editor_tags %}
<!-- [html-validate-disable-block no-inline-style -- FIXME: should style this better] -->
<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="bi bi-chat"></i></span>{% endif %}
{% if session.constraint_hints %}
<span class="constraints">
{% for hint, sessions in session.constraint_hints %}
<span data-sessions="{{ sessions|join:"," }}">{% constraint_icon_for hint.constraint_name hint.count %}</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 float-end"></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="bi bi-person"></i>{% endif %}
</strong>
</div>
{% if session.group %}
<div>
<a href="{{ session.group.about_url }}">{{ session.group.name }}</a>
{% if session.group.parent %}
·
{% comment %}
FIXME-LARS: this breaks the test:
<a class="session-parent" href="{{ session.group.parent.about_url }}">{{ session.group.parent.acronym }}</a>
{% endcomment %}
<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="bi bi-person-circle"></i> {% person_link session.requested_by_person %}
{% 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_icon_for constraint_name %}</span>: {{ values|join:", " }}
</div>
{% endfor %}
</div>
{% endif %}
{% for s in session.other_sessions %}
<div class="other-session" data-othersessionid="{{ s.pk }}">
<i class="bi bi-calendar"></i> Other session <span class="time"
data-scheduled="scheduled: {time}"
data-notscheduled="not yet scheduled"></span>
</div>
{% endfor %}
<a class="btn btn-primary btn-sm mt-2"
href="{% url 'ietf.meeting.views.edit_session' session_id=session.pk %}">
Edit session
</a>
</div>
</div>