forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_related_rows.html
More file actions
43 lines (41 loc) · 1.59 KB
/
edit_related_rows.html
File metadata and controls
43 lines (41 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
{% for rfc,choice_slug in form.relations.items %}
<div class="form-group">
<div class="row">
<div class="col-md-5">
<input class="form-control" name="new_relation_row_{{rfc}}" type="text" value="{{rfc}}">
</div>
<div class="col-md-5">
<select class="form-control" name="statchg_relation_row_{{rfc}}">
<option value="" {% if choice_slug == "" %}selected{% endif %}>(None)</option>
{% for rel in relation_slugs %}
<option value="{{rel.slug}}" {% if choice_slug == rel.slug %}selected{%endif%}>{{rel.name}}</option>
{% endfor %}
</select>
</div>
<div class="col-md-2">
<button class="btn btn-danger delete">Delete</button>
</div>
</div>
</div>
{% endfor %}
<div class="form-group new-relation-row">
<div class="row">
<div class="col-md-5">
<input name="new_relation_row_" type="text" class="form-control" placeholder="rfc...">
<p class="help-block">Enter new affected RFC.</p>
</div>
<div class="col-md-5">
<select class="form-control" name="statchg_relation_row_">
<option value="" {% if choice_slug == "" %}selected{% endif %}>(None)</option>
{% for rel in relation_slugs %}
<option value="{{rel.slug}}" {% if choice_slug == rel.slug %}selected{%endif%}>{{rel.name}}</option>
{% endfor %}
</select>
<p class="help-block">Select proposed new status.</p>
</div>
<div class="col-md-2">
<button class="btn btn-danger delete" style="display:none">Delete</button>
</div>
</div>
</div>