Update the table's padding for Publisher and Servers LiveViews.
This commit is contained in:
@@ -13,6 +13,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Index do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
|
<div class="pt-2">
|
||||||
<.table
|
<.table
|
||||||
id="dbi_servers"
|
id="dbi_servers"
|
||||||
rows={@streams.dbi_servers}
|
rows={@streams.dbi_servers}
|
||||||
@@ -39,6 +40,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Index do
|
|||||||
</.link>
|
</.link>
|
||||||
</:action>
|
</:action>
|
||||||
</.table>
|
</.table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<.modal
|
<.modal
|
||||||
:if={@live_action in [:new, :edit]}
|
:if={@live_action in [:new, :edit]}
|
||||||
|
|||||||
@@ -13,13 +13,12 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Index do
|
|||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
|
<div class="pt-2">
|
||||||
<.table
|
<.table
|
||||||
id="publishers"
|
id="publishers"
|
||||||
rows={@streams.publishers}
|
rows={@streams.publishers}
|
||||||
row_click={fn {_id, publisher} -> JS.navigate(~p"/publishers/#{publisher}") end}
|
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}}>
|
<:action :let={{_id, publisher}}>
|
||||||
@@ -29,16 +28,8 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Index do
|
|||||||
|
|
||||||
<.link patch={~p"/publishers/#{publisher}/edit"}>Edit</.link>
|
<.link patch={~p"/publishers/#{publisher}/edit"}>Edit</.link>
|
||||||
</:action>
|
</: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>
|
</.table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<.modal
|
<.modal
|
||||||
:if={@live_action in [:new, :edit]}
|
:if={@live_action in [:new, :edit]}
|
||||||
|
|||||||
Reference in New Issue
Block a user