33 lines
674 B
Plaintext
33 lines
674 B
Plaintext
<h1>Show Tag</h1>
|
|
|
|
<%= if @live_action in [:edit] do %>
|
|
<%= live_modal CanneryWeb.TagLive.FormComponent,
|
|
id: @tag.id,
|
|
title: @page_title,
|
|
action: @live_action,
|
|
tag: @tag,
|
|
return_to: Routes.tag_show_path(@socket, :show, @tag) %>
|
|
<% end %>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<strong>Name:</strong>
|
|
<%= @tag.name %>
|
|
</li>
|
|
|
|
<li>
|
|
<strong>Bg-color:</strong>
|
|
<%= @tag.bg_color %>
|
|
</li>
|
|
|
|
<li>
|
|
<strong>Text-color:</strong>
|
|
<%= @tag.text_color %>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<span><%= live_patch "Edit", to: Routes.tag_show_path(@socket, :edit, @tag), class: "button" %></span>
|
|
<span><%= live_redirect "Back", to: Routes.tag_index_path(@socket, :index) %></span>
|