This commit is contained in:
Rüdiger Diedrich
2024-01-20 19:10:56 +01:00
commit 5e6035ac46
936 changed files with 5995 additions and 0 deletions

View 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>