SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 2e510bbd authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Template update

parent 2ed7fdaa
No related branches found
No related tags found
No related merge requests found
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<p> <p>
Dear Dear
{% if invitation.message_style == 'F' %} {% if invitation.message_style == 'F' %}
{{ invitation.get_title_display }} {{ invitation.last_name }} {{ invitation.get_title_display }} {{ invitation.last_name }},
{% else %} {% else %}
{{ invitation.first_name }} {{ invitation.first_name }},
{% endif %}, {% endif %}
</p> </p>
{% if invitation.invitation_type == 'R' %} {% if invitation.invitation_type == 'R' %}
......
<h2 class="highlight">Invitations sent (response pending)</h2> <h2 class="highlight">Invitations sent (response pending)</h2>
<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#invitations_sent">view/hide +</a>
<div id="invitations_sent"> <h3>Editorial Fellows ({{sent_reg_inv_fellows|length}})</h3>
<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"> <table class="table" id="table_sent_reg_inv_fellows" style="display: none;">
<thead> <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.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:mark_reg_inv_as_declined' invitation_id=fellow.id %}">Declined</a>
{% endif %}
</td>
</tr>
{% empty %}
<tr> <tr>
<th>Last name</th> <td colspan="7">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
<th></th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for fellow in sent_reg_inv_fellows %} </table>
<tr>
<td>{{ fellow.last_name }}</td>
<td>{{ fellow.first_name }}</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:mark_reg_inv_as_declined' invitation_id=fellow.id %}">Declined</a>
{% endif %}
</td>
</tr> <h3>Normal Contributors ({{sent_reg_inv_contrib|length}})</h3>
{% empty %} <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_contrib">view/hide +</a>
<tr>
<td colspan="7">No invitations found.</td>
</tr>
{% endfor %}
</tbody>
</table>
<h3>Normal Contributors ({{sent_reg_inv_contrib|length}})</h3> <table class="table" id="table_sent_reg_inv_contrib" style="display: none;">
<table class="table" id="table_sent_reg_inv_contrib"> <thead>
<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 invitation in sent_reg_inv_contrib %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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:mark_reg_inv_as_declined' invitation_id=invitation.id %}">Declined</a>
{% endif %}
</td>
</tr>
{% empty %}
<tr> <tr>
<th>Last name</th> <td colspan="7">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
<th></th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in sent_reg_inv_contrib %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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:mark_reg_inv_as_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>
<h3>Referees ({{sent_reg_inv_ref|length}})</h3> <table class="table" id="table_sent_reg_inv_ref" style="display: none;">
<table class="table" id="table_sent_reg_inv_ref"> <thead>
<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 invitation in sent_reg_inv_ref %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="7">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
<th></th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in sent_reg_inv_ref %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <h3>Cited in sub ({{sent_reg_inv_cited_sub|length}})</h3>
<table class="table" id="table_sent_reg_inv_cited_sub"> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_sent_reg_inv_cited_sub">view/hide +</a>
<thead>
<table class="table" id="table_sent_reg_inv_cited_sub" 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 invitation in sent_reg_inv_cited_sub %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="7">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
<th></th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in sent_reg_inv_cited_sub %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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>
<h3>Cited in pub ({{sent_reg_inv_cited_pub|length}})</h3> <table class="table" id="table_sent_reg_inv_cited_pub" style="display: none;">
<table class="table" id="table_sent_reg_inv_cited_pub"> <thead>
<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 invitation in sent_reg_inv_cited_pub %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="7">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
<th></th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in sent_reg_inv_cited_pub %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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>
</div>
<h2 class="highlight">Invitations sent (responded)</h2> <h2 class="highlight">Invitations sent (responded)</h2>
<a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#invitations_responded">view/hide +</a>
<div id="invitations_responded"> <h3>Editorial Fellows ({{resp_reg_inv_fellow|length}})</h3>
<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">
<thead> <table class="table" id="table_resp_reg_inv_fellow" 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>
</tr>
</thead>
<tbody>
{% for invitation in resp_reg_inv_fellow %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="6">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in resp_reg_inv_fellow %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <h3>Normal Contributors ({{resp_reg_inv_contrib|length}})</h3>
<table class="table" id="table_resp_reg_inv_contrib"> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_contrib">view/hide +</a>
<thead>
<table class="table" id="table_resp_reg_inv_contrib" 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>
</tr>
</thead>
<tbody>
{% for invitation in resp_reg_inv_contrib %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="6">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in resp_reg_inv_contrib %} </table>
<tr>
<td>{{ invitation.last_name }}</td> <h3>Referees ({{resp_reg_inv_ref|length}})</h3>
<td>{{ invitation.first_name }}</td> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_ref">view/hide +</a>
<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> <table class="table" id="table_resp_reg_inv_ref" style="display: none;">
<table class="table" id="table_resp_reg_inv_ref"> <thead>
<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 invitation in resp_reg_inv_ref %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="6">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in resp_reg_inv_ref %} </table>
<tr>
<td>{{ invitation.last_name }}</td> <h3>Cited in sub ({{resp_reg_inv_cited_sub|length}})</h3>
<td>{{ invitation.first_name }}</td> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_cited_sub">view/hide +</a>
<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> <table class="table" id="table_resp_reg_inv_cited_sub" style="display: none;">
<table class="table" id="table_resp_reg_inv_cited_sub"> <thead>
<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 invitation in resp_reg_inv_cited_sub %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="6">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in resp_reg_inv_cited_sub %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <h3>Cited in pub ({{resp_reg_inv_cited_pub|length}})</h3>
<table class="table" id="table_resp_reg_inv_cited_pub"> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_resp_reg_inv_cited_pub">view/hide +</a>
<thead>
<table class="table" id="table_resp_reg_inv_cited_pub" 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>
</tr>
</thead>
<tbody>
{% for invitation in resp_reg_inv_cited_pub %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="6">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in resp_reg_inv_cited_pub %} </table>
<tr>
<td>{{ invitation.last_name }}</td> <h3>Declined ({{decl_reg_inv|length}})</h3>
<td>{{ invitation.first_name }}</td> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#table_decl_reg_inv">view/hide +</a>
<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> <table class="table" id="table_decl_reg_inv" style="display: none;">
<table class="table" id="table_decl_reg_inv"> <thead>
<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 invitation in decl_reg_inv %}
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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> <tr>
<th>Last name</th> <td colspan="6">No invitations found.</td>
<th>First name</th>
<th>Email</th>
<th>Date sent</th>
<th>Type</th>
<th>Invited by</th>
</tr> </tr>
</thead> {% endfor %}
<tbody> </tbody>
{% for invitation in decl_reg_inv %} </table>
<tr>
<td>{{ invitation.last_name }}</td>
<td>{{ invitation.first_name }}</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>
</div>
<h2 class="highlight">List of already-registered contributors ({{names_reg_contributors|length}})</h3> <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> <a href="javascript:void(0)" class="btn mb-2" data-toggle="toggle" data-target="#registered_contributors">view/hide +</a>
......
...@@ -64,10 +64,10 @@ $(document).ready(function(){ ...@@ -64,10 +64,10 @@ $(document).ready(function(){
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<h2 class="highlight">Existing drafts (to be processed by Admin) ({{existing_drafts|length}})</h2> <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</a> <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"> <table class="table" id="table_existing_drafts" style="display: none;">
<thead> <thead>
<tr> <tr>
<th>Last name</th> <th>Last name</th>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment