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
52 lines (52 loc) · 2.15 KB
/
edit_related_rows.html
File metadata and controls
52 lines (52 loc) · 2.15 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
44
45
46
47
48
49
50
51
52
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
{% for rfc,choice_slug in form.relations.items %}
<div class="input-group mb-3">
<select class="form-control select2-field"
data-ajax--url="{% url 'ietf.doc.views_search.ajax_select2_search_docs' model_name='document' doc_type='draft' %}"
data-max-entries="1"
data-width="resolve"
data-result-key="text"
name="new_relation_row_{{ rfc }}"
data-placeholder="Enter new affected RFC.">
<option id="{{ rfc|upper }}" selected>
{{ rfc|upper }}
</option>
</select>
<select class="form-select" 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>
<button class="btn btn-danger delete">Delete</button>
</div>
{% endfor %}
<div class="input-group mb-3 new-relation-row">
<select name="new_relation_row_"
class="form-control select2-field"
data-ajax--url="{% url 'ietf.doc.views_search.ajax_select2_search_docs' model_name='document' doc_type='draft' %}"
data-result-key="text"
data-max-entries="1"
data-width="resolve"
data-placeholder="Enter new affected RFC.">
</select>
<select class="form-select" name="statchg_relation_row_">
<option value="" {% if choice_slug == "" %}selected{% endif %}>
(Select proposed new status.)
</option>
{% for rel in relation_slugs %}
<option value="{{ rel.slug }}"
{% if choice_slug == rel.slug %}selected{% endif %}>
{{ rel.name }}
</option>
{% endfor %}
</select>
<button class="btn btn-outline-danger delete" disabled>Delete</button>
</div>