Reformat proposal_detail.html

This commit is contained in:
Sachi King 2017-04-25 15:07:08 +10:00
parent 4adbf0ee46
commit a0d0750b88

View file

@ -6,30 +6,26 @@
{% block page_title %}#{{ proposal.number }}: {{ proposal.title }} ({{ proposal.speaker }}){% endblock %}
{% block proposals_body_outer %}
<div class="panel panel__compact">
<div class="panel panel__compact">
<div class="panel--content">
<div class="panel--tab-controls">
<div class="panel--tabs"><a data-tab-control="Details" class="panel--tab-switch is-active">{% trans "Proposal Details" %}</a><a data-tab-control="Documents" class="panel--tab-switch">{% trans "Supporting Documents" %}</a><a data-tab-control="Feedback" class="panel--tab-switch">{% trans "Reviewer Feedback" %} ({{ proposal.messages.all|length }})</a>
<div class="panel--tabs">
<a data-tab-control="Details" class="panel--tab-switch is-active">{% trans "Proposal Details" %}</a>
<a data-tab-control="Documents" class="panel--tab-switch">{% trans "Supporting Documents" %}</a>
<a data-tab-control="Feedback" class="panel--tab-switch">{% trans "Reviewer Feedback" %} ({{ proposal.messages.all|length }})</a>
</div>
</div>
<div data-tab-content="Details" class="panel--tab-content is-active">
{% include "symposion/proposals/_proposal_fields.html" %}
<div class="btn-group">
{% if not proposal.cancelled %}
{% if request.user == proposal.speaker.user %}
<a href="{% url "proposal_edit" proposal.pk %}" class="btn btn-default">
{% trans "Edit this proposal" %}
</a>
<a href="{% url "proposal_cancel" proposal.pk %}" class="btn btn-default">
{% trans "Cancel this proposal" %}
</a>
<a href="{% url "proposal_edit" proposal.pk %}" class="btn btn-default">{% trans "Edit this proposal" %}</a>
<a href="{% url "proposal_cancel" proposal.pk %}" class="btn btn-default">{% trans "Cancel this proposal" %}</a>
{% else %}
<a href="{% url "proposal_leave" proposal.pk %}" class="btn btn-default">
{% trans "Remove me from this proposal" %}
</a>
<a href="{% url "proposal_leave" proposal.pk %}" class="btn btn-default">{% trans "Remove me from this proposal" %}</a>
{% endif %}
{% else %}
{% trans 'Cancelled' %}
@ -57,8 +53,8 @@
{% endif %}
<a class="btn btn-default btn-sm{% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url "proposal_document_create" proposal.pk %}"><i class="fa fa-upload"></i> {% trans 'Add Document' %}</a>
</div>
<div data-tab-content="Feedback" class="panel--tab-content">
<div data-tab-content="Feedback" class="panel--tab-content">
<h3>{% trans 'Conversation with Reviewers' %}</h3>
{% for message in proposal.messages.all %}
<div class="review-box">
@ -69,9 +65,7 @@
{% endfor %}
<h3>{% trans 'Leave a Message' %}</h3>
<p>{% trans 'You can leave a message for the reviewers here.' %}</p>
<form class="form-horizontal" action="" method="POST" accept-charset="utf-8">
{% csrf_token %}
<fieldset>
@ -84,5 +78,6 @@
</div>
</div>
</div>
</div>
</div>
{% endblock %}