forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetail.html
More file actions
209 lines (182 loc) · 6.25 KB
/
detail.html
File metadata and controls
209 lines (182 loc) · 6.25 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% block title %}Liaison statement: {% include 'liaisons/liaison_title.html' %}{% endblock %}
{% block content %}
{% origin %}
<h1>
Liaison statement<br><small>{% include 'liaisons/liaison_title.html' %}</small>
</h1>
{% include "liaisons/detail_tabs.html" %}
<table class="table table-condensed table-striped">
<tr>
<th>State</th>
<td>{{ liaison.state }}</td>
</tr>
<tr>
<th class="text-nowrap">Submitted Date</th>
<td>{{ liaison.submitted|date:"Y-m-d" }}</td></tr>
<tr>
<th class="text-nowrap">From Group{{ liaison.from_groups.all|pluralize }}</th>
<td>{{ liaison.from_groups_display }}</td>
</tr>
{% if liaison.from_contact %}
<tr>
<th class="text-nowrap">From Contact</th>
<td>
<a href="mailto:{{ liaison.from_contact.address }}">{{ liaison.from_contact.person }}</a>
</td>
</tr>
{% endif %}
<tr>
<th class="text-nowrap">To Group{{ liaison.to_groups.all|pluralize }}</th>
<td>{{ liaison.to_groups_display }}</td>
</tr>
{% if liaison.to_contacts %}
<tr>
<th class="text-nowrap">To Contacts</th>
<td>
{{ liaison.to_contacts|parse_email_list|make_one_per_line|safe|linebreaksbr }}
</td>
</tr>
{% endif %}
{% if liaison.cc_contacts %}
<tr>
<th class="text-nowrap">Cc</th><td>{{ liaison.cc_contacts|parse_email_list|make_one_per_line|safe|linebreaksbr }}</td>
</tr>
{% endif %}
{% if liaison.response_contacts %}
<tr>
<th class="text-nowrap">Response Contact</th>
<td>{{ liaison.response_contacts|parse_email_list|make_one_per_line|safe|linebreaksbr }}</td>
</tr>
{% endif %}
{% if liaison.technical_contacts %}
<tr>
<th class="text-nowrap">Technical Contact</th>
<td>{{ liaison.technical_contacts|parse_email_list|make_one_per_line|safe|linebreaksbr }}</td>
</tr>
{% endif %}
{% if liaison.action_holder_contacts %}
<tr>
<th class="text-nowrap">Action Holder Contacts</th>
<td>{{ liaison.action_holder_contacts|parse_email_list|make_one_per_line|safe|linebreaksbr }}</td>
</tr>
{% endif %}
<tr>
<th class="text-nowrap">Purpose</th>
<td>{{ liaison.purpose.name }}</td>
</tr>
{% if liaison.deadline %}
<tr>
<th class="text-nowrap">Deadline</th>
<td>
{{ liaison.deadline }}
{% if liaison.action_taken %}
<span class="actionTaken">Action Taken</span>
{% else %}
<span class="noActionTaken">Action Needed</span>
{% endif %}
{% if can_take_care %}
<form method="post" class="pull-right">
{% csrf_token %}
<input class="btn btn-warning btn-xs" type="submit" value="Mark as action taken" name='do_action_taken'>
</form>
{% endif %}
</td>
</tr>
{% endif %}
{% if relations %}
<tr>
<th class="text-nowrap">Liaisons referring to this</th>
<td>
{% for rel in relations %}
<a href="{% url "ietf.liaisons.views.liaison_detail" rel.pk %}">
{% if rel.title %}{{ rel.title }}{% else %}Liaison #{{ rel.pk }}{% endif %}
</a>
<br>
{% endfor %}
</td>
</tr>
{% endif %}
{% if liaison.related_to %}
{% if liaison.related_to.approved or is_approving %}
<tr>
<th class="text-nowrap">Referenced liaison</th>
<td>
<a href="{% url "ietf.liaisons.views.liaison_detail" liaison.related_to.pk %}">
{% if liaison.related_to.title %}{{ liaison.related_to.title }}{% else %}Liaison #{{ liaison.related_to.pk }}{% endif %}
</a>
</td>
</tr>
{% endif %}
{% endif %}
{% if liaison.other_identifiers %}
<tr>
<th class="text-nowrap">Other Identifiers</th>
<td>{{ liaison.other_identifiers }}</td>
</tr>
{% endif %}
<tr>
<th class="text-nowrap">Attachments</th>
<td>
{% for doc in liaison.active_attachments.all %}
<a href="{{ doc.get_href }}">{{ doc.title }}</a>
{% if not forloop.last %}<br>{% endif %}
{% empty %}
(None)
{% endfor %}
</td>
</tr>
{% if relations_by %}
<tr>
<th class="text-nowrap">Liaisons referred by this one</th>
<td>
{% for rel in relations_by %}
<a href="{% url "ietf.liaisons.views.liaison_detail" rel.pk %}">{% if rel.title %}{{ rel.title }}{% else %}Liaison #{{ rel.pk }}{% endif %}</a><br />
{% endfor %}
</td>
</tr>
{% endif %}
{% if relations_to %}
<tr>
<th class="text-nowrap">Liaisons referring to this one</th>
<td>
{% for rel in relations_to %}
<a href="{% url "ietf.liaisons.views.liaison_detail" rel.pk %}">{% if rel.title %}{{ rel.title }}{% else %}Liaison #{{ rel.pk }}{% endif %}</a><br />
{% endfor %}
</td>
</tr>
{% endif %}
{% if liaison.from_contact and liaison.body %}
<tr>
<th class="text-nowrap">Body</th>
<td>
<pre>{{ liaison.body|maybewordwrap:"80" }}</pre>
</td>
</tr>
{% endif %}
</table>
<form method="post">
{% csrf_token %}
{% if liaison.state.slug == 'pending' and can_edit %}
<a class="btn btn-default" href="{% url "ietf.liaisons.views.liaison_edit" object_id=liaison.pk %}">Edit liaison</a>
{% elif liaison.state.slug == 'posted' and user|has_role:"Secretariat" %}
<a class="btn btn-default" href="{% url "ietf.liaisons.views.liaison_edit" object_id=liaison.pk %}">Edit liaison</a>
{% endif %}
{% if liaison.state.slug != 'dead' and can_reply %}
<a class="btn btn-default" href="{% url "ietf.liaisons.views.liaison_reply" object_id=liaison.pk %}">Reply to liaison</a>
{% endif %}
{% if liaison.state.slug == 'pending' and can_edit %}
<input class="btn btn-default" type="submit" value="Approve" name='approved' />
<input class="btn btn-default" type="submit" value="Mark as Dead" name='dead' />
{% endif %}
{% if liaison.state.slug == 'posted' and user|has_role:"Secretariat" %}
<a class="btn btn-default" href="{% url "ietf.liaisons.views.liaison_resend" object_id=liaison.pk %}">Resend statement</a>
{% endif %}
{% if liaison.state.slug == 'dead' and can_edit %}
<input class="btn btn-default" type="submit" value="Resurrect" name='resurrect' />
{% endif %}
</form>
{% endblock %}