removed filter form if no results
This commit is contained in:
@@ -242,6 +242,8 @@
|
|||||||
{{ coursescript|safe }}
|
{{ coursescript|safe }}
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% if form %}
|
||||||
<p>
|
<p>
|
||||||
<h2>Filter Results</h2>
|
<h2>Filter Results</h2>
|
||||||
|
|
||||||
@@ -253,6 +255,7 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input class="button green" type="submit" value="Submit">
|
<input class="button green" type="submit" value="Submit">
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -13718,8 +13718,11 @@ def virtualevent_view(request,id=0):
|
|||||||
workoutid__isnull=False,
|
workoutid__isnull=False,
|
||||||
).order_by("duration")
|
).order_by("duration")
|
||||||
|
|
||||||
form = RaceResultFilterForm(records=records)
|
if results:
|
||||||
|
form = RaceResultFilterForm(records=records)
|
||||||
|
else:
|
||||||
|
form = None
|
||||||
|
|
||||||
# to-do - add DNS
|
# to-do - add DNS
|
||||||
dns = []
|
dns = []
|
||||||
if timezone.now() > race.evaluation_closure:
|
if timezone.now() > race.evaluation_closure:
|
||||||
|
|||||||
Reference in New Issue
Block a user