only show (past) reservations if needed

This commit is contained in:
Son 2022-01-04 09:37:49 +01:00
parent d38fa95eed
commit 1b5f059899
1 changed files with 29 additions and 24 deletions

View File

@ -7,6 +7,7 @@
{% endblock %}
{% block default_content %}
{% if reservations|length > 0 %}
<div class="card">
<div class="card-body">
<h3>Your current numbers</h3>
@ -21,6 +22,7 @@
</div>
</div>
{% endif %}
<div class="card">
<div class="card-body">
@ -32,7 +34,8 @@
<form method="post">
<div class="form-group">
<label for="input-minute">How many minutes do you need this number for?</label>
<input required name="minute" type="number" class="form-control" id="input-minute" aria-describedby="emailHelp"
<input required name="minute" type="number" class="form-control" id="input-minute"
aria-describedby="emailHelp"
placeholder="5, 10, 60, etc.">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
@ -54,6 +57,7 @@
</div>
</div>
{% if past_reservations|length > 0 %}
<div class="card">
<div class="card-body">
<h3>Past Reservations</h3>
@ -69,6 +73,7 @@
</div>
</div>
{% endif %}
{% endblock %}