add eventsubmission detail page and a few missing buttons

This commit is contained in:
Thomas Steen Rasmussen 2017-03-12 16:27:37 +01:00
parent 2148d1c542
commit 8598ddc2f7
3 changed files with 30 additions and 4 deletions

View file

@ -0,0 +1,24 @@
{% extends 'program_base.html' %}
{% load commonmark %}
{% block program_content %}
<h2>{{ camp.title }} Event Proposal Details</h2>
<ul>
<li class="list">Status: <span class="badge">{{ eventsubmission.submission_status }}</span></li>
<li class="list">ID: <span class="badge">{{ eventsubmission.uuid }}</span></li>
</ul>
<div class="panel panel-default">
<div class="panel-heading">{{ eventsubmission.title }}</div>
<div class="panel-body">
{{ eventsubmission.abstract|commonmark }}
</div>
</div>
<p>
<a href="{% url 'submission_list' camp_slug=camp.slug %}" class="btn btn-primary">Back to List</a>
</p>
{% endblock program_content %}

View file

@ -10,10 +10,6 @@
<li class="list">ID: <span class="badge">{{ speakersubmission.uuid }}</span></li>
</ul>
<p>
<a href="{% url 'submission_list' camp_slug=camp.slug %}" class="btn btn-primary">Proposal List</a>
</p>
<div class="panel panel-default">
<div class="panel-heading">{{ speakersubmission.name }}</div>
<div class="panel-body">
@ -34,4 +30,8 @@
</div>
</div>
<p>
<a href="{% url 'submission_list' camp_slug=camp.slug %}" class="btn btn-primary">Back to List</a>
</p>
{% endblock program_content %}

View file

@ -22,6 +22,7 @@ Proposals | {{ block.super }}
<td><b>{{ speakersubmission.name }}</b></td>
<td><span class="badge">{{ speakersubmission.submission_status }}</span></td>
<td>
<a href="{% url 'speakersubmission_detail' camp_slug=camp.slug pk=speakersubmission.uuid %}" class="btn btn-primary btn-xs">Details</a>
<a href="{% url 'speakersubmission_update' camp_slug=camp.slug pk=speakersubmission.uuid %}" class="btn btn-primary btn-xs">Modify</a>
<a href="#" class="btn btn-danger btn-xs">Delete</a>
</td>
@ -53,6 +54,7 @@ Proposals | {{ block.super }}
<td><b>{{ eventsubmission.title }}</b></td>
<td><span class="badge">{{ eventsubmission.submission_status }}</span></td>
<td>
<a href="{% url 'eventsubmission_detail' camp_slug=camp.slug pk=eventsubmission.uuid %}" class="btn btn-primary btn-xs">Details</a>
<a href="{% url 'eventsubmission_update' camp_slug=camp.slug pk=eventsubmission.uuid %}" class="btn btn-primary btn-xs">Modify</a>
<a href="#" class="btn btn-danger btn-xs">Delete</a>
</td>