Skip to content

Commit 72d9017

Browse files
committed
Merged in [11780] from rjsparks@nostrum.com:
Removed bluesheet upload from the secr/ bluesheets generation page. Added navigation to session details from the meeting materials view rows. - Legacy-Id: 11815 Note: SVN reference [11780] has been migrated to Git commit 9b295b1
1 parent f1ad6a0 commit 72d9017

4 files changed

Lines changed: 10 additions & 43 deletions

File tree

ietf/meeting/templatetags/proceedings_filters.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from django import template
22

3+
import debug # pyflakes:ignore
4+
35
register = template.Library()
46

57
@register.filter

ietf/secr/templates/meetings/blue_sheet.html

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -39,48 +39,9 @@ <h2>IETF {{ meeting.number }} - Blue Sheet</h2>
3939

4040
<hr />
4141
<p>
42-
Use the form below to upload individual scanned blue sheet documents.
42+
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 <a href="{% url 'ietf.meeting.views.materials' num=meeting.number %}">materials page</a>.
4343
</p>
44-
<form id="rolodex-add-form" enctype="multipart/form-data" action="" method="post">{% csrf_token %}
45-
<table class="full-width amstable">
46-
<col width="200">
47-
{{ form.as_table }}
48-
</table>
49-
50-
<div class="button-group">
51-
<ul>
52-
<li><button type="submit" name="submit" value="Submit">Submit</button></li>
53-
<li><button type="button" onclick="window.location='../'">Back</button></li>
54-
</ul>
55-
</div> <!-- button-group -->
56-
57-
</form>
5844
</div> <!-- module -->
5945

60-
{% if uploaded_files %}
61-
<br>
62-
<div class="module interim-container">
63-
<h2>Uploaded Files</h2>
64-
<div class="inline-related last-related">
65-
<table class="full-width">
66-
<thead>
67-
<tr>
68-
<th>Filename</th>
69-
</tr>
70-
</thead>
71-
<tbody>
72-
{% for file in uploaded_files %}
73-
<tr class="{% cycle 'row1' 'row2' %}">
74-
<td>{{ file }}</td>
75-
</tr>
76-
{% endfor %}
77-
</tbody>
78-
</table>
79-
</div> <!-- inline-related -->
80-
</div> <!-- module -->
81-
82-
{% endif %}
83-
84-
8546
{% endblock %}
8647

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% load ietf_filters session_filters %}
2+
{% if user|has_role:"Secretariat" or session|can_manage_materials:user and not session.is_material_submission_cutoff %}
3+
<a class="button btn-default btn-sm" href="{% url 'ietf.meeting.views.session_details' num=session.meeting.number acronym=session.group.acronym %}">Edit</a>
4+
{% endif %}

ietf/templates/meeting/group_materials.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
2-
{% load ietf_filters %}
2+
{% load ietf_filters proceedings_filters %}
33
<tr>
44
<td>
55
{% comment %}
@@ -8,9 +8,9 @@
88
<a name="session.group-{{ session.group.acronym }}"></a>
99
{% endcomment %}
1010
{% if session.name %}
11-
<div class="anchor-target" id="{{ session.name|slugify }}">{{ session.name }}</div>
11+
<div class="anchor-target" id="{{ session.name|slugify }}">{{ session.name }}{% include "meeting/edit_materials_button.html" %}</div>
1212
{% else %}
13-
<div class="anchor-target" id="{{session.group.acronym}}"><a href="{% url 'ietf.group.views.group_home' acronym=session.group.acronym %}">{{session.group.acronym}}</a></div>
13+
<div class="anchor-target" id="{{session.group.acronym}}"><a href="{% url 'ietf.group.views.group_home' acronym=session.group.acronym %}">{{session.group.acronym}}</a>{% include "meeting/edit_materials_button.html" %}</div>
1414
{% if session.group.state.slug == "bof" %}
1515
<span class="label label-success">{{ session.group.state.slug|upper }}</span>
1616
{% endif %}

0 commit comments

Comments
 (0)