* s/Internet Draft/Internet-Draft/i * s/draft/Internet-Draft/i or s/draft/I-D/i * s/ID/I-D/ * Fix tests * a -> an * Undo case-change to ASCII * Address code review comments * Add migrations * Add merged migration * fix: straighten out migrations * fix: finish straightening out migrations --------- Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
134 lines
6.1 KiB
HTML
134 lines
6.1 KiB
HTML
{% 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 %}I-D 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 scope="col" data-sort="draft">Internet-Draft</th>
|
|
<th scope="col" data-sort="date">Submitted</th>
|
|
<th scope="col" data-sort="passes">Passes Checks</th>
|
|
<th scope="col" 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 Internet-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 Internet-Draft upload.
|
|
</p>
|
|
{% else %}
|
|
<table id="waiting-for-draft"
|
|
class="waiting-for-draft table table-sm table-striped tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-sort="name">Name</th>
|
|
<th scope="col" data-sort="rev">Rev</th>
|
|
<th scope="col" data-sort="date">Submitted</th>
|
|
<th scope="col"></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 %} |