diff --git a/ietf/meeting/templatetags/proceedings_filters.py b/ietf/meeting/templatetags/proceedings_filters.py index 4e7924659..2f70da5c0 100644 --- a/ietf/meeting/templatetags/proceedings_filters.py +++ b/ietf/meeting/templatetags/proceedings_filters.py @@ -1,5 +1,7 @@ from django import template +import debug # pyflakes:ignore + register = template.Library() @register.filter diff --git a/ietf/secr/templates/meetings/blue_sheet.html b/ietf/secr/templates/meetings/blue_sheet.html index 0172a070f..f5f7362e8 100644 --- a/ietf/secr/templates/meetings/blue_sheet.html +++ b/ietf/secr/templates/meetings/blue_sheet.html @@ -39,48 +39,9 @@

- Use the form below to upload individual scanned blue sheet documents. + Use the session details page for a group to upload scanned bluesheets. The session details pages for a group can be reached from the meeting's materials page.

-
{% csrf_token %} - - - {{ form.as_table }} -
- -
- -
- -
-{% if uploaded_files %} -
-
-

Uploaded Files

- -
- -{% endif %} - - {% endblock %} diff --git a/ietf/templates/meeting/edit_materials_button.html b/ietf/templates/meeting/edit_materials_button.html new file mode 100644 index 000000000..ee4c124c0 --- /dev/null +++ b/ietf/templates/meeting/edit_materials_button.html @@ -0,0 +1,4 @@ +{% load ietf_filters session_filters %} +{% if user|has_role:"Secretariat" or session|can_manage_materials:user and not session.is_material_submission_cutoff %} +Edit +{% endif %} diff --git a/ietf/templates/meeting/group_materials.html b/ietf/templates/meeting/group_materials.html index c748e26a3..41d6c73b8 100644 --- a/ietf/templates/meeting/group_materials.html +++ b/ietf/templates/meeting/group_materials.html @@ -1,5 +1,5 @@ {# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %} -{% load ietf_filters %} +{% load ietf_filters proceedings_filters %} {% comment %} @@ -8,9 +8,9 @@ {% endcomment %} {% if session.name %} -
{{ session.name }}
+
{{ session.name }}{% include "meeting/edit_materials_button.html" %}
{% else %} -
{{session.group.acronym}}
+
{{session.group.acronym}}{% include "meeting/edit_materials_button.html" %}
{% if session.group.state.slug == "bof" %} {{ session.group.state.slug|upper }} {% endif %}