datatracker/ietf/templates/meeting/create_timeslot.html
Jennifer Richards f9c2376d27
feat: Return to expected schedule after editing sessions/timeslots (#5158)
* fix: Return to the expected schedule after editing session dteails

* style: Avoid confusing nested double-quotes in html template

* feat: When possible, add "back to agenda" button to edit_timeslots

* chore: Propagate 'sched' to links/includes in timeslot_edit.html

* chore: Propagate 'sched' to links/includes in edit_timeslot() view

* chore: Propagate 'sched' to links/includes in create_timeslot() view

* test: Test sched param propagation in timeslot edit views

* test: Test sched param propagation in session edit view

* test: Fix URL in test_edit_meeting_schedule
2023-02-16 09:57:18 -06:00

21 lines
886 B
HTML
Executable file

{% extends "base.html" %}
{# Copyright The IETF Trust 2021, All Rights Reserved #}
{% load origin static %}
{% load django_bootstrap5 %}
{% block pagehead %}{{ form.media.css }}{% endblock %}
{% block title %}Create timeslot for {{ meeting }}{% endblock %}
{% block content %}
{% origin %}
<h1>Create timeslot for {{ meeting }}</h1>
<form id="timeslot-form" method="post" class="my-3">
{% csrf_token %}
{% bootstrap_form form %}
<button type="submit" class="btn btn-primary">Save</button>
<a class="btn btn-secondary float-end"
href="{% url 'ietf.meeting.views.edit_timeslots' num=meeting.number %}{% if 'sched' in request.GET %}?sched={{ request.GET.sched }}{% endif %}">Back</a>
</form>
{% endblock %}
{% block js %}
<script src="{% static 'ietf/js/create_timeslot.js' %}"></script>
{{ form.media.js }}
{% endblock %}