Files
phoenix-ausblick/lib/outlook_web/live/article_live/new.html.heex
Thelonius Kort b7bd9195b6 Add importing html and save it to Article
Additionally defines a wizard logic which is partially unused yet.
2022-12-29 16:43:52 +01:00

21 lines
642 B
Plaintext

<.header>
New article for <%= @author.name %>
</.header>
<.import_raw_html :if={@step == :import_raw_html} changeset={@changeset} />
<.review_raw_internaltree :if={@step == :review_raw_internaltree} raw_internal_tree={@raw_internal_tree} />
<.review_translation_units :if={@step == :review_translation_units} />
<.live_component
:if={@step == :final_form}
module={OutlookWeb.ArticleLive.FormComponent}
id={:new}
title="New Article"
action={:new}
article={@article}
author={@author}
internal_tree={@raw_internal_tree}
navigate={~p"/authors/#{@author}"}
/>
<.back navigate={~p"/authors/#{@author}"}>Back to author</.back>