SciPost Code Repository

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

Add warning about ref deadline in select_referee

parent be5e3fce
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,9 @@
<div class="row">
<div class="col-12">
{% if workdays_left_to_report < 15 %}
<h4 class="highlight p-1"><strong class="text-danger">Warning: there are {{ workdays_left_to_report }} days left before the refereeing deadline.</strong><br/><br/>Consider resetting the deadline at the <a href="{% url 'submissions:editorial_page' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}">Editorial Page</a> before inviting a referee.</h4>
{% endif %}
{% if profiles_found %}
<h3>Matching people in our database:</h3>
<table class="table">
......
......@@ -45,6 +45,7 @@ from .utils import SubmissionUtils
from colleges.permissions import fellowship_required, fellowship_or_admin_required
from comments.forms import CommentForm
from common.helpers import get_new_secrets_key
from common.utils import workdays_between
from invitations.constants import STATUS_SENT
from invitations.models import RegistrationInvitation
from journals.models import Journal
......@@ -898,6 +899,7 @@ def select_referee(request, identifier_w_vn_nr):
context['profile_form'] = SimpleProfileForm()
context.update({
'submission': submission,
'workdays_left_to_report': workdays_between(timezone.now(), submission.reporting_deadline),
'referee_search_form': referee_search_form,
'queryresults': queryresults,
})
......
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