2015-10-16 17:53:02 +00:00
|
|
|
{% load i18n %}
|
|
|
|
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card mb-4">
|
2018-06-30 03:18:04 +00:00
|
|
|
{% if proposal.result.status == "accepted" %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header text-white bg-success">
|
2018-06-30 03:18:04 +00:00
|
|
|
{% elif proposal.result.status == "rejected" %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header text-white bg-danger">
|
2018-06-30 03:18:04 +00:00
|
|
|
{% elif proposal.result.status == "standby" %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header text-white bg-warning">
|
2018-06-30 03:18:04 +00:00
|
|
|
{% else %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="card-header bg-light">
|
2018-06-30 03:18:04 +00:00
|
|
|
{% endif %}
|
2019-10-21 23:28:47 +00:00
|
|
|
{{ proposal.section.name }}
|
|
|
|
</div>
|
2018-06-30 03:18:04 +00:00
|
|
|
<div class="card-body">
|
2019-10-21 23:28:47 +00:00
|
|
|
<h4 class="card-title">{{ proposal.title }}</h4>
|
|
|
|
<h6 class="card-subtitle mb-2 text-muted">{{ proposal.kind.name }}</h6>
|
2018-06-30 03:18:04 +00:00
|
|
|
<div class="card-text">
|
2019-10-21 23:28:47 +00:00
|
|
|
<p>
|
2018-06-30 03:50:53 +00:00
|
|
|
{% if proposal.cancelled %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<small class="badge badge-pill float-right badge-info">Cancelled</small>
|
2018-06-30 03:50:53 +00:00
|
|
|
{% else %}
|
2019-10-21 23:28:47 +00:00
|
|
|
{% if request.user == proposal.speaker.user %}
|
|
|
|
{% if proposal.result.status == "accepted" %}
|
|
|
|
<small class="badge badge-pill float-right badge-success">Accepted</small>
|
|
|
|
{% else %}
|
|
|
|
<small class="badge badge-pill float-right badge-primary">Submitted</small>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<small class="badge badge-pill float-right badge-secondary">Invited</small>
|
|
|
|
{% endif %}
|
2018-06-30 03:50:53 +00:00
|
|
|
{% endif %}
|
2019-10-21 23:28:47 +00:00
|
|
|
</p>
|
|
|
|
<p>{{ proposal.abstract|truncatewords:40 }}</p>
|
2018-06-30 03:18:04 +00:00
|
|
|
</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>
|
|
|
|
{% if not proposal.cancelled %}
|
|
|
|
<a href="{% url "proposal_pending_join" proposal.id %}" class="card-link">Accept Invitation</a>
|
|
|
|
<a href="{% url "proposal_pending_decline" proposal.id %}" class="card-link">Decline Invitation</a>
|
|
|
|
{% endif %}
|
2017-04-16 06:01:57 +00:00
|
|
|
</div>
|
2019-10-21 23:28:47 +00:00
|
|
|
</div>
|