Add remarks to articles
This commit is contained in:
@ -26,6 +26,7 @@ defmodule OutlookWeb.ArticleLive.FormComponent do
|
||||
<.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" />
|
||||
<.input field={{f, :remarks}} type="textarea" label="remarks" class="h-28" />
|
||||
<:actions>
|
||||
<.button phx-disable-with="Saving...">Save Article</.button>
|
||||
</:actions>
|
||||
|
||||
@ -40,6 +40,10 @@
|
||||
<a href="#" class="hide-link" phx-click={JS.remove_class("show-boundary", to: ".article")}>hide boundaries</a>
|
||||
<.render_doc tree={@article_content} />
|
||||
</div>
|
||||
<div class="my-4">
|
||||
<div>Remarks:</div>
|
||||
<%= @article.remarks |> tidy_raw %>
|
||||
</div>
|
||||
<div class="h-10" />
|
||||
|
||||
<.link class="text-sm font-semibold" navigate={~p"/translations/new?article_id=#{@article.id}"}>New Translation</.link>
|
||||
|
||||
Reference in New Issue
Block a user