Skip to content

Commit 5eda479

Browse files
committed
Merged [3245] from rjsparks@nostrum.com:
Removes the "Change State" button and makes changing state a link further up on the form. This fixes bug 683, but creates a new one that we will need to address later - editing the state of an RFC that is going through the iesg process again (for going to draft in place for example) will need followup once the changes to get an rfc into that state easily are made. - Legacy-Id: 3256 Note: SVN reference [3245] has been migrated to Git commit af7e3d6
2 parents 6bc2cfe + af7e3d6 commit 5eda479

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

ietf/templates/idrfc/doc_tab_document.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
{% endif %}
5858
{% else %}
5959
{% if doc.in_ietf_process %}
60-
<span id="doc_edit_state_button" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child"><a href="{% url doc_change_state name=doc.draft_name %}">Change state</a></span></span>
61-
6260
<span id="doc_edit_info_button" class="yui-button yui-link-button" style="margin-left:2px;">{% url doc_edit_info name=doc.draft_name as doc_edit_url %}{% if doc_edit_url %}<span class="first-child"><a href="{{doc_edit_url}}">Edit</a></span>{% endif %}</span>
6361
{% else %}
6462
<span id="doc_add_button" class="yui-button yui-link-button" style="margin-left:2px;">{% url doc_edit_info name=doc.draft_name as doc_edit_url %}{% if doc_edit_url %}<span class="first-child"><a href="{{doc_edit_url}}">Add</a></span>{% endif %}</span>

ietf/templates/idrfc/doc_tab_document_id.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@
9090
<tr><td colspan='2'><hr size='1' noshade /></td></tr>
9191

9292

93-
<tr><td><a href="/idtracker/help/state/">IESG State</>:</td><td> {{ doc.friendly_state|safe }}
93+
<tr><td><a href="/idtracker/help/state/">IESG State</>:</td><td>
94+
{% if user|in_group:"Area_Director,Secretariat" %}
95+
<a href="{% url doc_change_state name=doc.draft_name %}"> {{ doc.friendly_state|safe }} </a>
96+
{% else %}
97+
{{ doc.friendly_state|safe }}
98+
{% endif %}
9499
{% if doc.rfc_editor_state %}<br />RFC Editor State: <a href="http://www.rfc-editor.org/queue2.html#{{doc.draft_name}}">{{ doc.rfc_editor_state|escape }}</a>{% endif %}
95100
{% ifequal doc.draft_status "Expired" %}
96101
{% if doc.resurrect_requested_by %}(resurrect requested by {{ doc.resurrect_requested_by }}){% endif %}

0 commit comments

Comments
 (0)