From 90b41e61961e740076b0127433d112a216846145 Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 17 Sep 2024 14:46:16 +0200 Subject: [PATCH] :lipstick: [#2741] Added multiselect listbox mobile structure --- .../templates/components/Button/Button.html | 4 +- .../components/FilterBar/FilterBar.html | 40 ++++- .../FilterBar/MultiSelectListbox.html | 46 +++--- .../js/components/FilterBar/filterbar.js | 102 ++++++++++++ .../js/components/FilterBar/index.js | 1 + .../FilterBar/multiselect_listbox_checkbox.js | 73 +++++++-- src/open_inwoner/js/components/index.js | 2 +- .../scss/components/Button/Button.scss | 4 + .../scss/components/Cases/Cases.scss | 2 + .../scss/components/FilterBar/FilterBar.scss | 154 +++++++++++++++++- .../FilterBar/MultiSelectListbox.scss | 90 +++++++--- .../scss/components/Form/Form.scss | 18 ++ src/open_inwoner/scss/views/App.scss | 1 + .../templates/pages/cases/list_inner.html | 25 ++- 14 files changed, 481 insertions(+), 81 deletions(-) create mode 100644 src/open_inwoner/js/components/FilterBar/filterbar.js diff --git a/src/open_inwoner/components/templates/components/Button/Button.html b/src/open_inwoner/components/templates/components/Button/Button.html index d637566115..cf0151a5f1 100644 --- a/src/open_inwoner/components/templates/components/Button/Button.html +++ b/src/open_inwoner/components/templates/components/Button/Button.html @@ -39,10 +39,10 @@ {% if text_icon %} {% icon icon=text_icon outlined=icon_outlined %} - {% if not hide_text %}{{ text }}{% endif %} + {% if not hide_text %}{{ text }}{% endif %} {% else %} - {% if not hide_text %}{{ text }}{% endif %} + {% if not hide_text %}{{ text }}{% endif %} {% endif %} {% endif %} diff --git a/src/open_inwoner/components/templates/components/FilterBar/FilterBar.html b/src/open_inwoner/components/templates/components/FilterBar/FilterBar.html index af672d6e6b..f924b2dc05 100644 --- a/src/open_inwoner/components/templates/components/FilterBar/FilterBar.html +++ b/src/open_inwoner/components/templates/components/FilterBar/FilterBar.html @@ -1,11 +1,33 @@ -{% load i18n form_tags %} +{% load i18n form_tags button_tags %} -{# Wrapper for multiple filters #} -
-
- {# Note: each element inside the form is a flex column #} - {{ contents }} -
+
+ {# Wrapper for multiple filters #} +
+
+ {% button icon="close" text=_("Sluiten") hide_text=True icon_outlined=True transparent=True extra_classes="show-controls" %} +
+ +
+
+
+

Filters

+ {% button icon="filter_alt" text=_("Filters") icon_outlined=True transparent=True extra_classes="show-modal" %} +

Status

+
+
+ {# Note: each element inside the form is a flex column #} + {{ contents }} + + {# Mobile submit button updates on select #} +
+ +
+
+
diff --git a/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html b/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html index 33ab0b14da..6a5ed69970 100644 --- a/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html +++ b/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html @@ -1,29 +1,31 @@ {% load i18n l10n form_tags icon_tags button_tags %}
- -
-