My space on the web
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>
<%= if @live_action in [:edit] do %>
<%= live_modal @socket, MirageWeb.NoteLinkLive.FormComponent,
title: @page_title,
action: @live_action,
note_link: @note_link,
return_to: Routes.note_link_show_path(@socket, :show, @note_link) %>
<% end %>
<%= @note_link.title %>
<%= @note_link.url %>
<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:, data: [confirm: "Are you sure?"], class: "button" %>