STATIC Page: support/documentation (FAQ)
[myslice.git] / portal / documentationview.py
1 from django.shortcuts           import render
2 from django.views.generic       import View
3
4 from unfold.loginrequired       import FreeAccessView
5 from ui.topmenu                 import topmenu_items
6
7
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 DocumentationView (FreeAccessView):
12     template_name = "documentationview.html"
13     def _display (self, request):
14         return render(request, 'documentationview.html', {
15                 'topmenu_items': topmenu_items('FAQ', request),
16                 })