Show Ammo type
<%= if @live_action in [:edit] do %>
<%= live_modal CanneryWeb.AmmoTypeLive.FormComponent,
id: @ammo_type.id,
title: @page_title,
action: @live_action,
ammo_type: @ammo_type,
return_to: Routes.ammo_type_show_path(@socket, :show, @ammo_type) %>
<% end %>
-
Name:
<%= @ammo_type.name %>
-
Desc:
<%= @ammo_type.desc %>
-
Case material:
<%= @ammo_type.case_material %>
-
Bullet type:
<%= @ammo_type.bullet_type %>
-
Weight:
<%= @ammo_type.weight %>
-
Manufacturer:
<%= @ammo_type.manufacturer %>
<%= live_patch "Edit", to: Routes.ammo_type_show_path(@socket, :edit, @ammo_type), class: "button" %>
<%= live_redirect "Back", to: Routes.ammo_type_index_path(@socket, :index) %>