From 35462101bf619deaeab457950d1cd661ec0542eb Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 20 Feb 2018 12:08:32 +0100
Subject: [PATCH] Remove old templates

---
 .../scipost/_assignments_summary_as_td.html   |   0
 .../scipost/_draft_registration_tables.html   | 425 ------------------
 .../scipost/citation_notifications.html       |  36 --
 .../scipost/contributors_filter.html          |  50 ---
 .../draft_registration_invitation.html        |  99 ----
 .../draft_registration_invitation_form.html   |  48 --
 .../scipost/registration_invitation_form.html |  29 --
 .../scipost/registration_invitation_list.html | 105 -----
 .../registration_invitations_cleanup.html     |  63 ---
 9 files changed, 855 deletions(-)
 delete mode 100644 scipost/templates/scipost/_assignments_summary_as_td.html
 delete mode 100644 scipost/templates/scipost/_draft_registration_tables.html
 delete mode 100644 scipost/templates/scipost/citation_notifications.html
 delete mode 100644 scipost/templates/scipost/contributors_filter.html
 delete mode 100644 scipost/templates/scipost/draft_registration_invitation.html
 delete mode 100644 scipost/templates/scipost/draft_registration_invitation_form.html
 delete mode 100644 scipost/templates/scipost/registration_invitation_form.html
 delete mode 100644 scipost/templates/scipost/registration_invitation_list.html
 delete mode 100644 scipost/templates/scipost/registration_invitations_cleanup.html

