forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapprovals.html
More file actions
120 lines (120 loc) · 4.78 KB
/
approvals.html
File metadata and controls
120 lines (120 loc) · 4.78 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
{% extends "submit/submit_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static person_filters ietf_filters %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}Draft submission approvals{% endblock %}
{% load ietf_filters %}
{% block submit_content %}
{% origin %}
{% if user.is_authenticated %}
<h2 class="mt-5" id="approvals">Submissions you can approve</h2>
{% if not approvals %}
<p class="alert alert-info my-3">
You don't have any submissions to approve.
</p>
{% else %}
<table class="approvals table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="draft">Draft</th>
<th data-sort="date">Submitted</th>
</tr>
</thead>
<tbody>
{% for s in approvals %}
<tr>
<td>
<a href="{% url "ietf.submit.views.submission_status" submission_id=s.pk access_token=s.access_token %}">
{{ s.name }}-{{ s.rev }}
</a>
</td>
<td>{{ s.submission_date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<h2 class="mt-5" id="preapprovals">Pre-approved drafts not yet submitted</h2>
{% if user|has_role:"Secretariat,WG Chair,RG Chair" %}
<p>
<a class="btn btn-primary"
href="{% url "ietf.submit.views.add_preapproval" %}">Add pre-approval</a>
</p>
{% endif %}
{% if not preapprovals %}
<p class="alert alert-info my-3">
No pre-approvals within your jurisdiction found.
</p>
{% else %}
<table class="preapprovals table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="draft">Draft name</th>
<th data-sort="date">Pre-approved</th>
<th data-sort="by">By</th>
<th></th>
</tr>
</thead>
<tbody>
{% for p in preapprovals %}
<tr>
<td>{{ p.name|urlize_ietf_docs }}</td>
<td>{{ p.time|date:"Y-m-d" }}</td>
<td>{% person_link p.by %}</td>
<td>
<a class="btn btn-danger btn-sm float-end"
href="{% url "ietf.submit.views.cancel_preapproval" preapproval_id=p.id %}">
Cancel
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<h2 class="mt-5" id="recently-approved">Approved drafts within the past {{ days }} days</h2>
{% if not recently_approved %}
<p class="alert alert-info my-3">
No drafts approved.
</p>
{% else %}
<table class="recently-approved table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="draft">Draft</th>
<th data-sort="date">Submitted</th>
</tr>
</thead>
<tbody>
{% for d in recently_approved %}
<tr>
<td>
<a href="{% url "ietf.doc.views_doc.document_main" d.name %}">{{ d.name }}</a>
</td>
<td>{{ d.submission_date }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% else %}
<h2>Submission of approvals</h2>
<p>
This is where chairs and the secretariat can approve and pre-approve document
submissions which require approval, such as WG <code>-00</code> drafts.
</p>
<p>
You need to
<a href="https://{{ request.get_host }}/accounts/login/?next={{ request.get_full_path|urlencode }}"
rel="nofollow">
sign in
</a>
in order to handle approvals.
</p>
{% endif %}
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}