2014-01-15 13:57:33 +00:00
|
|
|
{% load url from future %}
|
2012-08-14 07:49:57 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2014-01-15 13:57:33 +00:00
|
|
|
<a href="{% url 'proposal_detail' proposal.pk %}">{{ proposal.title }}</a>
|
2012-08-14 07:49:57 +00:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>{{ proposal.kind.name }}</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{% if proposal.cancelled %}
|
|
|
|
<span class="label label-important">Cancelled</span>
|
|
|
|
{% else %}
|
|
|
|
{% if request.user == proposal.speaker.user %}
|
2012-09-02 18:45:41 +00:00
|
|
|
{% if proposal.result.status == "accepted" %}
|
2012-08-14 07:49:57 +00:00
|
|
|
<span class="label label-success">Accepted</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="label">Submitted</span>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<span class="label">Associated</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{% if not proposal.cancelled %}
|
|
|
|
{% if request.user == proposal.speaker.user and proposal.can_edit %}
|
2014-01-15 13:57:33 +00:00
|
|
|
<a href="{% url 'proposal_edit' proposal.pk %}" class="btn btn-mini"><i class="icon-pencil"></i> Edit</a>
|
|
|
|
<a href="{% url 'proposal_speaker_manage' proposal.id %}" class="btn btn-mini"><i class="icon-user"></i> Manage Additional Speakers</a>
|
2012-08-14 07:49:57 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|