Update tunit editor

Now with fancy new radio-buttons.
This commit is contained in:
Thelonius Kort
2023-01-10 23:20:20 +01:00
parent e16710664d
commit 24e58c7d96
5 changed files with 37 additions and 34 deletions

View File

@ -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)}