My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
877 B

<header class="hero">
<h1>Show Note link</h1>
</header>
<%= if @live_action in [:edit] do %>
<%= live_modal @socket, MirageWeb.NoteLinkLive.FormComponent,
id: @note_link.id,
title: @page_title,
action: @live_action,
note_link: @note_link,
return_to: Routes.note_link_show_path(@socket, :show, @note_link) %>
<% end %>
<ul>
<li>
<strong>Title:</strong>
<%= @note_link.title %>
</li>
<li>
<strong>Url:</strong>
<%= @note_link.url %>
</li>
</ul>
<div class="buttons">
<%= live_patch "Edit", to: Routes.note_link_show_path(@socket, :edit, @note_link), class: "button", class: "button" %>
<%= live_redirect "Back", to: Routes.note_link_index_path(@socket, :index), class: "button" %>
<%= link "Delete", to: "#", phx_click: "delete", phx_value_id: @note_link.id, data: [confirm: "Are you sure?"], class: "button" %>
</div>