-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2777 adds a modal intermediary warning users before creating a new r…
…eview round.
- Loading branch information
Showing
3 changed files
with
54 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div class="reveal small" id="newround" data-reveal data-animation-in="slide-in-up" | ||
data-animation-out="slide-out-down"> | ||
<div class="card"> | ||
<div class="card-divider"> | ||
<h4><i class="fa fa-plus-circle"> </i>Create New Review Round</h4> | ||
</div> | ||
<div class="card-section"> | ||
<button class="close-button" data-close aria-label="Close reveal" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
{% if article.current_review_round_object.reviewassignment_set.all %} | ||
<p>Creating a new review round will automatically withdraw active assignments. Creating a new round will | ||
have the following effect for the current round's assignments:</p> | ||
<ul> | ||
{% for assignment in article.current_review_round_object.reviewassignment_set.all %} | ||
<li>Assignment #{{ assignment.pk }} by {{ assignment.reviewer.full_name }} | ||
<ul> | ||
<li>{% if assignment.status.code == 'wait' or assignment.status.code == 'accept' %} | ||
Current Status: Active, this assignment will be closed.{% else %}Current Status: | ||
{{ assignment.status.display }}, no action required.{% endif %}</li> | ||
</ul> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% else %} | ||
<p>There are no active assignments. Use the button below to create a new round.</p> | ||
{% endif %} | ||
<form method="POST" action="{% url 'review_in_review' article.pk %}"> | ||
{% csrf_token %} | ||
<button name="new_review_round" type="submit" class="button"> | ||
Create New Review Round | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters