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

@@ -163,3 +163,17 @@ class GenericListView(generic.ListView):
class SearchHelp(generic.TemplateView):
template_name = 'search_help.html'
"""
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)}