defmodule OutlookWeb.ArticleLive.NewComponents do use Phoenix.Component use OutlookWeb, :html alias Outlook.{InternalTree,HtmlPreparations} def import_raw_html(assigns) do ~H"""
Import article
<.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" class="h-96" /> <:actions> <.button phx-disable-with="Importing...">HTML importieren
""" end def review_raw_internaltree(assigns) do ~H"""
Review Raw InternalTree
<%= InternalTree.render_html_preview(@raw_internal_tree) |> raw %>
<.render_tree tree={@raw_internal_tree} >
<.button phx-click="approve_raw_internaltree">Continue """ end def review_translation_units(assigns) do ~H"""
Review Translation Units
<.button phx-click="approve_translation_units">Continue """ end def final_form(assigns) do ~H"""
Final Form
<.button phx-click="save">Save """ end end