Add dropdown for language of Article
And a configuration with the available Deepl source and target languages.
This commit is contained in:
@ -23,7 +23,8 @@ defmodule OutlookWeb.ArticleLive.FormComponent do
|
||||
<.input field={{f, :author_id}} type="hidden" />
|
||||
<.input field={{f, :title}} type="text" label="title" />
|
||||
<.input field={{f, :url}} type="text" label="url" />
|
||||
<.input field={{f, :language}} type="text" label="language" />
|
||||
<.input field={{f, :language}} type="select" label="language"
|
||||
options={Application.get_env(:outlook,:deepl)[:source_langs]} />
|
||||
<.input field={{f, :date}} type="datetime-local" label="date" />
|
||||
<:actions>
|
||||
<.button phx-disable-with="Saving...">Save Article</.button>
|
||||
|
||||
Reference in New Issue
Block a user