From ba5fc34d80480150a747d3e7496d0d042cd355b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Eppl=C3=A9e?= Date: Tue, 2 Dec 2025 19:24:45 +0100 Subject: [PATCH] Move custom fields to global admin settings --- lib/mv_web/components/layouts/navbar.ex | 2 +- lib/mv_web/live/custom_field_live/form.ex | 142 ---------- .../live/custom_field_live/form_component.ex | 122 +++++++++ lib/mv_web/live/custom_field_live/index.ex | 199 -------------- .../live/custom_field_live/index_component.ex | 259 ++++++++++++++++++ lib/mv_web/live/custom_field_live/show.ex | 75 ----- lib/mv_web/live/global_settings_live.ex | 47 +++- lib/mv_web/router.ex | 6 - priv/gettext/de/LC_MESSAGES/default.po | 117 ++++++-- priv/gettext/default.pot | 107 ++++++-- priv/gettext/en/LC_MESSAGES/default.po | 117 ++++++-- .../member_field_visibility_test.exs | 14 - .../live/custom_field_live/deletion_test.exs | 77 +++--- test/mv_web/live/profile_navigation_test.exs | 2 - 14 files changed, 719 insertions(+), 567 deletions(-) delete mode 100644 lib/mv_web/live/custom_field_live/form.ex create mode 100644 lib/mv_web/live/custom_field_live/form_component.ex delete mode 100644 lib/mv_web/live/custom_field_live/index.ex create mode 100644 lib/mv_web/live/custom_field_live/index_component.ex delete mode 100644 lib/mv_web/live/custom_field_live/show.ex delete mode 100644 test/membership/member_field_visibility_test.exs diff --git a/lib/mv_web/components/layouts/navbar.ex b/lib/mv_web/components/layouts/navbar.ex index 1c1138e..4246c99 100644 --- a/lib/mv_web/components/layouts/navbar.ex +++ b/lib/mv_web/components/layouts/navbar.ex @@ -23,7 +23,7 @@ defmodule MvWeb.Layouts.Navbar do {@club_name}