diff --git a/scipost/templates/scipost/_assignments_summary_as_td.html b/scipost/templates/scipost/_assignments_summary_as_td.html
deleted file mode 100644
index e69de29bb..000000000
diff --git a/scipost/templates/scipost/_draft_registration_tables.html b/scipost/templates/scipost/_draft_registration_tables.html
deleted file mode 100644
index 413db3e20..000000000
--- a/scipost/templates/scipost/_draft_registration_tables.html
+++ /dev/null
@@ -1,425 +0,0 @@
-
-<h2 class="highlight">Invitations sent (response pending)</h2>
-
-<h3>Editorial Fellows ({{sent_reg_inv_fellows|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_fellows">view/hide +</a>
-
-<table class="table" id="table_sent_reg_inv_fellows" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for fellow in sent_reg_inv_fellows %}
-          <tr>
-            <td>{{ fellow.last_name }}</td>
-            <td>{{ fellow.first_name }}</td>
-	    <td>{{ fellow.get_title_display }}</td>
-            <td>{{ fellow.email }}</td>
-            <td>{{ fellow.date_sent }} </td>
-            <td>{{ fellow.get_invitation_type_display }}</td>
-            <td>{{ fellow.invited_by.user.first_name }} {{ fellow.invited_by.user.last_name }}</td>
-            <td>
-                {% if perms.scipost.can_invite_fellows %}
-                    <a href="{% url 'scipost:renew_registration_invitation' invitation_id=fellow.id %}">Renew</a> ({{ fellow.nr_reminders }}) {% if fellow.date_last_reminded %}(last: {{ fellow.date_last_reminded|date:"Y-m-d" }}){% endif %}
-                    &middot;
-                    <a href="{% url 'scipost:registration_invitation_mark_declined' invitation_id=fellow.id %}">Declined</a>
-                {% endif %}
-            </td>
-
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="7">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Normal Contributors ({{sent_reg_inv_contrib|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_contrib">view/hide +</a>
-
-<table class="table" id="table_sent_reg_inv_contrib" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in sent_reg_inv_contrib %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-            <td>
-                {% if perms.scipost.can_invite_fellows %}
-                    <a href="{% url 'scipost:renew_registration_invitation' invitation_id=invitation.id %}">Renew</a> ({{ invitation.nr_reminders }}) {% if invitation.date_last_reminded %}(last: {{ invitation.date_last_reminded|date:"Y-m-d" }}){% endif %}
-                    &middot;
-                    <a href="{% url 'scipost:registration_invitation_mark_declined' invitation_id=invitation.id %}">Declined</a>
-                {% endif %}
-            </td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="7">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-
-<h3>Referees ({{sent_reg_inv_ref|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_ref">view/hide +</a>
-
-<table class="table" id="table_sent_reg_inv_ref" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in sent_reg_inv_ref %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-            <td>
-                {% if perms.scipost.can_invite_fellows %}
-                    <a href="{% url 'scipost:renew_registration_invitation' invitation_id=invitation.id %}">Renew</a> ({{ invitation.nr_reminders }}) {% if invitation.date_last_reminded %}(last: {{ invitation.date_last_reminded|date:"Y-m-d" }}){% endif %}
-                {% endif %}
-            </td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="7">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Cited in sub ({{sent_reg_inv_cited_sub|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_cited_sub">view/hide +</a>
-
-<table class="table" id="table_sent_reg_inv_cited_sub" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in sent_reg_inv_cited_sub %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-            <td>
-                {% if perms.scipost.can_invite_fellows %}
-                    <a href="{% url 'scipost:renew_registration_invitation' invitation_id=invitation.id %}">Renew</a> ({{ invitation.nr_reminders }}) {% if invitation.date_last_reminded %}(last: {{ invitation.date_last_reminded|date:"Y-m-d" }}){% endif %}
-                {% endif %}
-            </td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="7">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-
-<h3>Cited in pub ({{sent_reg_inv_cited_pub|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_cited_pub">view/hide +</a>
-
-<table class="table" id="table_sent_reg_inv_cited_pub" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-            <th></th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in sent_reg_inv_cited_pub %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-            <td>
-                {% if perms.scipost.can_invite_fellows %}
-                    <a href="{% url 'scipost:renew_registration_invitation' invitation_id=invitation.id %}">Renew</a> ({{ invitation.nr_reminders }}) {% if invitation.date_last_reminded %}(last: {{ invitation.date_last_reminded|date:"Y-m-d" }}){% endif %}
-                {% endif %}
-            </td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="7">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h2 class="highlight">Invitations sent (responded)</h2>
-
-<h3>Editorial Fellows ({{resp_reg_inv_fellow|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_fellow">view/hide +</a>
-
-<table class="table" id="table_resp_reg_inv_fellow" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in resp_reg_inv_fellow %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="6">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Normal Contributors ({{resp_reg_inv_contrib|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_contrib">view/hide +</a>
-
-<table class="table" id="table_resp_reg_inv_contrib" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in resp_reg_inv_contrib %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="6">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Referees ({{resp_reg_inv_ref|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_ref">view/hide +</a>
-
-<table class="table" id="table_resp_reg_inv_ref" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in resp_reg_inv_ref %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="6">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Cited in sub ({{resp_reg_inv_cited_sub|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_cited_sub">view/hide +</a>
-
-<table class="table" id="table_resp_reg_inv_cited_sub" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in resp_reg_inv_cited_sub %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="6">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Cited in pub ({{resp_reg_inv_cited_pub|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_cited_pub">view/hide +</a>
-
-<table class="table" id="table_resp_reg_inv_cited_pub" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in resp_reg_inv_cited_pub %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="6">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h3>Declined ({{decl_reg_inv|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_decl_reg_inv">view/hide +</a>
-
-<table class="table" id="table_decl_reg_inv" style="display: none;">
-    <thead>
-        <tr>
-            <th>Last name</th>
-            <th>First name</th>
-	    <th>Title</th>
-            <th>Email</th>
-            <th>Date sent</th>
-            <th>Type</th>
-            <th>Invited by</th>
-        </tr>
-    </thead>
-    <tbody>
-        {% for invitation in decl_reg_inv %}
-          <tr>
-            <td>{{ invitation.last_name }}</td>
-            <td>{{ invitation.first_name }}</td>
-	    <td>{{ invitation.get_title_display }}</td>
-            <td>{{ invitation.email }}</td>
-            <td>{{ invitation.date_sent }} </td>
-            <td>{{ invitation.get_invitation_type_display }}</td>
-            <td>{{ invitation.invited_by.user.first_name }} {{ invitation.invited_by.user.last_name }}</td>
-          </tr>
-        {% empty %}
-            <tr>
-                <td colspan="6">No invitations found.</td>
-            </tr>
-        {% endfor %}
-    </tbody>
-</table>
-
-<h2 class="highlight">List of already-registered contributors ({{names_reg_contributors|length}})</h3>
-<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#registered_contributors">view/hide +</a>
-
-<div class="card-columns" id="registered_contributors" style="display: none;">
-    {% for first_name, last_name in names_reg_contributors %}
-        <div class="card border-0">
-          {{ last_name }}, {{ first_name }}
-        </div>
-    {% endfor %}
-</div>
diff --git a/scipost/templates/scipost/citation_notifications.html b/scipost/templates/scipost/citation_notifications.html
deleted file mode 100644
index 49c661684..000000000
--- a/scipost/templates/scipost/citation_notifications.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% block pagetitle %}: citation notifications{% endblock pagetitle %}
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <span class="breadcrumb-item">Pool</span>
-{% endblock %}
-
-{% block content %}
-
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Citation notifications to process</h1>
-        {% if errormessage %}
-            <h3 class="text-danger">{{ errormessage }}</h3>
-        {% endif %}
-
-        <ul>
-          {% for un in unprocessed_notifications %}
-              <li>
-                  {{ un }} <a href="{% url 'scipost:process_citation_notification' cn_id=un.id %}">Process this notification</a>
-              </li>
-          {% empty %}
-              <li>There are no citation notifications to process.</li>
-          {% endfor %}
-        </ul>
-
-        <p>Return to your <a href="{% url 'scipost:personal_page' %}">personal page</a>.</p>
-    </div>
-</div>
-
-
-
-{% endblock content %}
diff --git a/scipost/templates/scipost/contributors_filter.html b/scipost/templates/scipost/contributors_filter.html
deleted file mode 100644
index 12418bd8a..000000000
--- a/scipost/templates/scipost/contributors_filter.html
+++ /dev/null
@@ -1,50 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% load bootstrap %}
-
-{% block pagetitle %}: contributors filter{% endblock pagetitle %}
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <a href="{% url 'scipost:draft_registration_invitation' %}" class="breadcrumb-item">Draft registration invitation</a>
-    <span class="breadcrumb-item">Contributors filter</span>
-{% endblock %}
-
-{% block content %}
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Contributors filter</h1>
-
-        <p>This form can be used to split your list of names into a list of names with registered or already invited Contributors and a list of unknown names according to the current database.</p>
-        <p>Please, for every name use the format <code>{last name}</code> or  <code>{last name}, {first name}</code> and use one name per line.</p>
-
-        <form method="post">
-              {% csrf_token %}
-              {{ form|bootstrap }}
-              <input type="submit" class="btn btn-primary" value="Filter"/>
-        </form>
-    </div>
-</div>
-
-{% if form.is_bound %}
-
-    <hr class="divider">
-    <h2>Filter result</h2>
-    {% if names_not_found %}
-        <h3>New names</h3>
-        <pre class="mb-3"><code>{% for name in names_not_found %}{{ name }}{% if not forloop.last %}<br>{% endif %}{% endfor %}</code></pre>
-    {% endif %}
-
-    {% if names_found %}
-        <h3>Names found in the system</h3>
-        <pre class="mb-3"><code>{% for name in names_found %}{{ name }}{% if not forloop.last %}<br>{% endif %}{% endfor %}</code></pre>
-    {% endif %}
-
-    {% if invitations_found %}
-        <h3>Invitations (pending response) found in database</h3>
-        <pre class="mb-3"><code>{% for name in invitations_found %}{{ name }}{% if not forloop.last %}<br>{% endif %}{% endfor %}</code></pre>
-    {% endif %}
-{% endif %}
-
-{% endblock %}
diff --git a/scipost/templates/scipost/draft_registration_invitation.html b/scipost/templates/scipost/draft_registration_invitation.html
deleted file mode 100644
index a5f9cb836..000000000
--- a/scipost/templates/scipost/draft_registration_invitation.html
+++ /dev/null
@@ -1,99 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% load bootstrap %}
-
-{% block pagetitle %}: registration invitations{% endblock pagetitle %}
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <span class="breadcrumb-item">Draft registration invitation</span>
-{% endblock %}
-
-{% block content %}
-
-<script>
-$(document).ready(function(){
-
-    $('#id_invitation_type').on('change', function() {
-        switch ($(this).val()) {
-            case "ci":
-                $("#id_cited_in_submission").parents('.form-group').show();
-                $("#id_cited_in_publication").parents('.form-group').hide();
-            break;
-            case "cp":
-                $("#id_cited_in_submission").parents('.form-group').hide();
-                $("#id_cited_in_publication").parents('.form-group').show();
-            break;
-            default:
-                $("#id_cited_in_submission").parents('.form-group').hide();
-                $("#id_cited_in_publication").parents('.form-group').hide();
-        }
-    }).trigger('change');
-});
-</script>
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Draft a registration invitation</h1>
-        <p>If you have a list of names you want to check with the current database of users, <a href="{% url 'scipost:contributors_filter' %}">please click here</a>.</p>
-    </div>
-</div>
-
-<div class="row">
-    <div class="col-12">
-        <h2 class="highlight">Draft a new invitation</h2>
-        {% if errormessage %}
-            <h3 class="text-danger">{{ errormessage }}</h3>
-        {% endif %}
-
-        <form action="{% url 'scipost:draft_registration_invitation' %}" method="post">
-              {% csrf_token %}
-              {{ form.media }}
-              {{ form|bootstrap }}
-              <input type="submit" class="btn btn-primary" value="Submit"/>
-        </form>
-    </div>
-</div>
-
-<div class="row">
-    <div class="col-12">
-        <h2 class="highlight">Existing drafts (to be processed by Admin) ({{existing_drafts|length}})</h2>
-        <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_existing_drafts">view/hide +</a>
-
-        <table class="table" id="table_existing_drafts">
-            <thead>
-                <tr>
-                    <th>Last name</th>
-                    <th>First name</th>
-                    <th>Email</th>
-                    <th>Date drafted</th>
-                    <th>Type</th>
-                    <th>Drafted by</th>
-                    <th></th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for draft in existing_drafts %}
-                  <tr>
-                    <td>{{ draft.last_name }}</td>
-                    <td>{{ draft.first_name }}</td>
-                    <td>{{ draft.email }}</td>
-                    <td>{{ draft.date_drafted }} </td>
-                    <td>{{ draft.get_invitation_type_display }}</td>
-                    <td>{{ draft.drafted_by.user.first_name }} {{ draft.drafted_by.user.last_name }}</td>
-                    <td>
-                        {% if draft.drafted_by.user == request.user %}
-                            <a href="{% url 'scipost:draft_registration_invitation_form' draft.id %}">Edit</a>
-                        {% endif %}</td>
-                  </tr>
-                {% empty %}
-                    <tr>
-                        <td colspan="7">No drafts found.</td>
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-</div>
-
-{% endblock %}
diff --git a/scipost/templates/scipost/draft_registration_invitation_form.html b/scipost/templates/scipost/draft_registration_invitation_form.html
deleted file mode 100644
index 49b3ca9ee..000000000
--- a/scipost/templates/scipost/draft_registration_invitation_form.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% block pagetitle %}: edit draft reg inv{% endblock pagetitle %}
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <a href="{% url 'scipost:registration_invitations' %}" class="breadcrumb-item">Registration Invitations</a>
-    <span class="breadcrumb-item">Pool</span>
-{% endblock %}
-
-{% load bootstrap %}
-
-{% block content %}
-
-<script>
-$(document).ready(function(){
-
-    $('#id_invitation_type').on('change', function() {
-        switch ($(this).val()) {
-            case "ci":
-                $("#id_cited_in_submission").parents('.form-group').show();
-                $("#id_cited_in_publication").parents('.form-group').hide();
-            break;
-            case "cp":
-                $("#id_cited_in_submission").parents('.form-group').hide();
-                $("#id_cited_in_publication").parents('.form-group').show();
-            break;
-            default:
-                $("#id_cited_in_submission").parents('.form-group').hide();
-                $("#id_cited_in_publication").parents('.form-group').hide();
-        }
-    }).trigger('change');
-});
-</script>
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Edit a draft registration invitation</h1>
-        <form action="{% url 'scipost:draft_registration_invitation_form' draft_id=draft_inv_form.instance.id %}" method="post">
-            {% csrf_token %}
-            {{draft_inv_form.media}}
-            {{draft_inv_form|bootstrap}}
-            <input type="submit" class="btn btn-secondary">
-        </form>
-    </div>
-</div>
-
-{% endblock content %}
diff --git a/scipost/templates/scipost/registration_invitation_form.html b/scipost/templates/scipost/registration_invitation_form.html
deleted file mode 100644
index 2de392390..000000000
--- a/scipost/templates/scipost/registration_invitation_form.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% block pagetitle %}: registration invitations{% endblock pagetitle %}
-
-{% load scipost_extras %}
-{% load bootstrap %}
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <a href="{% url 'scipost:registration_invitations' %}" class="breadcrumb-item">Registration invitations</a>
-    <span class="breadcrumb-item">Process</span>
-{% endblock %}
-
-{% block content %}
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Send Registration Invitation</h1>
-        <br>
-        <form method="post">
-            {% csrf_token %}
-            {{ form.media }}
-            {{ form|bootstrap }}
-            <input type="submit" class="btn btn-primary" value="Submit">
-        </form>
-    </div>
-</div>
-
-{% endblock %}
diff --git a/scipost/templates/scipost/registration_invitation_list.html b/scipost/templates/scipost/registration_invitation_list.html
deleted file mode 100644
index 365ce72b3..000000000
--- a/scipost/templates/scipost/registration_invitation_list.html
+++ /dev/null
@@ -1,105 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% block pagetitle %}: registration invitations{% endblock pagetitle %}
-
-{% load scipost_extras %}
-{% load bootstrap %}
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <span class="breadcrumb-item">Registration invitations</span>
-{% endblock %}
-
-{% block content %}
-
-<script>
-$(document).ready(function(){
-
-    $('#id_invitation_type').on('change', function() {
-        switch ($(this).val()) {
-            case "ci":
-                $("#id_cited_in_submission").parents('.form-group').show();
-                $("#id_cited_in_publication").parents('.form-group').hide();
-            break;
-            case "cp":
-                $("#id_cited_in_submission").parents('.form-group').hide();
-                $("#id_cited_in_publication").parents('.form-group').show();
-            break;
-            default:
-                $("#id_cited_in_submission").parents('.form-group').hide();
-                $("#id_cited_in_publication").parents('.form-group').hide();
-        }
-    }).trigger('change');
-});
-</script>
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Registration Invitations</h1>
-        <h3>Actions</h3>
-        <ul>
-            {% if perms.scipost.can_manage_registration_invitations %}
-                <li><a href="{% url 'scipost:registration_invitations_cleanup' %}">Perform a cleanup</a> of existing invitations</li>
-            {% endif %}
-            <li><a href="#">Send new invitation</a></li>
-        </ul>
-    </div>
-</div>
-
-<div class="row">
-    <div class="col-12">
-        <h2 class="highlight">Existing drafts (to be processed by Admin)</h2>
-        <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_existing_drafts">view/hide ({{existing_drafts|length}}) +</a>
-
-        <table class="table" id="table_existing_drafts" style="display: none;">
-            <thead>
-                <tr>
-                    <th>Last name</th>
-                    <th>First name</th>
-                    <th>Email</th>
-                    <th>Date drafted</th>
-                    <th>Type</th>
-                    <th>Drafted by</th>
-                    <th colspan="2">Actions</th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for draft in existing_drafts %}
-                  <tr>
-                    <td>{{ draft.last_name }}</td>
-                    <td>{{ draft.first_name }}</td>
-                    <td>{{ draft.email }}</td>
-                    <td>{{ draft.date_drafted }} </td>
-                    <td>{{ draft.get_invitation_type_display }}</td>
-                    <td>{{ draft.drafted_by.user.first_name }} {{ draft.drafted_by.user.last_name }}</td>
-                    <td>
-                        <a href="{% url 'scipost:draft_registration_invitation_form' draft_id=draft.id %}">Edit</a> |
-                        <a href="{% url 'scipost:registration_invitations_from_draft' draft_id=draft.id %}">Process</a> |
-                        <a href="{% url 'scipost:mark_draft_inv_as_processed' draft_id=draft.id %}">Mark as processed</a>
-                    </td>
-                    <td>
-                        <ul>
-                        {% for ac in draft|associated_contributors %}
-                            <li>
-                                <a href="{% url 'scipost:map_draft_reg_inv_to_contributor' draft_id=draft.id contributor_id=ac.id %}">Map to {{ ac.user.first_name }} {{ ac.user.last_name }}</a>
-                            </li>
-                        {% empty %}
-                            <li>No associated contributors found.</li>
-                        {% endfor %}
-                    </ul>
-                    </td>
-                  </tr>
-                {% empty %}
-                    <tr>
-                        <td colspan="8">No drafts found.</td>
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-    </div>
-</div>
-
-{% include 'scipost/_draft_registration_tables.html' %}
-
-
-{% endblock %}
diff --git a/scipost/templates/scipost/registration_invitations_cleanup.html b/scipost/templates/scipost/registration_invitations_cleanup.html
deleted file mode 100644
index 539c00d80..000000000
--- a/scipost/templates/scipost/registration_invitations_cleanup.html
+++ /dev/null
@@ -1,63 +0,0 @@
-{% extends 'scipost/_personal_page_base.html' %}
-
-{% block pagetitle %}: registration invitations cleanup{% endblock pagetitle %}
-
-
-{% block breadcrumb_items %}
-    {{block.super}}
-    <a href="{% url 'scipost:registration_invitations' %}" class="breadcrumb-item">Registration invitations</a>
-    <span class="breadcrumb-item">Cleanup</span>
-{% endblock %}
-
-{% block content %}
-
-
-<div class="row">
-    <div class="col-12">
-        <h1 class="highlight">Registration Invitations Cleanup</h1>
-    </div>
-</div>
-
-
-<div class="row">
-    <div class="col-12">
-        <h3>Email duplicates (a contributor exists with the email address in these invitations)</h3>
-        <table class="table">
-            <thead>
-                <tr>
-                    <th>Last name</th>
-                    <th>First name</th>
-                    <th>Email</th>
-                    <th>Date sent</th>
-                    <th>Type</th>
-                    <th>Invited by</th>
-                </tr>
-            </thead>
-            <tbody>
-                {% for inv in invs_to_cleanup %}
-                    <tr>
-                        <td>{{ inv.last_name }}</td>
-                        <td>{{ inv.first_name }}</td>
-                        <td>{{ inv.email }}</td>
-                        <td>{{ inv.date_sent }} </td>
-                        <td>{{ inv.invitation_type }}</td>
-                        <td>{{ inv.invited_by.user.last_name }}</td>
-                        <td>
-                            <a href="{% url 'scipost:remove_registration_invitation' invitation_id=inv.id %}">Remove</a>
-                        </td>
-                    </tr>
-                {% empty %}
-                    <tr>
-                        <td colspan="7">
-                            There were no duplicate emails found in the sets of Contributors/Invitations.
-                        </td>
-                    </tr>
-                {% endfor %}
-            </tbody>
-        </table>
-
-        <p>Return to the <a href="{% url 'scipost:registration_invitations' %}">Registration Invitations</a> page.</p>
-    </div>
-</div>
-
-{% endblock content %}
-- 
GitLab