Update the table's padding for Publisher and Servers LiveViews.
This commit is contained in:
@@ -13,32 +13,34 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Index do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
<.table
|
<div class="pt-2">
|
||||||
id="dbi_servers"
|
<.table
|
||||||
rows={@streams.dbi_servers}
|
id="dbi_servers"
|
||||||
row_click={fn {_id, dbi_server} -> JS.navigate(~p"/servers/#{dbi_server}") end}
|
rows={@streams.dbi_servers}
|
||||||
>
|
row_click={fn {_id, dbi_server} -> JS.navigate(~p"/servers/#{dbi_server}") end}
|
||||||
<:col :let={{_id, dbi_server}} label="Name">{dbi_server.name}</:col>
|
>
|
||||||
|
<:col :let={{_id, dbi_server}} label="Name">{dbi_server.name}</:col>
|
||||||
|
|
||||||
<:col :let={{_id, dbi_server}} label="Url">{dbi_server.url}</:col>
|
<:col :let={{_id, dbi_server}} label="Url">{dbi_server.url}</:col>
|
||||||
|
|
||||||
<:action :let={{_id, dbi_server}}>
|
<:action :let={{_id, dbi_server}}>
|
||||||
<div class="sr-only">
|
<div class="sr-only">
|
||||||
<.link navigate={~p"/servers/#{dbi_server}"}>Show</.link>
|
<.link navigate={~p"/servers/#{dbi_server}"}>Show</.link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.link patch={~p"/servers/#{dbi_server}/edit"}>Edit</.link>
|
<.link patch={~p"/servers/#{dbi_server}/edit"}>Edit</.link>
|
||||||
</:action>
|
</:action>
|
||||||
|
|
||||||
<:action :let={{id, dbi_server}}>
|
<:action :let={{id, dbi_server}}>
|
||||||
<.link
|
<.link
|
||||||
phx-click={JS.push("delete", value: %{id: dbi_server.id}) |> hide("##{id}")}
|
phx-click={JS.push("delete", value: %{id: dbi_server.id}) |> hide("##{id}")}
|
||||||
data-confirm="Are you sure?"
|
data-confirm="Are you sure?"
|
||||||
>
|
>
|
||||||
Delete
|
Delete
|
||||||
</.link>
|
</.link>
|
||||||
</:action>
|
</:action>
|
||||||
</.table>
|
</.table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<.modal
|
<.modal
|
||||||
:if={@live_action in [:new, :edit]}
|
:if={@live_action in [:new, :edit]}
|
||||||
|
|||||||
@@ -13,32 +13,23 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Index do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
<.table
|
<div class="pt-2">
|
||||||
id="publishers"
|
<.table
|
||||||
rows={@streams.publishers}
|
id="publishers"
|
||||||
row_click={fn {_id, publisher} -> JS.navigate(~p"/publishers/#{publisher}") end}
|
rows={@streams.publishers}
|
||||||
>
|
row_click={fn {_id, publisher} -> JS.navigate(~p"/publishers/#{publisher}") end}
|
||||||
<:col :let={{_id, publisher}} label="Id">{publisher.id}</:col>
|
>
|
||||||
|
<:col :let={{_id, publisher}} label="Name">{publisher.name}</:col>
|
||||||
|
|
||||||
<:col :let={{_id, publisher}} label="Name">{publisher.name}</:col>
|
<:action :let={{_id, publisher}}>
|
||||||
|
<div class="sr-only">
|
||||||
|
<.link navigate={~p"/publishers/#{publisher}"}>Show</.link>
|
||||||
|
</div>
|
||||||
|
|
||||||
<:action :let={{_id, publisher}}>
|
<.link patch={~p"/publishers/#{publisher}/edit"}>Edit</.link>
|
||||||
<div class="sr-only">
|
</:action>
|
||||||
<.link navigate={~p"/publishers/#{publisher}"}>Show</.link>
|
</.table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.link patch={~p"/publishers/#{publisher}/edit"}>Edit</.link>
|
|
||||||
</:action>
|
|
||||||
|
|
||||||
<:action :let={{id, publisher}}>
|
|
||||||
<.link
|
|
||||||
phx-click={JS.push("delete", value: %{id: publisher.id}) |> hide("##{id}")}
|
|
||||||
data-confirm="Are you sure?"
|
|
||||||
>
|
|
||||||
Delete
|
|
||||||
</.link>
|
|
||||||
</:action>
|
|
||||||
</.table>
|
|
||||||
|
|
||||||
<.modal
|
<.modal
|
||||||
:if={@live_action in [:new, :edit]}
|
:if={@live_action in [:new, :edit]}
|
||||||
|
|||||||
Reference in New Issue
Block a user