from django.http import HttpResponse
from django.shortcuts import render
from django.views import generic
from django.views import View
from django.views.generic.base import TemplateView
from django.views.generic.list import ListView
from django.views.generic import DetailView
from .src.calendarRenderer import calendarRenderer

# Create your views here.
app_name='calendarManager'


def renderCalendar(request):
    tmpCalendarRenderer = calendarRenderer(request)
    return HttpResponse(tmpCalendarRenderer.generateHtml())


class HomePage(TemplateView):

    template_name = "calendarManager/index.html"

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        return context


class RolesPage(TemplateView):

    template_name = "calendarManager/roles.html"

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        return context


class GoalsPage(TemplateView):

    template_name = "calendarManager/goals.html"

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        return context


class TodosPage(TemplateView):

    template_name = "calendarManager/todos.html"

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        return context
