Skip to content

Commit 3d49384

Browse files
authored
fix: Make the "submit to IESG" workflow less surprising to @LPardue :-) (ietf-tools#4254)
* fix: Make the "submit to IESG" workflow less surprising to @LPardue :-) Fixes ietf-tools#4209 * Merge part of ietf-tools#4256
1 parent e1907d0 commit 3d49384

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

ietf/doc/views_draft.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,7 @@ def __init__(self, *args, **kwargs):
15961596
if self.can_set_sub_pub:
15971597
f.help_text = "Only select 'Submitted to IESG for Publication' to correct errors. Use the document's main page to request publication."
15981598
else:
1599+
f.queryset = f.queryset.exclude(slug='sub-pub')
15991600
f.help_text = "You may not set the 'Submitted to IESG for Publication' using this form - Use the document's main page to request publication."
16001601

16011602
f = self.fields['tags']

ietf/templates/doc/draft/change_stream_state.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ <h1>
1717
<b>Move document to {{ next_states|pluralize:"to one of" }} the recommended next state{{ next_states|pluralize }}:</b>
1818
</p>
1919
{% for state in next_states %}
20-
<button type="button" class="btn btn-primary next-state" data-state="{{ state.pk }}">{{ state.name }}</button>
20+
{% if state.slug == 'sub-pub' %}
21+
<a type="button" class="btn btn-primary next-state" href="{% url 'ietf.doc.views_draft.to_iesg' name=doc.name %}">{{ state.name }}</a>
22+
{% else %}
23+
<button type="button" class="btn btn-primary next-state" data-state="{{ state.pk }}">{{ state.name }}</button>
24+
{% endif %}
2125
{% endfor %}
2226
{% endif %}
2327
<form class="mt-5" method="post">

0 commit comments

Comments
 (0)