SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 26304185 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Improve select_referee with more info

parent da21acd1
No related branches found
No related tags found
No related merge requests found
...@@ -82,14 +82,18 @@ ...@@ -82,14 +82,18 @@
<th>Name</th> <th>Name</th>
<th>Registered<br/>Contributor?</th> <th>Registered<br/>Contributor?</th>
<th>Email<br/>known?</th> <th>Email<br/>known?</th>
<th>Accepts<br/>refereeing<br/>requests?</th>
<th>Action<br/><span class="text-muted"><small>(Unregistered people will also automatically receive a registration invitation)</small></span></th> <th>Action<br/><span class="text-muted"><small>(Unregistered people will also automatically receive a registration invitation)</small></span></th>
</tr> </tr>
{% for profile in profiles_found %} {% for profile in profiles_found %}
<tr> <tr>
<td>{{ profile }}</td> <td>{{ profile }}</td>
<td>{% if profile.contributor %}<i class="fa fa-check-circle text-success"></i>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td> <td>{% if profile.contributor %}<i class="fa fa-check-circle text-success"></i>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td>
<td>{% if profile.email %}<i class="fa fa-check-circle text-success"></i>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td> <td>{% if profile.email %}<i class="fa fa-check-circle text-success"></i> <span class="small text-muted">{{ profile.email }}</span>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td>
<td>{% if profile.email %}Send refereeing invitation <a href="{% url 'submissions:invite_referee' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr profile_id=profile.id auto_reminders_allowed=1 %}">with</a> or <a href="{% url 'submissions:invite_referee' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr profile_id=profile.id auto_reminders_allowed=0 %}">without</a> auto-reminders {% include 'partials/submissions/refinv_auto_reminders_tooltip.html' %}{% else %}<span class="text-danger">Cannot send an invitation without an email</span> <i class="fa fa-arrow-right"></i> Add one: <td>{% if profile.accepts_refereeing_requests %}<i class="fa fa-check-circle text-success"></i>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td>
<td>{% if profile.accepts_refereeing_requests %}
{% if profile.email %}Send refereeing invitation <a href="{% url 'submissions:invite_referee' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr profile_id=profile.id auto_reminders_allowed=1 %}">with</a> or <a href="{% url 'submissions:invite_referee' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr profile_id=profile.id auto_reminders_allowed=0 %}">without</a> auto-reminders {% include 'partials/submissions/refinv_auto_reminders_tooltip.html' %}
{% else %}<span class="text-danger">Cannot send an invitation without an email</span> <i class="fa fa-arrow-right"></i> Add one:
<form class="form-inline" action="{% url 'profiles:add_profile_email' profile_id=profile.id %}" method="post"> <form class="form-inline" action="{% url 'profiles:add_profile_email' profile_id=profile.id %}" method="post">
{% csrf_token %} {% csrf_token %}
{{ profile_email_form|bootstrap }} {{ profile_email_form|bootstrap }}
...@@ -97,6 +101,9 @@ ...@@ -97,6 +101,9 @@
<input class="btn btn-outline-secondary" type="submit" value="Add"> <input class="btn btn-outline-secondary" type="submit" value="Add">
</form> </form>
{% endif %} {% endif %}
{% else %}
<span class="text-danger">This person does not accept refereeing requests</span>
{% endif %}
</td> </td>
</tr> </tr>
{% empty %} {% empty %}
......
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