Add "Unite with next" button
This commit is contained in:
@ -9,12 +9,12 @@ defmodule OutlookWeb.TunitEditorComponent do
|
||||
|
||||
def tunit_editor(assigns) do
|
||||
~H"""
|
||||
<div id="translation-unit-editor" phx-nohook="tunit_editor">
|
||||
<div id="translation-unit-editor" phx-no-hook="tunit_editor" phx-target={@target}>
|
||||
<%!-- <div class="h-48 p-2 border border-slate-500 rounded" contenteditable phx-no-change="update_current_tunit">
|
||||
<%= @current_tunit.content |> raw %>
|
||||
</div> --%>
|
||||
<form phx-change="update_current_tunit" phx-target={@target}>
|
||||
<textarea id="tunit-editor-content" name="content" class="h-48 rounded border-slate-500 resize-none bg-transparent w-full"
|
||||
<textarea id="tunit-editor-content" name="content" class="h-96 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} />
|
||||
@ -24,7 +24,7 @@ defmodule OutlookWeb.TunitEditorComponent do
|
||||
|
||||
defp statuses() do
|
||||
[ {:untranslated, "bg-red-800"},
|
||||
{:passable, "bg-amber-500"},
|
||||
{:passable, "bg-amber-500/70"},
|
||||
{:done, "bg-green-700"} ]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user