update proposal detail template

This commit is contained in:
Luke Hatcher 2012-08-01 03:35:04 -04:00
parent 116f3272fc
commit b74be72196

View file

@ -1,58 +1,69 @@
{% extends "site_base.html" %} {% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{{ proposal.title }}{% endblock %} {% block head_title %}{{ proposal.title }}{% endblock %}
{% block body %} {% block body %}
<h1>{{ proposal.title }}</h1> <div class="pull-right">
<p>
{% if not proposal.cancelled %} {% if not proposal.cancelled %}
{% if request.user == proposal.speaker.user %} {% if request.user == proposal.speaker.user %}
<a href="{% url proposal_edit proposal.pk %}">Edit</a> <a href="{% url proposal_edit proposal.pk %}" class="btn">
| <a href="{% url proposal_cancel proposal.pk %}">Cancel Talk</a> {% trans "Edit this proposal" %}
</a>
<a href="{% url proposal_cancel proposal.pk %}" class="btn">
{% trans "Cancel this proposal" %}
</a>
{% else %} {% else %}
<a href="{% url proposal_leave proposal.pk %}">Leave</a> <a href="{% url proposal_leave proposal.pk %}" class="btn">
{% trans "Remove me from this proposal" %}
</a>
{% endif %} {% endif %}
{% else %} {% else %}
Cancelled Cancelled
{% endif %} {% endif %}
</p>
<div>
{{ proposal.description }}
</div> </div>
<h2>{{ proposal.title }}</h2>
<p><b>Type</b>: {{ proposal.kind.name }}</p> <dl>
<dt>{% trans "Submitted by" %}</dt>
<div> <dd>{{ proposal.speaker }}</dd>
{{ proposal.abstract|safe }}
</div>
<p><b>Audience level</b>: {{ proposal.get_audience_level_display }}</p>
<p><b>Submitting speaker</b>: {{ proposal.speaker }}</p>
{% if proposal.additional_speakers.all %} {% if proposal.additional_speakers.all %}
<p><b>Additional speakers</b>:</p> <dt>{% trans "Additional Speakers" %}</dt>
<ul> <dd>
{% for speaker in proposal.additional_speakers.all %} {% for speaker in proposal.additional_speakers.all %}
<li>
{% if speaker.user %} {% if speaker.user %}
<li><b>{{ speaker.name }}</b> &mdash; {{ speaker.email }}</li> <strong>{{ speaker.name }}</strong> &gt;{{ speaker.email }}&lt;
{% else %} {% else %}
<li>{{ speaker.email }} &mdash; pending invitation</li> {{ speaker.email }} ({% trans "Invitation Sent" %})
{% endif %} {% endif %}
</li>
{% endfor %} {% endfor %}
</ul> </dd>
{% endif %} {% endif %}
{% if request.user == proposal.speaker.user %} <dt>{% trans "Description" %}</dt>
<p><b>Additional Notes:</b></p> <dd>{{ proposal.description }}</dd>
<p>{{ proposal.additional_notes }}</p> <dt>{% trans "Type" %}</dt>
<dd>{{ proposal.kind.name }}</dd>
<dt>{% trans "Audience Level" %}</dt>
<dd>{{ proposal.get_audience_level_display }}</dd>
<dt>{% trans "Abstract" %}</dt>
<dd>{{ proposal.abstract|safe }}</dd>
{% if request.user == proposal.speaker.user %}
<dt>{% trans "Private Notes" %}</dt>
<dd>{{ proposal.additional_notes }}</dd>
{% endif %} {% endif %}
</dl>
{% if request.user == proposal.speaker.user %} {% if request.user == proposal.speaker.user %}
<h2>Supporting Documents</h2> <h3>Supporting Documents</h3>
{% if proposal.supporting_documents.exists %} {% if proposal.supporting_documents.exists %}
<table class="table table-striped"> <table class="table table-striped">
@ -71,6 +82,6 @@
{% else %} {% else %}
<p>No supporting documents attached to this proposal.</p> <p>No supporting documents attached to this proposal.</p>
{% endif %} {% endif %}
<a class="btn btn-small{% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url proposal_document_create proposal.pk %}"><i class="icon-plus"></i> add document</a> <a class="btn btn-small{% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url proposal_document_create proposal.pk %}"><i class="icon-upload"></i> Add Document</a>
{% endif %} {% endif %}
{% endblock %} {% endblock %}