forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_timeslot_form.html
More file actions
41 lines (35 loc) · 1.86 KB
/
edit_timeslot_form.html
File metadata and controls
41 lines (35 loc) · 1.86 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
{# Copyright The IETF Trust 2015-2020, All Rights Reserved #}
{% load origin %}
{% load bootstrap3 %}
{% if not timeslot_form.active_assignment or timeslot_form.active_assignment.schedule_id == schedule.pk %}
<form class="timeslot-form" method="post">{% csrf_token %}
<div class="flowing-form">
{% bootstrap_field timeslot_form.day %}
{% bootstrap_field timeslot_form.time %}
{% bootstrap_field timeslot_form.duration %}
{% bootstrap_field timeslot_form.location %}
{% bootstrap_field timeslot_form.show_location %}
{% bootstrap_field timeslot_form.type %}
{% bootstrap_field timeslot_form.group %}
{% bootstrap_field timeslot_form.name %}
{% bootstrap_field timeslot_form.short %}
{% if 'agenda_note' in timeslot_form.fields %}
{% bootstrap_field timeslot_form.agenda_note %}
{% endif %}
</div>
{% if can_edit %}
<button type="submit" class="btn btn-primary" name="action" value="{{ timeslot_form_action }}-timeslot">
{% if timeslot_form_action == 'add' %}Add time slot{% else %}Save{% endif %} slot
</button>
{% if timeslot %}
<input type="hidden" name="timeslot" value="{{ timeslot.pk }}">
{% if timeslot.type_id != 'break' and timeslot.can_cancel %}
<button type="submit" class="btn btn-danger" name="action" value="cancel-timeslot" title="Cancel session">Cancel session</button>
{% endif %}
<button type="submit" class="btn btn-danger" name="action" value="delete-timeslot" title="Delete time slot">Delete</button>
{% endif %}
{% endif %}
</form>
{% elif schedule.base %}
<p class="text-center">You cannot edit this session here - it is set up in the <a href="{% url 'ietf.meeting.views.edit_meeting_timeslots_and_misc_sessions' meeting.number schedule.base.owner_email schedule.base.name %}">base schedule</a></p>
{% endif %}