2019-10-21 23:28:47 +00:00
|
|
|
<div class="card mb-4">
|
2018-06-30 02:01:19 +00:00
|
|
|
{% if proposal.result.status == "accepted" %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header text-white bg-success">
|
2017-04-23 08:33:18 +00:00
|
|
|
{% elif proposal.result.status == "rejected" %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header text-white bg-danger">
|
2017-04-23 08:33:18 +00:00
|
|
|
{% elif proposal.result.status == "standby" %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header text-white bg-warning">
|
2017-04-23 08:33:18 +00:00
|
|
|
{% else %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header bg-light">
|
2018-06-30 02:01:19 +00:00
|
|
|
{% endif %}
|
2019-10-21 23:28:47 +00:00
|
|
|
{{ proposal.section.name }}
|
|
|
|
</div>
|
2018-06-29 22:56:52 +00:00
|
|
|
<div class="card-body">
|
2019-06-24 11:58:21 +00:00
|
|
|
<h4 class="card-title">
|
|
|
|
{{ proposal.title }}
|
2018-06-29 22:56:52 +00:00
|
|
|
</h4>
|
2019-10-21 23:28:47 +00:00
|
|
|
<h6 class="card-subtitle mb-2 text-muted">{{ proposal.kind.name }}</h6>
|
2018-06-29 22:56:52 +00:00
|
|
|
<div class="card-text">
|
|
|
|
<p>
|
|
|
|
{% if proposal.cancelled %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<small class="badge badge-pill float-right badge-info">Cancelled</small>
|
2018-06-29 22:56:52 +00:00
|
|
|
{% else %}
|
|
|
|
{% if request.user == proposal.speaker.user %}
|
|
|
|
{% if proposal.result.status == "accepted" %}
|
|
|
|
<small class="badge badge-pill float-right badge-success">Accepted</small>
|
|
|
|
{% elif proposal.result.status == "rejected" %}
|
2019-06-24 11:58:21 +00:00
|
|
|
<small class="badge badge-pill float-right badge-danger">Rejected</small>
|
2018-06-29 22:56:52 +00:00
|
|
|
{% elif proposal.result.status == "standby" %}
|
2019-06-24 11:58:21 +00:00
|
|
|
<small class="badge badge-pill float-right badge-warning">Standby</small>
|
2018-06-29 22:56:52 +00:00
|
|
|
{% else %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<small class="badge badge-pill float-right badge-primary">Submitted</small>
|
2018-06-29 22:56:52 +00:00
|
|
|
{% endif %}
|
2017-04-16 06:01:57 +00:00
|
|
|
{% else %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<small class="badge badge-pill float-right badge-secondary">Associated</small>
|
2017-04-16 06:01:57 +00:00
|
|
|
{% endif %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endif %}
|
2019-06-24 11:58:21 +00:00
|
|
|
</p>
|
2018-06-29 22:56:52 +00:00
|
|
|
<p>{{ proposal.abstract|truncatewords:40 }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-24 11:58:21 +00:00
|
|
|
<div class="card-footer">
|
2019-10-21 23:28:47 +00:00
|
|
|
<a href="{% url "proposal_detail" proposal.pk %}" class="card-link">View Details</a>
|
2017-04-16 06:01:57 +00:00
|
|
|
{% if not proposal.cancelled %}
|
2018-06-29 22:56:52 +00:00
|
|
|
{% if request.user == proposal.speaker.user and proposal.can_edit %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<a href="{% url "proposal_edit" proposal.pk %}" class="card-link">Edit</a>
|
2018-06-29 22:56:52 +00:00
|
|
|
{% endif %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endif %}
|
2017-04-16 06:01:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|