only show tables when at least one proposal is found

This commit is contained in:
Thomas Steen Rasmussen 2018-06-03 23:24:50 +02:00
parent a7a9a24c6c
commit 2305416461
1 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,9 @@
<br>
<div class="row">
<h3>SpeakerProposals</h3>
{% if not speakerproposals %}
<p class="lead">No pending SpeakerProposals found</p>
{% else %}
<table class="table table-hover">
<thead>
<tr>
@ -40,8 +43,12 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<h3>EventProposals</h3>
{% if not eventproposals %}
<p class="lead">No pending SpeakerProposals found</p>
{% else %}
<table class="table table-hover">
<thead>
<tr>
@ -68,7 +75,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<script>
$(document).ready(function(){