datatracker/ietf/templates/submit/manual_post.html
Lars Eggert cc723ce449 More fixes.
- Legacy-Id: 19899
2022-01-31 19:17:50 +00:00

135 lines
6 KiB
HTML

{# bs5ok #}
{% 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 %}