Add first step of creating an Article
This commit is contained in:
37
lib/outlook_web/live/article_live/new_components.ex
Normal file
37
lib/outlook_web/live/article_live/new_components.ex
Normal file
@ -0,0 +1,37 @@
|
||||
defmodule OutlookWeb.ArticleLive.NewComponents do
|
||||
use OutlookWeb, :html
|
||||
|
||||
def import_raw_html(assigns) do
|
||||
~H"""
|
||||
<div>
|
||||
<div>Import article</div>
|
||||
|
||||
<.simple_form
|
||||
:let={f}
|
||||
for={@changeset}
|
||||
id="raw-html-input-form"
|
||||
phx-change="validate_raw_html_input"
|
||||
phx-submit="convert_raw_html_input"
|
||||
>
|
||||
<.input field={{f, :content}} type="textarea" label="text to import" phx-debounce="500" />
|
||||
<:actions>
|
||||
<.button phx-disable-with="Importing...">HTML importieren</.button>
|
||||
</:actions>
|
||||
</.simple_form>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
def review_raw_internaltree(assigns) do
|
||||
~H"""
|
||||
<div>Review Raw InternalTree</div>
|
||||
|
||||
"""
|
||||
end
|
||||
|
||||
def review_translation_units(assigns) do
|
||||
~H"""
|
||||
<div>Review Translation Units</div>
|
||||
"""
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user