84 lines
3.2 KiB
HTML
84 lines
3.2 KiB
HTML
{% extends "meetings/base_rooms_times.html" %}
|
|
{% load agenda_custom_tags %}
|
|
{% 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_display_name assignment %}</td>
|
|
<td>{{ assignment.session.short }}</td>
|
|
<td>{{ assignment.session.group.acronym }}</td>
|
|
<td>{{ assignment.timeslot.location }}</td>
|
|
<td>{{ assignment.timeslot.show_location }}</td>
|
|
<td>{% with purpose=assignment.session.purpose %}{{ purpose }}{% if purpose.timeslot_types|length > 1 %} ({{ assignment.slot_type }}){% endif %}{% endwith %}</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. Add rooms with the "duplicate timeslots" option enabled to copy timeslots 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 %}
|
|
|
|
{% block extrahead %}
|
|
{{ block.super }}
|
|
{{ form.media.js }}
|
|
{% endblock %}
|
|
{% block extrastyle %}
|
|
{{ form.media.css }}
|
|
{% endblock %} |