Files
webmon/lib/webmon_web/live/website_live/show.html.heex
Rüdiger Diedrich 5e6035ac46 init
2024-01-20 19:10:56 +01:00

29 lines
819 B
Plaintext

<.header>
Website <%= @website.id %>
<:subtitle>This is a website record from your database.</:subtitle>
<:actions>
<.link patch={~p"/websites/#{@website}/show/edit"} phx-click={JS.push_focus()}>
<.button>Edit website</.button>
</.link>
</:actions>
</.header>
<.list>
<:item title="Name"><%= @website.name %></:item>
<:item title="Url"><%= @website.url %></:item>
<:item title="Status">...</:item>
</.list>
<.back navigate={~p"/websites"}>Back to websites</.back>
<.modal :if={@live_action == :edit} id="website-modal" show on_cancel={JS.patch(~p"/websites/#{@website}")}>
<.live_component
module={WebmonWeb.WebsiteLive.FormComponent}
id={@website.id}
title={@page_title}
action={@live_action}
website={@website}
patch={~p"/websites/#{@website}"}
/>
</.modal>