Skip to content

Commit d5d9d10

Browse files
committed
Merged in [11663] from housley@vigilsec.com:
Clarify that the consensus field is talking about whether the doument will include the consensus boilerplate when it is published as an RFC. Fixes ietf-tools#1955. - Legacy-Id: 11684 Note: SVN reference [11663] has been migrated to Git commit 9d5a947
2 parents 5f21964 + 9d5a947 commit d5d9d10

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,10 +1092,11 @@ def edit_ad(request, name):
10921092
context_instance = RequestContext(request))
10931093

10941094
class ConsensusForm(forms.Form):
1095-
consensus = forms.ChoiceField(choices=(("Unknown", "Unknown"), ("Yes", "Yes"), ("No", "No")), required=True)
1095+
consensus = forms.ChoiceField(choices=(("Unknown", "Unknown"), ("Yes", "Yes"), ("No", "No")),
1096+
required=True, label="When published as an RFC, should the consensus boilerplate be included?")
10961097

10971098
def edit_consensus(request, name):
1098-
"""Change whether the draft is a consensus document or not."""
1099+
"""When this draft is published as an RFC, should it include the consensus boilerplate or not."""
10991100

11001101
doc = get_object_or_404(Document, type="draft", name=name)
11011102

@@ -1113,7 +1114,7 @@ def edit_consensus(request, name):
11131114
e = ConsensusDocEvent(doc=doc, type="changed_consensus", by=request.user.person)
11141115
e.consensus = {"Unknown":None,"Yes":True,"No":False}[form.cleaned_data["consensus"]]
11151116
if not e.consensus and doc.intended_std_level_id in ("std", "ds", "ps", "bcp"):
1116-
return HttpResponseForbidden("BCPs and Standards Track documents must have consensus")
1117+
return HttpResponseForbidden("BCPs and Standards Track documents must include the consensus boilerplate")
11171118

11181119
e.desc = "Changed consensus to <b>%s</b> from %s" % (nice_consensus(e.consensus),
11191120
nice_consensus(prev_consensus))

ietf/templates/doc/document_draft.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base.html" %}
2-
{# Copyright The IETF Trust 2015, All Rights Reserved #}
2+
{# Copyright The IETF Trust 2016, All Rights Reserved #}
33
{% load origin %}
44
{% load staticfiles %}
55
{% load ietf_filters %}
@@ -241,7 +241,7 @@
241241
{% if consensus and not doc.stream_id == 'ietf' %}
242242
<tr>
243243
<th></th>
244-
<th>Consensus</th>
244+
<th>Consensus Boilerplate</th>
245245
<td class="edit">
246246
{% if can_edit or can_edit_stream_info %}
247247
<a class="btn btn-default btn-xs" href="{% url "doc_edit_consensus" name=doc.name %}">Edit</a>
@@ -355,7 +355,7 @@
355355
{% if consensus and doc.stream_id == 'ietf' %}
356356
<tr>
357357
<th></th>
358-
<th>Consensus</th>
358+
<th>Consensus Boilerplate</th>
359359
<td class="edit">
360360
{% if can_edit or can_edit_stream_info %}
361361
<a class="btn btn-default btn-xs" href="{% url "doc_edit_consensus" name=doc.name %}">Edit</a>

0 commit comments

Comments
 (0)