From 1ab4bcd6978a5ed553baaa990b42bb541ccd0f62 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Fri, 17 Apr 2026 18:50:09 +0800 Subject: [PATCH] feat: Visual icon picker for groups - Add icon-picker-modal partial with 200+ Font Awesome icons - Search filter with typeahead functionality - Grid layout (6 icons per row) - Click icon to select and close modal - Icon preview updates in real-time - Integrated into group create/edit forms --- templates/groups/create.twig | 10 +- templates/groups/edit.twig | 10 +- templates/layout.twig | 1 + templates/partials/icon-picker-modal.twig | 466 ++++++++++++++++++++++ 4 files changed, 483 insertions(+), 4 deletions(-) create mode 100644 templates/partials/icon-picker-modal.twig diff --git a/templates/groups/create.twig b/templates/groups/create.twig index e01eb83..12fac1c 100755 --- a/templates/groups/create.twig +++ b/templates/groups/create.twig @@ -23,8 +23,14 @@
- - Используйте классы Font Awesome, например: fa-server, fa-desktop +
+ + + +
+ Выберите иконку или введите вручную
diff --git a/templates/groups/edit.twig b/templates/groups/edit.twig index 5f6cbf5..5009c90 100755 --- a/templates/groups/edit.twig +++ b/templates/groups/edit.twig @@ -24,8 +24,14 @@
- - Используйте классы Font Awesome, например: fa-server, fa-desktop +
+ + + +
+ Выберите иконку или введите вручную
diff --git a/templates/layout.twig b/templates/layout.twig index 6d8acd5..7f495d6 100755 --- a/templates/layout.twig +++ b/templates/layout.twig @@ -128,5 +128,6 @@ + {% include 'partials/icon-picker-modal.twig' %} \ No newline at end of file diff --git a/templates/partials/icon-picker-modal.twig b/templates/partials/icon-picker-modal.twig new file mode 100644 index 0000000..bc7661f --- /dev/null +++ b/templates/partials/icon-picker-modal.twig @@ -0,0 +1,466 @@ + + + + + +