init
This commit is contained in:
28
lib/webmon_web/live/website_live/show.html.heex
Normal file
28
lib/webmon_web/live/website_live/show.html.heex
Normal file
@ -0,0 +1,28 @@
|
||||
<.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>
|
Reference in New Issue
Block a user