Skip to content

Commit

Permalink
Merge pull request #406 from praekeltfoundation/rename_UI
Browse files Browse the repository at this point in the history
changed contentrepo UI naming from assessments to CMS forms
  • Loading branch information
Mudiwa66 authored Jan 27, 2025
2 parents a4994eb + 9b31783 commit 1d87d47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ class CustomIndexView(SpreadsheetExportMixin, IndexView):


class CustomIndexViewAssessment(SpreadsheetExportMixinAssessment, IndexViewAssessment):
pass
def get_template_names(self):
return ["wagtailsnippets/snippets/home/assessment/index.html"]

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["model_opts"].verbose_name_plural = "CMS Forms"
return context


class CustomIndexViewWhatsAppTemplate(
Expand Down
1 change: 1 addition & 0 deletions home/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ class WhatsAppTemplateAdmin(SnippetViewSet):


class AssessmentAdmin(SnippetViewSet):
menu_label = "CMS Forms"
model = Assessment
add_to_admin_menu = True
list_display = ("title", "slug", "version", "locale")
Expand Down

0 comments on commit 1d87d47

Please sign in to comment.