<.header> Listing Translations <.table id="translations" rows={@translations} row_click={&JS.navigate(~p"/translations/#{&1}")}> <:col :let={translation} label="Language"><%= translation.language %> <:col :let={translation} label="Title"><%= translation.title %> <:col :let={translation} label="Teaser"><%= translation.teaser %> <%!-- <:col :let={translation} label="Content"><%= translation.content %> --%> <:col :let={translation} label="Date"><%= translation.date %> <:col :let={translation} label="Public"><%= translation.public %> <:col :let={translation} label="Unauthorized"><%= translation.unauthorized %> <:action :let={translation}>
<.link navigate={~p"/translations/#{translation}"}>Show
<.link navigate={~p"/translations/#{translation}/edit"}>Edit <:action :let={translation}> <.link phx-click={JS.push("delete", value: %{id: translation.id})} data-confirm="Are you sure?"> Delete <.modal :if={@live_action in [:new, :edit]} id="translation-modal" show on_cancel={JS.navigate(~p"/translations")} > <.live_component module={OutlookWeb.TranslationLive.FormComponent} id={@translation.id || :new} title={@page_title} action={@live_action} translation={@translation} navigate={~p"/translations"} />