Update tunit editor
Now with fancy new radio-buttons.
This commit is contained in:
@ -27,7 +27,6 @@ defmodule OutlookWeb.TranslationLive.FormComponent do
|
||||
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, :content}} type="text" label="content" /> --%>
|
||||
<.input field={{f, :date}} type="datetime-local" label="date" />
|
||||
<div class="flex items-center justify-between">
|
||||
<.input field={{f, :public}} type="checkbox" label="public" />
|
||||
@ -56,7 +55,7 @@ defmodule OutlookWeb.TranslationLive.FormComponent do
|
||||
{:ok,
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign(:current_tunit, nil)
|
||||
|> assign(:current_tunit, %TranslationUnit{status: nil})
|
||||
|> assign(:changeset, changeset)
|
||||
|> assign_article_tree(translation)
|
||||
|> assign(:deepl_progress, nil)}
|
||||
|
||||
@ -50,6 +50,7 @@ defmodule OutlookWeb.TranslationLive.NewEdit do
|
||||
|
||||
defp common_assigns(socket) do
|
||||
assign(socket, form_cmpnt_id: @form_cmpnt_id)
|
||||
|> assign(:page_title, page_title(socket.assigns.live_action))
|
||||
end
|
||||
|
||||
@impl true
|
||||
|
||||
Reference in New Issue
Block a user