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

View file

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