{% load i18n %}
{% load pyconau2017_tags %}
<h4>{% trans "Submitted by" %}</h4>
<p>{{ proposal.speaker }} <{{ proposal.speaker.email }}></p>
<div>
<label class="col-sm-2 col-lg-2">Submitted by</label>
<div class="col-sm-10 col-lg-10">
</div>
<h4>{% trans "Proposal Type" %}</h4>
<p>{{ proposal.kind.name|capfirst }}</p>
<label class="col-sm-2 col-lg-2">Proposal Type</label>
<h4>{% trans "Target Audience" %}</h4>
<p>{{ proposal.get_target_audience_display }} </p>
<label class="col-sm-2 col-lg-2">Target Audience</label>
{% if proposal.additional_speakers.all %}
<h4>{% trans "Additional Speakers" %}</h4>
<ul>
{% for speaker in proposal.additional_speakers.all %}
<li>
{% if speaker.user %}
<strong>{{ speaker.name }}</strong> <{{ speaker.email }}>
{% else %}
{{ speaker.email }} ({% trans "Invitation Sent" %})
{% endif %}
</li>
{% endfor %}
</ul>
<p></p>
<label class="col-sm-2 col-lg-2">Additional Speakers</label>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<td>{{ speaker.name }}</td>
<td>{{ speaker.email }}</td>
<td>Joined</td>
<td>Unknown</td>
<td>Invitation Sent</td>
</tbody>
</table>
<h4>{% trans "Abstract" %}</h4>
<div class="abstract monospace-text">{{ proposal.abstract_html|safe }} </div>
<label class="col-sm-2 col-lg-2">Abstract</label>
<div class="abstract monospace-text well">{{ proposal.abstract_html|safe }} </div>
<h4>{% trans "Private Abstract" %}</h4>
<div class="private_abstract monospace-text">{{ proposal.private_abstract_html|safe }} </div>
<label class="col-sm-2 col-lg-2">Private Abstract</label>
<div class="private_abstract monospace-text well">{{ proposal.private_abstract_html|safe }} </div>
<h4>{% trans "Project" %}</h4>
<p>{{ proposal.project|safe }} </p>
<label class="col-sm-2 col-lg-2">Project</label>
{% if proposal.project %}
<p><b>None Provided</b></p>
<h4>{% trans "Project URL" %}</h4>
<p><a href="{{ proposal.project_url|safe }}">{{ proposal.project_url|safe }}</a> </p>
<label class="col-sm-2 col-lg-2">Project URL</label>
{% if proposal.project_url %}
<h4>{% trans "Video URL" %}</h4>
<p><a href="{{ proposal.video_url|safe }}">{{ proposal.video_url|safe }}</a> </p>
<label class="col-sm-2 col-lg-2">Video URL</label>
{% if proposal.video_url %}
<h4>{% trans "Special Requirements" %}</h4>
<div class="special_requirements monospace-text">{{ proposal.technical_requirements_html|safe }}</div>
<label class="col-sm-2 col-lg-2">Special Requirements</label>
{% if proposal.technical_requirements_html %}
<div class="special_requirements monospace-text"><b>No Special Talk Requirements Requested</b></div>
<br/>
{% for speaker in proposal.speakers %}
<h4>{% trans "Speaker:" %} {{ speaker.name }}</h4>
<h5>{% trans "Biography" %}</h5>
<div class="biography monospace-text">{{ speaker.biography_html|safe }} </div>
<h5>{% trans "Experience" %}</h5>
<div class="biography monospace-text">{{ speaker.experience_html|safe }} </div>
{% if speaker.name %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Speaker: {{ speaker.name }}</h3>
<div class="panel-body">
<label class="col-sm-2 col-lg-2">Biography</label>
<div class="col-sm-10 col-lg-10 well monospace-text">{{ speaker.biography_html|safe }} </div>
<label class="col-sm-2 col-lg-2">Experience</label>
<div class="col-sm-10 col-lg-10 well monospace-text">{{ speaker.experience_html|safe }} </div>
{% if speaker.accessibility_html %}
<label class="col-sm-2 col-lg-2">Accessibility Requirements</label>
<div class="col-sm-10 col-lg-10 well monospace-text">{{ speaker.accessibility_html|safe }} </div>
{% can_manage proposal as can_manage_proposal %}
{% if can_manage_proposal or request.user.speaker_profile in proposal.speakers %}
<h4>{% trans "Assistance required?" %}</h4>
<label class="col-sm-2 col-lg-2">Travel Assistance Required</label>
<th>Travel</th>
<th>Accomodation</th>
<td>{{ speaker.travel_assistance }}</td>
<td>{{ speaker.accommodation_assistance }}</td>
<td><b>Unconfirmed co-presenter</b></td>
<td><b>Unknown</b></td>
<br />
<table>
<th></th>
<th>{% trans "Travel" %}</th>
<th>{% trans "Accommodation" %}</th>
{% if proposal.speaker.accessibility_html %}
<h4>{% trans "Speaker Accessibility Requirements" %}</h4>
<h5>{{ speaker.name }}</h5>
<div class="biography monospace-text">{{ speaker.accessibility_html|safe }} </div>
<h4>{% trans "Documents" %}</h4>
{% if proposal.supporting_documents.exists %}
<table class="table table-striped">
{% for document in proposal.supporting_documents.all %}
<td><a href="{{ document.download_url }}">{{ document.description }}</a></td>
<td>
<form class="form-horizontal" style="margin: 0;" method="post" action="{% url "proposal_document_delete" document.pk %}">
{% csrf_token %}
<button type="submit" class="btn btn-xs">delete</button>
</form>
</td>
<p>No supporting documents attached to this proposal.</p>
<label class="col-sm-2 col-lg-2">Recording Release</label>
<p>{{ proposal.recording_release }} </p>
<h4>{% trans "Recording Release" %}</h4>
<h4>{% trans "Materials Release" %}</h4>
<p>{{ proposal.materials_release }} </p>
<label class="col-sm-2 col-lg-2">Materials Release</label>