cbea9ec0e1
Display proposals in rows and columns, instead of all on one row. Fix spacing for sections on the page. Improve small screen display of page.
49 lines
2.1 KiB
HTML
49 lines
2.1 KiB
HTML
<div class="card mb-4">
|
|
{% if proposal.result.status == "accepted" %}
|
|
<div class="card-header text-white bg-success">
|
|
{% elif proposal.result.status == "rejected" %}
|
|
<div class="card-header text-white bg-danger">
|
|
{% elif proposal.result.status == "standby" %}
|
|
<div class="card-header text-white bg-warning">
|
|
{% else %}
|
|
<div class="card-header bg-light">
|
|
{% endif %}
|
|
{{ proposal.section.name }}
|
|
</div>
|
|
<div class="card-body">
|
|
<h4 class="card-title">
|
|
{{ proposal.title }}
|
|
</h4>
|
|
<h6 class="card-subtitle mb-2 text-muted">{{ proposal.kind.name }}</h6>
|
|
<div class="card-text">
|
|
<p>
|
|
{% if proposal.cancelled %}
|
|
<small class="badge badge-pill float-right badge-info">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>
|
|
{% elif proposal.result.status == "rejected" %}
|
|
<small class="badge badge-pill float-right badge-danger">Rejected</small>
|
|
{% elif proposal.result.status == "standby" %}
|
|
<small class="badge badge-pill float-right badge-warning">Standby</small>
|
|
{% else %}
|
|
<small class="badge badge-pill float-right badge-primary">Submitted</small>
|
|
{% endif %}
|
|
{% else %}
|
|
<small class="badge badge-pill float-right badge-secondary">Associated</small>
|
|
{% endif %}
|
|
{% endif %}
|
|
</p>
|
|
<p>{{ proposal.abstract|truncatewords:40 }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<a href="{% url "proposal_detail" proposal.pk %}" class="card-link">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="card-link">Edit</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|