Skip to content

Commit d2ceafb

Browse files
committed
Merged in [17031] from fenton@bluepopcorn.net:
Add edit button for Secreatriat on concluded groups. Fixes ietf-tools#2781. - Legacy-Id: 17042 Note: SVN reference [17031] has been migrated to Git commit da27336
2 parents 161ac25 + da27336 commit d2ceafb

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

ietf/templates/group/group_about.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,21 @@
221221
{% endif %}
222222
</table>
223223

224-
{% if closing_note and closing_note.desc != "(Closing note deleted)" %}
225-
<h2>Closing note for {{ group.type.desc.title }}</h2>
226-
{{ closing_note.desc }}
224+
{% if requested_close or group.state_id == "conclude" %}
225+
{% if user|has_role:"Secretariat" %}
226+
<h2>Closing note for {{ group.type.desc.title }}</h2>
227+
<a class="btn btn-default btn-xs" href="{% url 'ietf.group.views.edit' acronym=group.acronym field='closing_note' %}">Edit</a><br />
228+
{% if closing_note and closing_note.desc != "(Closing note deleted)" %}
229+
{{ closing_note.desc }}
230+
{% endif %}
231+
{% else %}
232+
233+
{% if closing_note and closing_note.desc != "(Closing note deleted)" %}
234+
<h2>Closing note for {{ group.type.desc.title }}</h2>
235+
{{ closing_note.desc }}
236+
237+
{% endif %}
238+
{% endif %}
227239
{% endif %}
228240

229241
{% if group.features.has_chartering_process %}

0 commit comments

Comments
 (0)