1 from django.shortcuts import render
2 from django.views.generic import View
4 from unfold.loginrequired import FreeAccessView
5 from ui.topmenu import topmenu_items
8 # splitting the 2 functions done here
9 # GET is for displaying the empty form
10 # POST is to process it once filled - or show the form again if anything is missing
11 class SupportView (FreeAccessView):
12 template_name = "supportview.html"
13 def _display (self, request):
14 return render(request, 'supportview.html', {
15 'topmenu_items': topmenu_items('support', request),