* feat: add 'cancel session' button to meeting schedule editor * fix: only show edit/cancel session buttons for secretariat Other users cannot access these views. * feat: refuse to cancel a canceled session; give feedback to user * test: test cancel_session view * test: test that sessions have edit/cancel buttons
24 lines
774 B
HTML
24 lines
774 B
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2021-2022, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load django_bootstrap5 %}
|
|
{% block pagehead %}{{ form.media.css }}{% endblock %}
|
|
{% block title %} Cancel session "{{ session }}"{% endblock %}
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>
|
|
Cancel session
|
|
<br>
|
|
<small class="text-muted">{{ session }}</small>
|
|
</h1>
|
|
<form class="session-details-form my-3" method="post">
|
|
{% csrf_token %}
|
|
{% bootstrap_form form %}
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
<a class="btn btn-secondary float-end"
|
|
href="{{ editor_url }}">
|
|
Back
|
|
</a>
|
|
</form>
|
|
{% endblock %}
|
|
{% block js %}{{ form.media.js }}{% endblock %} |