2015-10-16 17:53:02 +00:00
|
|
|
{% extends "symposion/proposals/base.html" %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block head_title %}{{ proposal.title }}{% endblock %}
|
2016-06-27 21:58:06 +00:00
|
|
|
{% block page_title %}#{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }}){% endblock %}
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2018-06-30 02:01:19 +00:00
|
|
|
{% block proposals_body %}
|
|
|
|
<div>
|
|
|
|
<ul class="nav nav-pills mb-5">
|
|
|
|
<li class="nav-item"><a class="nav-link active" href="#proposal-detail" data-toggle="tab">{% trans "Proposal Details" %}</a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="#supporting-document" data-toggle="tab">{% trans "Supporting Documents" %}</a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link" href="#reviewer-feedback" data-toggle="tab">{% trans "Reviewer Feedback" %} ({{ proposal.messages.all|length }})</a></li>
|
2017-04-25 05:26:10 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="proposal-detail">
|
2017-04-25 05:07:08 +00:00
|
|
|
{% include "symposion/proposals/_proposal_fields.html" %}
|
|
|
|
{% if not proposal.cancelled %}
|
|
|
|
{% if request.user == proposal.speaker.user %}
|
2017-05-07 06:15:41 +00:00
|
|
|
<a class="btn btn-lg btn-primary" href="{% url "proposal_edit" proposal.pk %}">{% trans "Edit this proposal" %}</a>
|
|
|
|
<a class="btn btn-lg btn-success" role="button" href="{% url "proposal_speaker_manage" proposal.id %}">Manage Additional Speakers</a>
|
|
|
|
<a class="btn btn-lg btn-danger" href="{% url "proposal_cancel" proposal.pk %}">{% trans "Cancel this proposal" %}</a>
|
2017-04-25 05:07:08 +00:00
|
|
|
{% else %}
|
|
|
|
<a href="{% url "proposal_leave" proposal.pk %}" class="btn btn-default">{% trans "Remove me from this proposal" %}</a>
|
|
|
|
{% endif %}
|
2016-06-27 08:13:38 +00:00
|
|
|
{% else %}
|
2017-04-25 05:07:08 +00:00
|
|
|
{% trans 'Cancelled' %}
|
2016-06-27 08:13:38 +00:00
|
|
|
{% endif %}
|
2017-04-25 05:07:08 +00:00
|
|
|
</div>
|
2017-04-25 05:26:10 +00:00
|
|
|
|
|
|
|
<div class="tab-pane" id="supporting-document">
|
2018-06-30 02:01:19 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h2 class="my-4">Documents</h2>
|
|
|
|
{% if proposal.supporting_documents.exists %}
|
2017-04-25 05:07:08 +00:00
|
|
|
<table class="table table-striped">
|
|
|
|
{% for document in proposal.supporting_documents.all %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ document.download_url }}">{{ document.description }}</a></td>
|
|
|
|
<td>
|
|
|
|
<form class="form-horizontal" style="margin: 0;" method="post" action="{% url "proposal_document_delete" document.pk %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button type="submit" class="btn btn-xs">{% trans 'delete' %}</button>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2018-06-30 02:01:19 +00:00
|
|
|
{% else %}
|
2017-04-25 05:26:10 +00:00
|
|
|
<p>{% trans 'No supporting documents attached to this proposal.' %}</p>
|
2018-06-30 02:01:19 +00:00
|
|
|
{% endif %}
|
|
|
|
<a class="btn btn-primary {% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url "proposal_document_create" proposal.pk %}"><i class="fa fa-upload"></i> {% trans 'Add Document' %}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-04-25 05:26:10 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane" id="reviewer-feedback">
|
2018-06-30 02:01:19 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h2 class="my-4">{% trans 'Conversation with Reviewers' %}</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-04-25 05:26:10 +00:00
|
|
|
{% for message in proposal.messages.all %}
|
2018-06-30 02:01:19 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
2017-05-07 06:15:41 +00:00
|
|
|
<div class="comment monospace-text"><em>{{ message.message|safe }}</em></div>
|
|
|
|
</div>
|
2018-06-30 02:01:19 +00:00
|
|
|
<div class="card-footer">
|
2017-05-07 06:15:41 +00:00
|
|
|
<div><b>{{ message.user.username }}</b> {{ message.submitted_at|timesince }} ago</div>
|
|
|
|
</div>
|
2017-04-25 05:07:08 +00:00
|
|
|
</div>
|
2017-04-25 05:26:10 +00:00
|
|
|
<br />
|
|
|
|
{% endfor %}
|
2018-06-30 02:01:19 +00:00
|
|
|
<h3 class="my-4">{% trans 'Leave a Message' %}</h3>
|
2017-04-25 05:26:10 +00:00
|
|
|
<p>{% trans 'You can leave a message for the reviewers here.' %}</p>
|
|
|
|
<form class="form-horizontal" action="" method="POST" accept-charset="utf-8">
|
|
|
|
{% csrf_token %}
|
|
|
|
<fieldset>
|
|
|
|
{% include "_form_snippet.html" with form=message_form %}
|
|
|
|
<div class="btn-group">
|
|
|
|
<button type="submit" name="message_submit" class="btn btn-primary">{% trans 'Submit' %}</button>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2016-06-27 08:13:38 +00:00
|
|
|
</div>
|
2015-10-16 17:53:02 +00:00
|
|
|
</div>
|
2017-04-25 05:07:08 +00:00
|
|
|
</div>
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endblock %}
|