-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Session adding notes and recordings
- Loading branch information
Showing
4 changed files
with
189 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
ietf/templates/meeting/add_session_notes_and_recordings.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{% extends "base.html" %} | ||
{# Copyright The IETF Trust 2015, All Rights Reserved #} | ||
{% load origin static django_bootstrap5 %} | ||
{% block title %}Add I-Ds to {{ session.meeting }} : {{ session.group.acronym }}{% endblock %} | ||
{% block pagehead %}{{ form.media.css }}{% endblock %} | ||
{% block content %} | ||
{% origin %} | ||
<h1> | ||
Add Notes and Recordings to {{ session.meeting }} | ||
{% if session_number %}: Session {{ session_number }}{% endif %} | ||
<br> | ||
<small class="text-body-secondary">{{ session.group.acronym }} | ||
{% if session.name %}: {{ session.name }}{% endif %} | ||
</small> | ||
</h1> | ||
{% comment %} TODO: put the session name here or calculate the number at the meeting {% endcomment %} | ||
{% if session.is_material_submission_cutoff %} | ||
<div class="alert alert-warning my-3"> | ||
The deadline for submission corrections has passed. This may affect published proceedings. | ||
</div> | ||
{% endif %} | ||
<div class="alert alert-info my-3"> | ||
This form will link additional Notes and Recordings to this session with a revision of "Current at time of presentation". For more fine grained control of versions, or to remove Notes and Recordings from a session, adjust the sessions associated with an Internet-Draft from the Internet-Draft's main page. | ||
</div> | ||
<h2 class="mt-5">Notes and Recordings already linked to this session</h2> | ||
<table class="table table-sm table-striped tablesorter"> | ||
<thead> | ||
<tr> | ||
<th scope="col" data-sort="num">Revision</th> | ||
<th scope="col" data-sort="document">Document</th> | ||
</tr> | ||
</thead> | ||
{% if already_linked %} | ||
<tbody> | ||
{% for sp in already_linked %} | ||
<tr> | ||
<td> | ||
{% if sp.rev %} | ||
-{{ sp.rev }} | ||
{% else %} | ||
(current) | ||
{% endif %} | ||
</td> | ||
<td><a href="{{ sp.external_url }}">{{ sp.title }}</a></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
{% else %} | ||
<tbody> | ||
<tr> | ||
<td colspan="2" class="text-center font-italic">(none)</td> | ||
</tr> | ||
</tbody> | ||
{% endif %} | ||
</table> | ||
<h2 class="mt-5">Add additional Notes and Recordings to this session</h2> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
<button class="btn btn-{% if session.is_material_submission_cutoff %}warning{% else %}primary{% endif %}" | ||
type="submit"> | ||
Save | ||
</button> | ||
<a class="btn btn-secondary float-end" | ||
href="{% url 'ietf.meeting.views.session_details' num=session.meeting.number acronym=session.group.acronym %}"> | ||
Back | ||
</a> | ||
</form> | ||
{% endblock %} | ||
{% block js %}{{ form.media.js }}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters