Add selecting next/previous tunit and highlight it

This commit is contained in:
Thelonius Kort
2023-03-05 20:56:19 +01:00
parent 4e6c516cb6
commit e20f8e33ee
5 changed files with 81 additions and 9 deletions

View File

@ -14,7 +14,7 @@ defmodule OutlookWeb.TunitEditorComponent do
<%= @current_tunit.content |> raw %>
</div> --%>
<form phx-change="update_current_tunit" phx-target={@target}>
<textarea name="content" class="h-48 rounded border-slate-500 resize-none bg-transparent w-full"
<textarea id="tunit-editor-content" name="content" class="h-48 rounded border-slate-500 resize-none bg-transparent w-full"
disabled={!@current_tunit.status}><%= @current_tunit.content %></textarea>
</form>
<.status_selector target={@target} disabled={!@current_tunit.status} tunit={@current_tunit} />