Add autoren and artikel for public viewing

This commit is contained in:
Thelonius Kort
2023-01-19 11:25:14 +01:00
parent aab04f5ecc
commit a93afea57b
12 changed files with 175 additions and 2 deletions

View File

@ -0,0 +1,20 @@
<.header>
Listing Autoren
<:actions>
<.link href={~p"/autoren/new"}>
<.button>New Autor</.button>
</.link>
</:actions>
</.header>
<.table id="autoren" rows={@autoren} row_click={&JS.navigate(~p"/autoren/#{&1}")}>
<:col :let={autor} label="Name"><%= autor.name %></:col>
<:col :let={autor} label="Description"><%= autor.description %></:col>
<:col :let={autor} label="Homepage name"><%= autor.homepage_name %></:col>
<:col :let={autor} label="Homepage url"><%= autor.homepage_url %></:col>
<:action :let={autor}>
<div class="sr-only">
<.link navigate={~p"/autoren/#{autor}"}>Show</.link>
</div>
</:action>
</.table>