chore: add link for playbook

!8 #11
This commit is contained in:
2024-05-20 10:07:35 +09:30
parent 7afaa951d3
commit bdf40d952e

View File

@ -3,6 +3,7 @@ import json
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.db.models import Q
from django.shortcuts import render
from django.template import Template, Context
from django.views import generic
from access.mixin import OrganizationPermission
@ -15,11 +16,15 @@ class Index(generic.View):
# 'itil.view_playbook'
# ]
template_name = 'base.html.j2'
template_name = 'form.html.j2'
def get(self, request):
context = {}
user_string = Template("{% include 'icons/issue_link.html.j2' with issue=11 %}")
user_context = Context(context)
context['form'] = user_string.render(user_context)
context['content_title'] = 'Playbooks'
return render(request, self.template_name, context)