add blank ammo types page
This commit is contained in:
parent
1b33632c29
commit
cccc5aafc7
@ -3,6 +3,15 @@
|
||||
Listing Ammo Types
|
||||
</h1>
|
||||
|
||||
<%= if @ammo_types |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-500">
|
||||
No Ammo Types 😔
|
||||
</h2>
|
||||
|
||||
<%= live_patch "Add your first type!",
|
||||
to: Routes.ammo_type_index_path(@socket, :new),
|
||||
class: "btn btn-primary" %>
|
||||
<% else %>
|
||||
<%= live_patch "New Ammo type",
|
||||
to: Routes.ammo_type_index_path(@socket, :new),
|
||||
class: "btn btn-primary" %>
|
||||
@ -39,6 +48,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= if @live_action in [:new, :edit] do %>
|
||||
|
Loading…
Reference in New Issue
Block a user