2015-10-16 17:53:02 +00:00
{% extends "symposion/reviews/base.html" %}
{% load bootstrap %}
2017-04-24 06:31:13 +00:00
{% load i18n %}
2015-10-16 17:53:02 +00:00
{% block body %}
2016-06-29 13:17:15 +00:00
< div >
< a class = "btn btn-primary" href = "{% url " user_random " proposal . section . slug % } " >
{% trans "Jump to a random unreviewed proposal" %}
< / a >
< / div >
2016-06-13 23:40:29 +00:00
{% if is_manager %}
2015-10-16 17:53:02 +00:00
< div class = "pull-right" >
2017-04-16 06:01:57 +00:00
< form class = "result-form form-inline form-horizontal" method = "POST" action = "" >
2015-10-16 17:53:02 +00:00
{% csrf_token %}
< div class = "btn-group" >
{% if proposal.result.status == "accepted" %}
< a class = "btn dropdown-toggle btn-success" data-toggle = "dropdown" href = "#" > Accepted < span class = "caret" > < / span > < / a >
2017-09-16 10:55:10 +00:00
< div class = "dropdown-menu pull-right" >
2015-10-16 17:53:02 +00:00
< div class = "btn-group" >
< input type = "submit" name = "result_submit" value = "reject" class = "btn btn-xs btn-danger" / >
2018-01-04 11:49:11 +00:00
< input type = "submit" name = "result_submit" value = "standby" class = "btn btn-info btn-xs" / >
< input type = "submit" name = "result_submit" value = "undecide" class = "btn btn-primary btn-xs" / >
2015-10-16 17:53:02 +00:00
< / div >
< / div >
2016-09-18 10:40:55 +00:00
< input type = "submit" name = "publish_changes" value = "Publish Changes" class = "btn btn-success" / >
2015-10-16 17:53:02 +00:00
{% else %}
{% if proposal.result.status == "rejected" %}
< a class = "btn dropdown-toggle btn-danger" data-toggle = "dropdown" href = "#" > Rejected < span class = "caret" > < / span > < / a >
2017-09-16 10:55:10 +00:00
< div class = "dropdown-menu pull-right" >
2015-10-16 17:53:02 +00:00
< div class = "btn-group" >
< input type = "submit" name = "result_submit" value = "accept" class = "btn btn-xs btn-success" / >
2018-01-04 11:49:11 +00:00
< input type = "submit" name = "result_submit" value = "standby" class = "btn btn-info btn-xs" / >
2015-10-16 17:53:02 +00:00
< input type = "submit" name = "result_submit" value = "undecide" class = "btn btn-default btn-xs" / >
< / div >
< / div >
{% else %}
{% if proposal.result.status == "standby" %}
2018-01-04 11:49:11 +00:00
< a class = "btn btn-info dropdown-toggle" data-toggle = "dropdown" href = "#" > Standby < span class = "caret" > < / span > < / a >
2017-09-16 10:55:10 +00:00
< div class = "dropdown-menu pull-right" >
2015-10-16 17:53:02 +00:00
< div class = "btn-group" >
< input type = "submit" name = "result_submit" value = "accept" class = "btn btn-xs btn-success" / >
< input type = "submit" name = "result_submit" value = "reject" class = "btn btn-xs btn-danger" / >
2018-01-04 11:49:11 +00:00
< input type = "submit" name = "result_submit" value = "undecide" class = "btn btn-primary btn-xs" / >
2015-10-16 17:53:02 +00:00
< / div >
< / div >
{% else %}
2018-01-04 11:49:11 +00:00
< a class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" href = "#" > Undecided < span class = "caret" > < / span > < / a >
2017-09-16 10:55:10 +00:00
< div class = "dropdown-menu pull-right" >
2015-10-16 17:53:02 +00:00
< div class = "btn-group" >
< input type = "submit" name = "result_submit" value = "accept" class = "btn btn-xs btn-success" / >
< input type = "submit" name = "result_submit" value = "reject" class = "btn btn-xs btn-danger" / >
2018-01-04 11:49:11 +00:00
< input type = "submit" name = "result_submit" value = "standby" class = "btn btn-info btn-xs" / >
2015-10-16 17:53:02 +00:00
< / div >
< / div >
{% endif %}
{% endif %}
{% endif %}
< / div >
< / form >
< / div >
{% endif %}
< h3 > #{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }})< / h3 >
< div class = "tabbable" >
< ul class = "nav nav-tabs" >
< li class = "active" > < a href = "#proposal-detail" data-toggle = "tab" > {% trans "Proposal Details" %}< / a > < / li >
< li > < a href = "#proposal-reviews" data-toggle = "tab" > {% trans "Reviews" %} < span class = "badge" > {{ reviews|length }}< / span > < / a > < / li >
< li > < a href = "#proposal-feedback" data-toggle = "tab" > {% trans "Speaker Feedback" %} < span class = "badge" > {{ proposal.messages.all|length }}< / span > < / a > < / li >
< / ul >
< div class = "tab-content" >
< div class = "tab-pane active" id = "proposal-detail" >
{% include "symposion/proposals/_proposal_fields.html" %}
< / div >
< div class = "tab-pane" id = "proposal-reviews" >
< h4 > {% trans "Current Results" %}< / h4 >
< table class = "table table-striped" >
< thead >
2016-06-13 07:58:55 +00:00
< th > +2 votes< / th >
2015-10-16 17:53:02 +00:00
< th > +1 votes< / th >
< th > -1 votes< / th >
2016-06-13 07:58:55 +00:00
< th > -2 votes< / th >
2015-10-16 17:53:02 +00:00
< th > {% trans "Total Responses" %}
< / thead >
< tbody >
< tr >
2016-06-13 07:58:55 +00:00
< td > {{ proposal.plus_two }}< / td >
2015-10-16 17:53:02 +00:00
< td > {{ proposal.plus_one }}< / td >
< td > {{ proposal.minus_one }}< / td >
2016-06-13 07:58:55 +00:00
< td > {{ proposal.minus_two }}< / td >
2015-10-16 17:53:02 +00:00
< td > {{ proposal.total_votes }}< / td >
< / tr >
< / tbody >
< / table >
< hr / >
{% if review_form %}
2017-04-16 06:01:57 +00:00
< form method = "POST" action = "#proposal-reviews" class = "review-form form-horizontal" >
2015-10-16 17:53:02 +00:00
< legend > {% trans "Submit Review" %}< / legend >
< p > Enter your vote and any comment to go along with it. You can revise your vote or comment multiple times with an existing vote (your previously recorded score will be replaced during calculations). < b > Your vote and comments are not public and will only be viewable by other reviewers.< / b > < / p >
{% csrf_token %}
{{ review_form|bootstrap }}
< div class = "form-action" >
2016-08-15 04:04:55 +00:00
< input type = "submit" class = "btn btn-primary" name = "vote_submit" value = "Submit Review" / >
< input type = "submit" class = "btn btn-primary" name = "vote_submit_and_random" value = "Submit Review and jump to random proposal" / >
2015-10-16 17:53:02 +00:00
< / div >
< / form >
{% else %}
< p > You do not have permission to vote on this proposal.< / p >
{% endif %}
{% if reviews %}
< h5 > Review Comments< / h5 >
{% for review in reviews %}
< div class = "review-box" >
< div class = "vote pull-left" >
< span > {{ review.vote }}< / span >
< / div >
{% if is_manager %}
< div class = "pull-right" >
2017-04-16 06:01:57 +00:00
< form class = "form-inline form-horizontal" action = "{% url " review_delete " review . id % } " method = "POST" >
2015-10-16 17:53:02 +00:00
{% csrf_token %}
< button class = "btn btn-xs btn-danger" type = "submit" > Delete< / button >
< / form >
< / div >
{% endif %}
< div class = "review-content" >
2016-08-15 04:04:55 +00:00
< b >
{% if review.user.speaker_profile %}
{{ review.user.speaker_profile.name }}
{% else %}
2017-03-26 04:14:27 +00:00
{{ review.user.username }}
2016-08-15 04:04:55 +00:00
{% endif %}
< / b >
2015-10-16 17:53:02 +00:00
{{ review.submitted_at|timesince }} ago < br / >
2016-08-09 01:22:04 +00:00
{{ review.comment_html|safe }}
2015-10-16 17:53:02 +00:00
< / div >
< / div >
{% endfor %}
{% endif %}
< / div >
< div class = "tab-pane" id = "proposal-feedback" >
{% if review_messages %}
< h3 > {% trans "Conversation with the submitter" %}< / h3 >
{% for message in review_messages %}
< div class = "comment-box" >
< div class = "commment-content" >
2017-03-26 04:14:27 +00:00
< b > {{ message.user.username }}< / b >
2015-10-16 17:53:02 +00:00
{{ message.submitted_at|timesince }} ago < br / >
{{ message.message|safe }}
< / div >
< / div >
{% endfor %}
< hr / >
{% endif %}
2017-04-16 06:01:57 +00:00
< form class = "form-horizontal" action = "" method = "POST" accept-charset = "utf-8" >
2015-10-16 17:53:02 +00:00
< legend > {% trans "Send a message" %}< / legend >
< p >
{% blocktrans %}
If you'd like to communicate with the submitter, use the following form and he or she will be
notified and given the opportunity to respond.
{% endblocktrans %}
< / p >
{% csrf_token %}
{{ message_form|bootstrap }}
< div class = "form-actions" >
< input type = "submit" class = "btn btn-primary" name = "message_submit" value = "Send Message" / >
< / div >
< / form >
< / div >
< / div >
< / div >
2016-06-29 13:17:15 +00:00
< div >
< a class = "btn btn-primary" href = "{% url " user_random " proposal . section . slug % } " >
{% trans "Jump to a random unreviewed proposal" %}
< / a >
< / div >
2015-10-16 17:53:02 +00:00
{% endblock %}