mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 12:27:35 +00:00
QM check-box report for open leads
This commit is contained in:
@@ -500,7 +500,7 @@ def get_entrances(request, caveslug):
|
||||
)
|
||||
|
||||
|
||||
def caveQMs(request, slug):
|
||||
def caveQMs(request, slug, open=False):
|
||||
"""Lists all the QMs on a particular cave
|
||||
relies on the template to find all the QMs for the cave specified in the slug, e.g. '1623-161'
|
||||
Now working in July 2022
|
||||
@@ -512,6 +512,8 @@ def caveQMs(request, slug):
|
||||
|
||||
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated:
|
||||
return render(request, "nonpublic.html", {"instance": cave})
|
||||
elif open:
|
||||
return render(request, "cave_open_qms.html", {"cave": cave})
|
||||
else:
|
||||
return render(request, "cave_qms.html", {"cave": cave})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user