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
58 lines (58 loc) · 2.66 KB
/
Copy pathedit_related_rows.html
File metadata and controls
58 lines (58 loc) · 2.66 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
53
54
55
56
57
58
{# 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">
<label for="new_relation_row_{{ rfc }}" aria-label="Enter new affected RFC"></label>
<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 }}"
id="new_relation_row_{{ rfc }}"
data-placeholder="Enter new affected RFC.">
<option id="{{ rfc|upper }}" selected>
{{ rfc|upper }}
</option>
</select>
<label for="statchg_relation_row_{{ rfc }}" aria-label="Select proposed new status"></label>
<select class="form-select" name="statchg_relation_row_{{ rfc }}" id="statchg_relation_row_{{ rfc }}">
<option {% 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 type="button" class="btn btn-danger delete">Delete</button>
</div>
{% endfor %}
<div class="input-group mb-3 new-relation-row">
<label for="new_relation_row_rfc" aria-label="Enter new affected RFC"></label>
<select name="new_relation_row_"
id="new_relation_row_rfc"
class="form-control select2-field"
data-ajax--url="{% url 'ietf.doc.views_search.ajax_select2_search_docs' model_name='docalias' doc_type='draft' %}"
data-result-key="text"
data-max-entries="1"
data-width="resolve"
data-placeholder="Enter new affected RFC.">
</select>
<label for="statchg_relation_row" aria-label="Select proposed new status"></label>
<select id="statchg_relation_row" class="form-select" name="statchg_relation_row_">
<option {% 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 type="button" class="btn btn-outline-danger delete" disabled>Delete</button>
</div>