diff --git a/froide_govplan/cms_plugins.py b/froide_govplan/cms_plugins.py index 04652a8..9b73155 100644 --- a/froide_govplan/cms_plugins.py +++ b/froide_govplan/cms_plugins.py @@ -9,6 +9,7 @@ from .models import ( GovernmentPlanSection, GovernmentPlanSectionsCMSPlugin, GovernmentPlanUpdatesCMSPlugin, + PlanStatus, ) @@ -25,6 +26,7 @@ class GovernmentPlansPlugin(CMSPluginBase): def render(self, context, instance, placeholder): context = super().render(context, instance, placeholder) context["plugin"] = instance + context["status_list"] = PlanStatus.choices context["object_list"] = instance.get_plans( context["request"], published_only=False ) diff --git a/froide_govplan/templates/froide_govplan/plugins/search.html b/froide_govplan/templates/froide_govplan/plugins/search.html index c27ca85..773c997 100644 --- a/froide_govplan/templates/froide_govplan/plugins/search.html +++ b/froide_govplan/templates/froide_govplan/plugins/search.html @@ -1,7 +1,13 @@ {% load i18n %}
-
- +
+ +