diff --git a/iogt/templates/wagtailadmin/pages/listing/_buttons.html b/iogt/templates/wagtailadmin/pages/listing/_buttons.html new file mode 100644 index 000000000..78c50b860 --- /dev/null +++ b/iogt/templates/wagtailadmin/pages/listing/_buttons.html @@ -0,0 +1,7 @@ +{% for button in buttons %} + {% with page.get_type as page_type %} + {% if button.show and page_type != 'poll' and page_type != 'quiz' and page_type != 'survey' or button.label != 'View draft' %} +
  • {{ button|safe }}
  • + {% endif %} + {% endwith %} +{% endfor %} diff --git a/questionnaires/models.py b/questionnaires/models.py index 18e85b1e1..e7e518692 100644 --- a/questionnaires/models.py +++ b/questionnaires/models.py @@ -56,6 +56,7 @@ class QuestionnairePage(Page, PageUtilsMixin, TitleIconMixin): parent_page_types = [] subpage_types = [] show_in_menus_default = True + preview_modes = [] description = StreamField( [