diff --git a/scipost/templates/scipost/_draft_registration_tables.html b/scipost/templates/scipost/_draft_registration_tables.html index c0284e05f513e43b82db434f455aa0e9943a2655..1ee9fdbcb2bc9707eb1f56faa4a5fd665ab48d4d 100644 --- a/scipost/templates/scipost/_draft_registration_tables.html +++ b/scipost/templates/scipost/_draft_registration_tables.html @@ -1,400 +1,388 @@ -<div class="row"> - <div class="col-12"> - <h2 class="highlight">Invitations sent (response pending)</h2> - <a href="javascript:void(0)" data-toggle="toggle" data-target="#invitations_sent">view/hide</a> - <div id="invitations_sent"> - <h3>Editorial Fellows ({{sent_reg_inv_fellows|length}})</h3> +<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> - <table class="table" id="table_sent_reg_inv_fellows"> - <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 %} - · - <a href="{% url 'scipost:mark_reg_inv_as_declined' invitation_id=fellow.id %}">Declined</a> - {% endif %} - </td> +<div id="invitations_sent"> + <h3>Editorial Fellows ({{sent_reg_inv_fellows|length}})</h3> - </tr> - {% empty %} - <tr> - <td colspan="7">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> + <table class="table" id="table_sent_reg_inv_fellows"> + <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 %} + · + <a href="{% url 'scipost:mark_reg_inv_as_declined' invitation_id=fellow.id %}">Declined</a> + {% endif %} + </td> - <h3>Normal Contributors ({{sent_reg_inv_contrib|length}})</h3> - <table class="table" id="table_sent_reg_inv_contrib"> - <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 %} - · - <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> + </tr> + {% empty %} + <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"> + <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 %} + · + <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> - <table class="table" id="table_sent_reg_inv_ref"> - <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> - <td colspan="7">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> + <h3>Referees ({{sent_reg_inv_ref|length}})</h3> + <table class="table" id="table_sent_reg_inv_ref"> + <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> + <td colspan="7">No invitations found.</td> + </tr> + {% endfor %} + </tbody> + </table> - <h3>Cited in sub ({{sent_reg_inv_cited_sub|length}})</h3> - <table class="table" id="table_sent_reg_inv_cited_sub"> - <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> - <td colspan="7">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> + <h3>Cited in sub ({{sent_reg_inv_cited_sub|length}})</h3> + <table class="table" id="table_sent_reg_inv_cited_sub"> + <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> + <td colspan="7">No invitations found.</td> + </tr> + {% endfor %} + </tbody> + </table> - <h3>Cited in pub ({{sent_reg_inv_cited_pub|length}})</h3> - <table class="table" id="table_sent_reg_inv_cited_pub"> - <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> - <td colspan="7">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> - </div> - </div> + <h3>Cited in pub ({{sent_reg_inv_cited_pub|length}})</h3> + <table class="table" id="table_sent_reg_inv_cited_pub"> + <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> + <td colspan="7">No invitations found.</td> + </tr> + {% endfor %} + </tbody> + </table> </div> +<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 class="row"> - <div class="col-12"> - <h2 class="highlight">Invitations sent (responded)</h2> - <a href="javascript:void(0)" data-toggle="toggle" data-target="#invitations_responded">view/hide</a> - - <div id="invitations_responded"> - <h3>Editorial Fellows ({{resp_reg_inv_fellow|length}})</h3> - <table class="table" id="table_resp_reg_inv_fellow"> - <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> - <td colspan="6">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> +<div id="invitations_responded"> + <h3>Editorial Fellows ({{resp_reg_inv_fellow|length}})</h3> + <table class="table" id="table_resp_reg_inv_fellow"> + <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> + <td colspan="6">No invitations found.</td> + </tr> + {% endfor %} + </tbody> + </table> - <h3>Normal Contributors ({{resp_reg_inv_contrib|length}})</h3> - <table class="table" id="table_resp_reg_inv_contrib"> - <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> - <td colspan="6">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> + <h3>Normal Contributors ({{resp_reg_inv_contrib|length}})</h3> + <table class="table" id="table_resp_reg_inv_contrib"> + <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> + <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"> - <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> - <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"> + <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> + <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"> - <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> - <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"> + <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> + <td colspan="6">No invitations found.</td> + </tr> + {% endfor %} + </tbody> + </table> - <h3>Cited in pub ({{resp_reg_inv_cited_pub|length}})</h3> - <table class="table" id="table_resp_reg_inv_cited_pub"> - <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> - <td colspan="6">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> + <h3>Cited in pub ({{resp_reg_inv_cited_pub|length}})</h3> + <table class="table" id="table_resp_reg_inv_cited_pub"> + <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> + <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"> - <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> - <td colspan="6">No invitations found.</td> - </tr> - {% endfor %} - </tbody> - </table> - </div> - </div> + <h3>Declined ({{decl_reg_inv|length}})</h3> + <table class="table" id="table_decl_reg_inv"> + <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> + <td colspan="6">No invitations found.</td> + </tr> + {% endfor %} + </tbody> + </table> </div> -<div class="row"> - <div class="col-12"> - <h2 class="highlight">List of already-registered contributors ({{names_reg_contributors|length}})</h3> - <a href="javascript:void(0)" data-toggle="toggle" data-target="#registered_contributors">view/hide</a> +<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 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> - </div> + {% endfor %} </div> diff --git a/scipost/templates/scipost/draft_registration_invitation.html b/scipost/templates/scipost/draft_registration_invitation.html index 7c81a644bbb4352521510044e6030b9a4e8612b6..6724952a0e9522b0c91b8df0f3c6f37d66b4777f 100644 --- a/scipost/templates/scipost/draft_registration_invitation.html +++ b/scipost/templates/scipost/draft_registration_invitation.html @@ -56,8 +56,10 @@ $(document).ready(function(){ <div class="row"> <div class="col-12"> - <h2 class="highlight">Existing drafts (to be processed by Admin) ({{existing_drafts|length}}) <small><a href="javascript:void(0)" data-toggle="toggle" data-target="#table_existing_drafts">view/hide</a></small></h2> - <table class="table" id="table_existing_drafts" style="display: none;"> + <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> diff --git a/scipost/templates/scipost/registration_invitations.html b/scipost/templates/scipost/registration_invitations.html index c32f893c5ffcf5add6c927a91e2aae5d6ddaa685..38eb89dae284083e99507173d342de3cdbd4ea64 100644 --- a/scipost/templates/scipost/registration_invitations.html +++ b/scipost/templates/scipost/registration_invitations.html @@ -65,7 +65,7 @@ $(document).ready(function(){ <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)" 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</a> <table class="table" id="table_existing_drafts"> <thead>