forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession_request_view_formset.html
More file actions
49 lines (48 loc) · 2.21 KB
/
Copy pathsession_request_view_formset.html
File metadata and controls
49 lines (48 loc) · 2.21 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
{# Copyright The IETF Trust 2025, All Rights Reserved #}
{% load ams_filters %}{# keep this in sync with sessions_request_view_session_set.html #}
{% for sess_form in formset %}
{% if sess_form.cleaned_data and not sess_form.cleaned_data.DELETE %}
<div class="row mb-3">
<div class="col-md-2 fw-bold">
Session {{ forloop.counter }}
</div>
<div class="col">
<div class="row mb-2">
<div class="col-sm-2 fw-bold">Length</div>
<div class="col">{{ sess_form.cleaned_data.requested_duration.total_seconds|display_duration }}</div>
</div>
{% if sess_form.cleaned_data.name %}
<div class="row mb-2">
<div class="col-sm-2 fw-bold">Name</div>
<div class="col">{{ sess_form.cleaned_data.name }}</div>
</div>
{% endif %}
{% if sess_form.cleaned_data.purpose.slug != 'regular' %}
<div class="row mb-2">
<div class="col-sm-2 fw-bold">Purpose</div>
<div class="col">
{{ sess_form.cleaned_data.purpose }}
{% if sess_form.cleaned_data.purpose.timeslot_types|length > 1 %}({{ sess_form.cleaned_data.type }}
){% endif %}
</div>
</div>
<div class="row mb-2">
<div class="col-sm-2 fw-bold">Onsite tool?</div>
<div class="col">{{ sess_form.cleaned_data.has_onsite_tool|yesno }}</div>
</div>
{% endif %}
</div>
</div>
{% if group.features.acts_like_wg and forloop.counter == 2 and not is_virtual %}
<div class="row mb-3">
<div class="col-md-2 fw-bold">
Time between sessions
</div>
<div class="col">
{% if session.session_time_relation_display %}{{ session.session_time_relation_display }}{% else %}No
preference{% endif %}
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}