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