Move closemodal into PyRIGS

This commit is contained in:
2020-06-19 11:09:51 +01:00
parent 84618deac0
commit eafb394f55
4 changed files with 15 additions and 16 deletions

View File

@@ -12,8 +12,6 @@ from django.views.decorators.cache import cache_page
urlpatterns = [
path('', login_required(views.Index.as_view()), name='index'),
path('closemodal/', views.CloseModal.as_view(), name='closemodal'),
# People
path('people/', permission_required_with_403('RIGS.view_person')(views.PersonList.as_view()),
name='person_list'),

View File

@@ -41,20 +41,6 @@ class Index(generic.TemplateView):
return context
"""
Called from a modal window (e.g. when an item is submitted to an event/invoice).
May optionally also include some javascript in a success message to cause a load of
the new information onto the page.
"""
class CloseModal(generic.TemplateView):
template_name = 'closemodal.html'
def get_context_data(self, **kwargs):
return {'messages': messages.get_messages(self.request)}
class PersonList(GenericListView):
template_name = 'person_list.html'
model = models.Person