assignments on the base schedule are shown in the pages for the schedule, read-only. This allows managing things like breaks and misc sessions separately from the regular WG sessions. Base schedules are not allowed to be the base of other base schedules (the hierarchy can only be one level deep) to simplify the mental model and the code. Add link for creating new schedules instead of relying on copying Empty-Schedule and change the meeting creation code to no longer create the special Empty-Schedule. Instead a "base" schedule is created and a first schedule with the name and permissions of the user creating the meeting, using "base" as base. Speed up a couple of the Secretariat/AD agenda views by adding prefetches. - Legacy-Id: 18355
77 lines
2.9 KiB
HTML
77 lines
2.9 KiB
HTML
{% extends "meetings/base_rooms_times.html" %}
|
|
|
|
{% block subsection %}
|
|
|
|
<div class="module">
|
|
<h2>TimeSlots</h2>
|
|
|
|
{% if assignments %}
|
|
<table id="misc-sessions" class="full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>Day</th>
|
|
<th>Time</th>
|
|
<th>Name</th>
|
|
<th>Short Name</th>
|
|
<th>Group</th>
|
|
<th>Location</th>
|
|
<th>Show Loc.</th>
|
|
<th>Type</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for assignment in assignments %}
|
|
<tr class="{% cycle 'row1' 'row2' %}{% ifchanged assignment.session.type %} break{% endifchanged %}{% if assignment.current_session_status == "canceled" %} cancelled{% endif %}">
|
|
<td>{{ assignment.timeslot.time|date:"D" }}</td>
|
|
<td>{{ assignment.timeslot.time|date:"H:i" }}-{{ assignment.timeslot.end_time|date:"H:i" }}</td>
|
|
<td>{{ assignment.timeslot.name }}</td>
|
|
<td>{{ assignment.session.short }}</td>
|
|
<td>{{ assignment.session.group.acronym }}</td>
|
|
<td>{{ assignment.timeslot.location }}</td>
|
|
<td>{{ assignment.timeslot.show_location }}</td>
|
|
<td>{{ assignment.timeslot.type }}</td>
|
|
{% if assignment.schedule_id == schedule.pk %}
|
|
<td><a href="{% url "ietf.secr.meetings.views.misc_session_edit" meeting_id=meeting.number schedule_name=schedule.name slot_id=assignment.timeslot.id %}">Edit</a></td>
|
|
<td>
|
|
{% if assignment.session.type.slug != "break" %}
|
|
<a href="{% url "ietf.secr.meetings.views.misc_session_cancel" meeting_id=meeting.number schedule_name=schedule.name slot_id=assignment.timeslot.id %}">Cancel</a>
|
|
{% endif %}
|
|
</td>
|
|
<td><a href="{% url "ietf.secr.meetings.views.misc_session_delete" meeting_id=meeting.number schedule_name=schedule.name slot_id=assignment.timeslot.id %}">Delete</a></td>
|
|
{% else %}
|
|
<td colspan="3" class="from-base-schedule">(from base schedule)</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<h3>No timeslots exist for this meeting. First add the rooms and then the app will create timeslots based on the schedule from the last meeting.</h3>
|
|
{% endif %}
|
|
<br /><hr />
|
|
|
|
<div>
|
|
<form id="timeslot-form" action="" method="post">{% csrf_token %}
|
|
<table id="timeslot-form" class="full-width amstable">
|
|
<col width="150">
|
|
{{ form.as_table }}
|
|
<tr><td colspan="2" align="center"><input type="submit" name="submit" value="Add" /></td></tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="button-group">
|
|
<ul>
|
|
<li><button onclick="window.location='../'">Back</button></li>
|
|
</ul>
|
|
</div> <!-- button-group -->
|
|
|
|
</form>
|
|
</div> <!-- module -->
|
|
|
|
|
|
{% endblock %}
|