Created new models to replicate out of and split coord app

Moved helpers and views to their respective new apps
This commit is contained in:
st01765
2026-02-05 11:18:08 +11:00
parent ad4fd19cc7
commit b695dd8054
26 changed files with 1536 additions and 10 deletions
+18 -1
View File
@@ -1,3 +1,20 @@
from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import render
# Create your views here.
from common.documents import render_to_pdf
from transport.context_busroll import bus_roll_context
from transport.context_helpers import bus_summary_context, emergency_contacts_context
@staff_member_required
def bus_summary(request):
return render(request, 'reports/bus_summary.html', bus_summary_context())
@staff_member_required
def emergency_contacts(request):
return render_to_pdf('reports/emergency_contacts.html', emergency_contacts_context())
@staff_member_required
def bus_roll(request):
return render_to_pdf('reports/bus_roll.html', bus_roll_context())