in order to autogenerate dotted path url pattern names. Updated a number of url reverses to use dotted path, and removed explicit url pattern names as needed. Changed some imports to prevent import of ietf.urls before django initialization was complete. Changed 3 cases of form classes being curried to functions; django 1.10 didn't accept that. Started converting old-style middleware classes to new-style middleware functions (incomplete). Tweaked a nomcom decorator to preserve function names and attributes, like a good decorator should. Replaced the removed django templatetag 'removetags' with our own version which uses bleach, and does sanitizing in addition to removing explicitly mentionied html tags. Rewrote the filename argument handling in a management command which had broken with the upgrade. - Legacy-Id: 12818
59 lines
2.1 KiB
HTML
59 lines
2.1 KiB
HTML
{% extends "meetings/base_rooms_times.html" %}
|
|
|
|
{% block subsection %}
|
|
|
|
<div class="module">
|
|
<h2>Times</h2>
|
|
|
|
{% if times %}
|
|
<table class="full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>Day</th>
|
|
<th>Time</th>
|
|
<th>Name</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in times %}
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
|
<td>{{ item.time|date:"D" }}</td>
|
|
<td>{{ item.time|date:"H:i" }} - {{ item.end_time|date:"H:i" }}</td>
|
|
<td>{{ item.name }}</td>
|
|
<td><a href="{% url "ietf.secr.meetings.views.times_edit" meeting_id=meeting.number schedule_name=schedule.name time=item.time|date:"Y:m:d:H:i" %}">Edit</a></td>
|
|
<td><a href="{% url "meetings_times_delete" meeting_id=meeting.number schedule_name=schedule.name time=item.time|date:"Y:m:d:H:i" %}" onclick="return window.confirm('Are you sure you want to delete this timeslot? Any sessions assigned to this timeslot will be unscheduled.');">Delete</a></td>
|
|
</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 />
|
|
|
|
<form action="" method="post">{% csrf_token %}
|
|
{{ form.non_field_errors }}
|
|
<table id="timeslot-form" class="full-width">
|
|
<tr>
|
|
<td>Day<br>{{ form.day.errors }}{{ form.day }}</td>
|
|
<td>Time<br>{{ form.time.errors }}{{ form.time }}</td>
|
|
<td>Duration<br>{{ form.duration.errors }}{{ form.duration }}</td>
|
|
<td>Name<br>{{ form.name.errors }}{{ form.name }}</td>
|
|
<td><input type="submit" name="submit" value="Add" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|
|
<div class="button-group">
|
|
<ul>
|
|
<li><button onclick="window.location='../'">Back</button></li>
|
|
</ul>
|
|
</div> <!-- button-group -->
|
|
|
|
</form>
|
|
</div> <!-- module -->
|
|
|
|
{% endblock %}
|