Remove tids for Translations

This commit is contained in:
Thelonius Kort
2023-03-01 15:58:38 +01:00
parent 3a2769eed1
commit 6d0ae825d8
5 changed files with 9 additions and 35 deletions

View File

@ -2,7 +2,7 @@
Listing Translations
</.header>
<.table id="translations" rows={@translations} row_click={&JS.navigate(~p(/translations/#{(&1).id}))}>
<.table id="translations" rows={@translations} row_click={&JS.navigate(~p(/translations/#{&1}))}>
<:col :let={translation} label="Language"><%= translation.language %></:col>
<:col :let={translation} label="Title"><%= translation.title %></:col>
<:col :let={translation} label="Teaser"><%= translation.teaser |> tidy_raw %></:col>
@ -12,9 +12,9 @@
<:col :let={translation} label="Unauthorized"><%= translation.unauthorized %></:col>
<:action :let={translation}>
<div class="sr-only">
<.link navigate={~p"/translations/#{translation.id}"}>Show</.link>
<.link navigate={~p"/translations/#{translation}"}>Show</.link>
</div>
<.link navigate={~p"/translations/#{translation.id}/edit"}>Edit</.link>
<.link navigate={~p"/translations/#{translation}/edit"}>Edit</.link>
</:action>
<:action :let={translation}>
<.link phx-click={JS.push("delete", value: %{id: translation.id})} data-confirm="Are you sure?">

View File

@ -2,7 +2,7 @@
Translation <%= @translation.id %>
<:subtitle>This is a translation record from your database.</:subtitle>
<:actions>
<.link navigate={~p"/translations/#{@translation.id}/edit"} phx-click={JS.push_focus()}>
<.link navigate={~p"/translations/#{@translation}/edit"} phx-click={JS.push_focus()}>
<.button>Edit translation</.button>
</.link>
</:actions>