@@ -14,62 +14,11 @@ <h1>Begin RFC status change review</h1>
1414< form class ="start-rfc-status-change-review " role ="form " method ="post ">
1515 {% csrf_token %}
1616
17- < label class ="control-label "> Affected RFCs</ label >
18- {% for rfc,choice_slug in form.relations.items %}
19- < div class ="form-group ">
20- < div id ="relation_row_{{rfc}} " class ="row ">
21- < div class ="col-md-5 ">
22- < input class ="form-control " id ="new_relation_row_{{rfc}} " name ="new_relation_row_{{rfc}} " type ="text " value ="{{rfc}} ">
23- </ div >
24- < div class ="col-md-5 ">
25- < select class ="form-control " id ="statchg_relation_row_{{rfc}} " name ="statchg_relation_row_{{rfc}} ">
26- < option value ="" {% if choice_slug == "" %}selected{% endif %} > (None)</ option >
27- {% for rel in relation_slugs %}
28- < option value ="{{rel.slug}} " {% if choice_slug == rel.slug %}selected{%endif%} > {{rel.name}}</ option >
29- {% endfor %}
30- </ select >
31- </ div >
32- < div class ="col-md-2 ">
33- < button class ="btn btn-danger " onclick ="$('#relation_row_{{rfc}}').remove(); return false; "> Delete</ button >
34- </ div >
35- </ div >
36- </ div >
37- {% endfor %}
38-
39- < div class ="form-group ">
40- < div id ="relation_row_0 " class ="row ">
41- < div class ="col-md-5 ">
42- < input class ="form-control " id ="new_relation_row_0 " name ="new_relation_row_0 " type ="text " placeholder ="rfc... ">
43- < p class ="help-block "> Enter new affected RFC.</ p >
44- </ div >
17+ < label class ="control-label "> Affected RFCs</ label >
4518
46- < div class ="col-md-5 ">
47- < select class ="form-control " id ="statchg_relation_row_0 " name ="statchg_relation_row_0 ">
48- < option value ="" {% if choice_slug == "" %}selected{% endif %} > (None)</ option >
49- {% for rel in relation_slugs %}
50- < option value ="{{rel.slug}} " {% if choice_slug == rel.slug %}selected{%endif%} > {{rel.name}}</ option >
51- {% endfor %}
52- </ select >
53- </ div >
54- </ div >
55- </ div >
19+ {% include "doc/status_change/edit_related_rows.html" %}
5620
57- < div class ="row ">
58- < div class ="col-md-10 ">
59- < p class ="alert alert-danger ">
60- {% comment %}XXX FACELIFT:{% endcomment %}
61- < b > Note:</ b > With the redesigned UI, you currently must add new affected RFCs one by one, hitting submit each time. Only when the list of affected RFCs is complete and correct, move on to fill out the bottom part of the form (and do a final submit).
62- </ p >
63-
64- < div class ="buttonlist ">
65- < button type ="submit " class ="btn btn-primary " name ="submit_response "> Submit</ button >
66- < a class ="btn btn-default pull-right " href ="{{ back_url }} "> Back</ a >
67- </ div >
68- < p > </ p >
69- </ div >
70- </ div >
71-
72- < div class ="row ">
21+ < div class ="row ">
7322 < div class ="col-md-10 ">
7423 {% bootstrap_form form %}
7524
@@ -82,3 +31,7 @@ <h1>Begin RFC status change review</h1>
8231
8332</ form >
8433{% endblock %}
34+
35+ {% block js %}
36+ < script src ="/facelift/js/status-change-edit-relations.js "> </ script >
37+ {% endblock %}
0 commit comments