diff --git a/lib/outlook_web/live/translation_live/form_component.ex b/lib/outlook_web/live/translation_live/form_component.ex index 45c347a..1b358ac 100644 --- a/lib/outlook_web/live/translation_live/form_component.ex +++ b/lib/outlook_web/live/translation_live/form_component.ex @@ -14,6 +14,7 @@ defmodule OutlookWeb.TranslationLive.FormComponent do <:subtitle>Use this form to manage translation records in your database. +
more/less fields
<.simple_form :let={f} for={@changeset} @@ -23,16 +24,20 @@ defmodule OutlookWeb.TranslationLive.FormComponent do phx-submit="save" > <.input field={{f, :article_id}} type="hidden" /> - <.input field={{f, :language}} type="select" label="language" - options={Application.get_env(:outlook,:deepl)[:target_langs]} /> - <.input field={{f, :title}} type="text" label="title" /> - <.input field={{f, :teaser}} type="textarea" label="teaser" class="h-28" /> - <.input field={{f, :date}} type="datetime-local" label="date" /> -
- <.input field={{f, :public}} type="checkbox" label="public" /> - <.input field={{f, :unauthorized}} type="checkbox" label="unauthorized" /> +
+ <.input field={{f, :language}} type="select" label="language" + options={Application.get_env(:outlook,:deepl)[:target_langs]} /> +
+ <.input field={{f, :title}} type="text" label="title" /> +
+ <.input field={{f, :teaser}} type="textarea" label="teaser" class="h-28" /> + <.input field={{f, :date}} type="datetime-local" label="date" /> +
+ <.input field={{f, :public}} type="checkbox" label="public" /> + <.input field={{f, :unauthorized}} type="checkbox" label="unauthorized" /> +
+ <.input field={{f, :remarks}} type="textarea" label="remarks" class="h-28" />
- <.input field={{f, :remarks}} type="textarea" label="remarks" class="h-28" /> <:actions>