commit: a80776b2607bbfdab888d2939c1597b1ad31f220 parent f1586f023050ff071713a63ee9c5e5eb1d135093 Author: nicole mikołajczyk <git@mkljczk.pl> Date: Fri, 28 Nov 2025 16:10:02 +0100 make it work Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>Diffstat:
3 files changed, 9 insertions(+), 7 deletions(-)diff --git a/lib/pleroma/web/frontend_switcher/frontend_switcher_view.ex b/lib/pleroma/web/frontend_switcher/frontend_switcher_view.ex@@ -1,3 +1,5 @@ defmodule Pleroma.Web.FrontendSwitcher.FrontendSwitcherView do use Pleroma.Web, :view + + import Phoenix.HTML.Form enddiff --git a/lib/pleroma/web/templates/frontend_switcher/frontend_switcher/switch.html.eex b/lib/pleroma/web/templates/frontend_switcher/frontend_switcher/switch.html.eex@@ -0,0 +1,7 @@ +<h2>Switch frontend</h2> + +<%= form_for @conn, Routes.frontend_switcher_path(@conn, :do_switch), fn f -> %> + <%= select(f, :frontend, @choices) %> + + <%= submit do: "submit" %> +<% end %>diff --git a/lib/pleroma/web/templates/frontend_switcher/switch.html.eex b/lib/pleroma/web/templates/frontend_switcher/switch.html.eex@@ -1,7 +0,0 @@ -<h2>Switch Frontend</h2> - -<%= form_for @conn, Routes.frontend_switcher_path(@conn, :do_switch), fn f -> %> - <%= select(f, :frontend, @choices) %> - - <%= submit do: "submit" %> -<% end %>