symposion_app/pinaxcon/templates/symposion/proposals/_proposal_row.html
Christopher Neugebauer eac85a2b92 Chrisjrn/dashboard 2 (#28)
* Dashboard template mk 2

* Better version of dashboard
2016-06-28 07:56:27 +10:00

35 lines
1.2 KiB
HTML

<h4>
{{ proposal.title }}
</h4>
<ul>
<li><strong>Type:</strong> {{ proposal.kind.name }}</li>
<li>
<strong>Status:</strong>
{% if proposal.cancelled %}
<span class="label label-danger">Cancelled</span>
{% else %}
{% if request.user == proposal.speaker.user %}
{% if proposal.result.status == "accepted" %}
<span class="label label-success">Accepted</span>
{% else %}
<span class="label label-default">Submitted</span>
{% endif %}
{% else %}
<span class="label label-default">Associated</span>
{% endif %}
{% endif %}
</li>
</ul>
<div class="btn-group">
<a href="{% url "proposal_detail" proposal.pk %}" class="btn btn__compact">View details</a>
{% if not proposal.cancelled %}
{% if request.user == proposal.speaker.user and proposal.can_edit %}
<a href="{% url "proposal_edit" proposal.pk %}" class="btn btn__compact">Edit</a>
<a href="{% url "proposal_speaker_manage" proposal.id %}" class="btn btn__compact">Manage Additional Speakers</a>
{% endif %}
{% endif %}
</div>
<br/>