fix: Make the "submit to IESG" workflow less surprising to @LPardue :-) (#4254)

* fix: Make the "submit to IESG" workflow less surprising to @LPardue :-)

Fixes #4209

* Merge part of #4256
This commit is contained in:
Lars Eggert 2022-07-24 12:28:27 -04:00 committed by GitHub
parent e1907d0b4d
commit 3d49384213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -1596,6 +1596,7 @@ class ChangeStreamStateForm(forms.Form):
if self.can_set_sub_pub:
f.help_text = "Only select 'Submitted to IESG for Publication' to correct errors. Use the document's main page to request publication."
else:
f.queryset = f.queryset.exclude(slug='sub-pub')
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."
f = self.fields['tags']

View file

@ -17,7 +17,11 @@
<b>Move document to {{ next_states|pluralize:"to one of" }} the recommended next state{{ next_states|pluralize }}:</b>
</p>
{% for state in next_states %}
<button type="button" class="btn btn-primary next-state" data-state="{{ state.pk }}">{{ state.name }}</button>
{% if state.slug == 'sub-pub' %}
<a type="button" class="btn btn-primary next-state" href="{% url 'ietf.doc.views_draft.to_iesg' name=doc.name %}">{{ state.name }}</a>
{% else %}
<button type="button" class="btn btn-primary next-state" data-state="{{ state.pk }}">{{ state.name }}</button>
{% endif %}
{% endfor %}
{% endif %}
<form class="mt-5" method="post">