2017-04-16 06:01:57 +00:00
|
|
|
<div class="col-xs-12 col-sm-6 col-lg-6">
|
|
|
|
<div class="panel panel-primary"> <!-- Todo Make the colour relate to status of acceptance -->
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h5>{{ proposal.title }}</h5>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<ul>
|
|
|
|
<li><strong>Type:</strong> {{ proposal.kind.name }}</li>
|
|
|
|
<li>
|
|
|
|
<strong>Status:</strong>
|
|
|
|
{% if proposal.cancelled %}
|
2015-10-16 17:53:02 +00:00
|
|
|
<span class="label label-danger">Cancelled</span>
|
2017-04-16 06:01:57 +00:00
|
|
|
{% else %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% if request.user == proposal.speaker.user %}
|
2017-04-16 06:01:57 +00:00
|
|
|
{% if proposal.result.status == "accepted" %}
|
|
|
|
<span class="label label-success">Accepted</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="label label-default">Submitted</span>
|
|
|
|
{% endif %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% else %}
|
2017-04-16 06:01:57 +00:00
|
|
|
<span class="label label-default">Associated</span>
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endif %}
|
2017-04-16 06:01:57 +00:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div>
|
|
|
|
<a class="btn btn-lg btn-success" role="button" href="{% url "proposal_detail" proposal.pk %}">View Details</a>
|
|
|
|
{% if not proposal.cancelled %}
|
|
|
|
{% if request.user == proposal.speaker.user and proposal.can_edit %}
|
|
|
|
<a class="btn btn-lg btn-success" role="button" href="{% url "proposal_edit" proposal.pk %}">Edit</a>
|
|
|
|
<a class="btn btn-lg btn-success" role="button" href="{% url "proposal_speaker_manage" proposal.id %}">Manage Additional Speakers</a>
|
|
|
|
{% endif %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endif %}
|
2017-04-16 06:01:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-27 21:56:27 +00:00
|
|
|
</div>
|
2017-04-16 06:01:57 +00:00
|
|
|
</div>
|