symposion_app/pinaxcon/templates/symposion/proposals/_pending_proposal_row.html

42 lines
1.6 KiB
HTML
Raw Normal View History

{% load i18n %}
2018-06-30 03:18:04 +00:00
{% if proposal.result.status == "accepted" %}
<div class="card card-success border-primary mx-4 my-4">
{% elif proposal.result.status == "rejected" %}
<div class="card card-danger border-primary mx-4 my-4">
{% elif proposal.result.status == "standby" %}
<div class="card card-warning border-primary mx-4 my-4">
{% else %}
<div class="card card-primary border-primary mx-4 my-4">
{% endif %}
<div class="card-body">
<h4 class="card-title text-primary">{{ proposal.title }}</h4>
<div class="card-text">
<p>
2018-06-30 03:50:53 +00:00
<small>{{ proposal.kind.name }}</small>
{% if proposal.cancelled %}
<small class="badge badge-pill float-right badge-danger">Cancelled</small>
{% else %}
{% if request.user == proposal.speaker.user %}
{% if proposal.result.status == "accepted" %}
<small class="badge badge-pill float-right badge-success">Accepted</small>
2018-06-30 03:18:04 +00:00
{% else %}
2018-06-30 03:50:53 +00:00
<small class="badge badge-pill float-right badge-default">Submitted</small>
2018-06-30 03:18:04 +00:00
{% endif %}
2018-06-30 03:50:53 +00:00
{% else %}
<small class="badge badge-pill float-right badge-default">Invited</small>
{% endif %}
{% endif %}
2018-06-30 03:18:04 +00:00
</p>
2018-06-30 03:50:53 +00:00
<p>{{ proposal.abstract|truncatewords:40 }}</p>
2018-06-30 03:18:04 +00:00
</div>
</div>
<div class="card-footer bg-primary">
2018-06-30 03:50:53 +00:00
<a href="{% url "proposal_detail" proposal.pk %}">View Details</a><br />
2018-06-30 03:18:04 +00:00
{% if not proposal.cancelled %}
2018-06-30 03:50:53 +00:00
<a href="{% url "proposal_pending_join" proposal.id %}">Accept Invitation</a><br />
<a href="{% url "proposal_pending_decline" proposal.id %}">Decline Invitation</a>
2018-06-30 03:18:04 +00:00
{% endif %}
</div>
</div>