diff --git a/horilla_views/generic/cbv/views.py b/horilla_views/generic/cbv/views.py index 0c18e8914..bad533456 100644 --- a/horilla_views/generic/cbv/views.py +++ b/horilla_views/generic/cbv/views.py @@ -87,6 +87,7 @@ class HorillaListView(ListView): selected_instances_key_id: str = "selectedInstances" show_filter_tags: bool = True + show_toggle_form: bool = True filter_keys_to_remove: list = [] records_per_page: int = 50 @@ -235,6 +236,7 @@ class HorillaListView(ListView): context["columns"] = self.visible_column context["hidden_columns"] = list(set(self.columns) - set(self.visible_column)) context["toggle_form"] = self.toggle_form + context["show_toggle_form"] = self.show_toggle_form context["search_url"] = self.search_url context["action_method"] = self.action_method @@ -497,6 +499,7 @@ class HorillaDetailedView(DetailView): action_method: list = [] actions: list = [] + cols: dict = {} ids_key: str = "instance_ids" @@ -534,6 +537,7 @@ class HorillaDetailedView(DetailView): context["body"] = self.body context["actions"] = self.actions context["action_method"] = self.action_method + context["cols"] = self.cols CACHE.get(self.request.session.session_key + "cbv")[ HorillaDetailedView diff --git a/horilla_views/templates/generic/horilla_card.html b/horilla_views/templates/generic/horilla_card.html index 618666db0..afe738696 100644 --- a/horilla_views/templates/generic/horilla_card.html +++ b/horilla_views/templates/generic/horilla_card.html @@ -168,10 +168,10 @@ diff --git a/horilla_views/templates/generic/horilla_detailed_view.html b/horilla_views/templates/generic/horilla_detailed_view.html index 26c775427..0966b5763 100644 --- a/horilla_views/templates/generic/horilla_detailed_view.html +++ b/horilla_views/templates/generic/horilla_detailed_view.html @@ -36,6 +36,7 @@
+ {% if header %}
- + {% endif %}