diff --git a/opentech/public/projects/models.py b/opentech/public/projects/models.py index d1d2462ee97a056000c07c8fb18294f2a465db59..9dc4f6dac0c4d65d81d35b48e6a3dd4b00e6f7fe 100644 --- a/opentech/public/projects/models.py +++ b/opentech/public/projects/models.py @@ -10,6 +10,7 @@ from modelcluster.fields import ParentalKey from wagtail.wagtailadmin.edit_handlers import ( FieldPanel, InlinePanel, + MultiFieldPanel, PageChooserPanel, StreamFieldPanel, ) @@ -124,7 +125,11 @@ class ProjectPage(FundingMixin, BasePage): InlinePanel('contact_details', label="Contact Details"), InlinePanel('related_pages', label="Related Projects"), ] + FundingMixin.content_panels + [ - FieldPanel('categories', widget=CategoriesWidget), + MultiFieldPanel( + [FieldPanel('categories', widget=CategoriesWidget)], + heading="Categories", + classname="collapsible collapsed", + ), ] def category_options(self): diff --git a/opentech/public/projects/templates/projects/widgets/options_widget.html b/opentech/public/projects/templates/projects/widgets/options_widget.html index db195aa39984c10e60a2e48af68cb0e883cd7692..7c87506fb6b153514e3fed5e561b760624457b83 100644 --- a/opentech/public/projects/templates/projects/widgets/options_widget.html +++ b/opentech/public/projects/templates/projects/widgets/options_widget.html @@ -1,5 +1,5 @@ <li> -<h2>{{ widget.attrs.label_tag }}</h2> +<h1>{{ widget.attrs.label_tag }}</h1> <fieldset> {% with id=widget.attrs.id %} <ul{% if id %} id="{{ id }}"{% endif %}class="fields {% if widget.attrs.class %}{{ widget.attrs.class }}{% endif %}">{% for group, options, index in widget.optgroups %}