Add public_content to translations table and rename lang to language

This commit is contained in:
Thelonius Kort
2023-01-15 17:55:26 +01:00
parent 0b28b0acc0
commit aab04f5ecc
7 changed files with 20 additions and 9 deletions

View File

@ -23,7 +23,7 @@ defmodule OutlookWeb.TranslationLive.FormComponent do
phx-submit="save"
>
<.input field={{f, :article_id}} type="hidden" />
<.input field={{f, :lang}} type="select" label="lang"
<.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" />

View File

@ -3,7 +3,7 @@
</.header>
<.table id="translations" rows={@translations} row_click={&JS.navigate(~p"/translations/#{&1}")}>
<:col :let={translation} label="Lang"><%= translation.lang %></:col>
<:col :let={translation} label="Language"><%= translation.language %></:col>
<:col :let={translation} label="Title"><%= translation.title %></:col>
<:col :let={translation} label="Teaser"><%= translation.teaser %></:col>
<%!-- <:col :let={translation} label="Content"><%= translation.content %></:col> --%>

View File

@ -9,7 +9,7 @@
</.header>
<.list>
<:item title="Lang"><%= @translation.lang %></:item>
<:item title="Language"><%= @translation.language %></:item>
<:item title="Title"><%= @translation.title %></:item>
<:item title="Teaser"><%= @translation.teaser %></:item>
<%!-- <:item title="Content"><%= @translation.content %></:item> --%>