From d2e4b5d829f0ea1763b06b54b65263317ee9c885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 1 Sep 2023 09:01:33 +0200 Subject: [PATCH] Mention HEEx instead of LiveView --- lib/phoenix_html/form.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/phoenix_html/form.ex b/lib/phoenix_html/form.ex index 1fbf8bf..a8a5dce 100644 --- a/lib/phoenix_html/form.ex +++ b/lib/phoenix_html/form.ex @@ -345,7 +345,7 @@ defmodule Phoenix.HTML.Form do def form_for(form_data, action, options) when is_list(options) do IO.warn( "form_for/3 without an anonymous function is deprecated. " <> - "If you are using Phoenix.LiveView, use the new Phoenix.Component.form/1 component" + "If you are using HEEx templates, use the new Phoenix.Component.form/1 component" ) %{Phoenix.HTML.FormData.to_form(form_data, options) | action: action} @@ -400,8 +400,8 @@ defmodule Phoenix.HTML.Form do We will explore all them below. - Note that if you are using Phoenix LiveView, `form_for/4` is no longer the - preferred way to generate a form tag, and you should use + Note that if you are using HEEx templates, `form_for/4` is no longer + the preferred way to generate a form tag, and you should use [`Phoenix.Component.form/1`](https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#form/1) instead. @@ -611,7 +611,7 @@ defmodule Phoenix.HTML.Form do when (is_atom(field) or is_binary(field)) and is_list(options) do IO.warn( "inputs_for/3 without an anonymous function is deprecated. " <> - "If you are using Phoenix.LiveView, use the new Phoenix.Component.inputs_for/1 component" + "If you are using HEEx templates, use the new Phoenix.Component.inputs_for/1 component" ) options =