forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanual_post.html
More file actions
133 lines (133 loc) · 5.97 KB
/
manual_post.html
File metadata and controls
133 lines (133 loc) · 5.97 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
{% extends "submit/submit_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}Draft submissions awaiting manual posting{% endblock %}
{% load ietf_filters %}
{% block submit_content %}
{% origin %}
<h2 class="mt-3" id="man_post">Submissions needing manual posting</h2>
{% if not manual %}
<p class="alert alert-info my-3" id="no-manual">
There are no submissions needing manual posting.
</p>
{% else %}
<table id="manual"
class="submissions table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="draft">Draft</th>
<th data-sort="date">Submitted</th>
<th data-sort="passes">Passes Checks</th>
<th data-sort="metadata">Metadata</th>
</tr>
</thead>
<tbody>
{% for s in manual %}
<tr>
{% if user.is_authenticated %}
<td>
<a href="{% url "ietf.submit.views.submission_status" submission_id=s.pk access_token=s.access_token %}">
{{ s.name }}-{{ s.rev }}
</a>
</td>
{% else %}
<td>
<a href="{% url "ietf.submit.views.submission_status" submission_id=s.pk %}">{{ s.name }}-{{ s.rev }}</a>
</td>
{% endif %}
<td>{{ s.submission_date }}</td>
<td>
{% if s.passes_checks %}
<span class="text-success">Ok</span>
{% else %}
<span class="text-danger">Fails</span>
{% endif %}
</td>
<td>
{% if s.errors %}
<span class="text-danger">Errors</span>
{% else %}
<span class="text-success">Ok</span>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<h2 class="mt-3" id="id_upload">Submissions awaiting draft upload</h2>
{% if not waiting_for_draft %}
<p class="alert alert-info my-3" id="no-waiting-for-draft">
There are no submissions awaiting draft upload.
</p>
{% else %}
<table id="waiting-for-draft"
class="waiting-for-draft table table-sm table-striped tablesorter">
<thead>
<tr>
<th data-sort="name">Name</th>
<th data-sort="rev">Rev</th>
<th data-sort="date">Submitted</th>
</tr>
</thead>
<tbody>
{% for s in waiting_for_draft %}
<tr>
{% if user.is_authenticated %}
<td>
<a id="aw{{ s.pk }}"
href="{% url "ietf.submit.views.submission_status" submission_id=s.pk access_token=s.access_token %}">
{{ s.name }}
</a>
</td>
{% else %}
<td>
<a id="aw{{ s.pk }}"
href="{% url "ietf.submit.views.submission_status" submission_id=s.pk %}">{{ s.name }}</a>
</td>
{% endif %}
<td>{{ s.rev }}</td>
<td>{{ s.submission_date }}</td>
<td>
{% if user|has_role:"Secretariat" %}
<form id="cancel-submission"
action="/submit/awaitingdraft/cancel"
method="post">
{% csrf_token %}
<input type="hidden" name="submission_id" value="{{ s.pk }}">
<input type="hidden" name="access_token" value="{{ s.access_token }}">
<button class="btn btn-danger btn-sm float-end ms-1"
type="submit"
data-bs-toggle="tooltip"
title="Cancels the submission permanently.">
Cancel submission
</button>
</form>
{% endif %}
{% if user|has_role:"Secretariat" %}
<a id="add-submission-email{{ s.pk }}"
class="btn btn-primary btn-sm float-end ms-1"
href="{% url "ietf.submit.views.add_manualpost_email" submission_id=s.pk access_token=s.access_token %}">
Add email
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if user|has_role:"Secretariat" %}
<a id="new-submission-email"
class="btn btn-primary"
href="{% url "ietf.submit.views.add_manualpost_email" %}">
New submission from email
</a>
{% endif %}
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}