fix ammo type displays
This commit is contained in:
parent
bf27511caa
commit
91ff0c14e4
@ -3,6 +3,7 @@
|
|||||||
- Show tags on containers
|
- Show tags on containers
|
||||||
- Add "Cannery" to page titles
|
- Add "Cannery" to page titles
|
||||||
- Don't show true/false column for ammo types if all values are false
|
- Don't show true/false column for ammo types if all values are false
|
||||||
|
- Fix ammo type firing type display
|
||||||
|
|
||||||
|
|
||||||
# 0.1.0
|
# 0.1.0
|
||||||
|
@ -61,7 +61,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
|||||||
{gettext("Grains"), :grains, :string},
|
{gettext("Grains"), :grains, :string},
|
||||||
{gettext("Pressure"), :pressure, :string},
|
{gettext("Pressure"), :pressure, :string},
|
||||||
{gettext("Primer type"), :primer_type, :string},
|
{gettext("Primer type"), :primer_type, :string},
|
||||||
{gettext("Rimfire"), :rimfire, :boolean},
|
{gettext("Firing type"), :firing_type, :string},
|
||||||
{gettext("Tracer"), :tracer, :boolean},
|
{gettext("Tracer"), :tracer, :boolean},
|
||||||
{gettext("Incendiary"), :incendiary, :boolean},
|
{gettext("Incendiary"), :incendiary, :boolean},
|
||||||
{gettext("Blank"), :blank, :boolean},
|
{gettext("Blank"), :blank, :boolean},
|
||||||
@ -69,17 +69,12 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
|||||||
{gettext("Manufacturer"), :manufacturer, :string},
|
{gettext("Manufacturer"), :manufacturer, :string},
|
||||||
{gettext("UPC"), :upc, :string}
|
{gettext("UPC"), :upc, :string}
|
||||||
]
|
]
|
||||||
# filter columns to only used ones
|
|
||||||
|> Enum.filter(fn {_label, field, _type} ->
|
|
||||||
ammo_types |> Enum.any?(fn ammo_type -> not (ammo_type |> Map.get(field) |> is_nil()) end)
|
|
||||||
end)
|
|
||||||
# if boolean, remove if all values are false
|
|
||||||
|> Enum.filter(fn {_label, field, type} ->
|
|> Enum.filter(fn {_label, field, type} ->
|
||||||
if type == :boolean do
|
# remove columns if all values match defaults
|
||||||
ammo_types |> Enum.any?(fn ammo_type -> not (ammo_type |> Map.get(field) == false) end)
|
default_value = if type == :boolean, do: false, else: nil
|
||||||
else
|
|
||||||
true
|
ammo_types
|
||||||
end
|
|> Enum.any?(fn ammo_type -> not (ammo_type |> Map.get(field) == default_value) end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
socket |> assign(ammo_types: ammo_types, columns_to_display: columns_to_display)
|
socket |> assign(ammo_types: ammo_types, columns_to_display: columns_to_display)
|
||||||
|
@ -35,70 +35,59 @@
|
|||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<div class="grid sm:grid-cols-2 text-center justify-center items-center">
|
<div class="grid sm:grid-cols-2 gap-4 text-center justify-center items-center">
|
||||||
<%= for {field_name, field} <- [
|
<%= for {field_name, field, type} <- [
|
||||||
{gettext("Bullet type"), :bullet_type},
|
{gettext("Bullet type"), :bullet_type, :string},
|
||||||
{gettext("Bullet core"), :bullet_core},
|
{gettext("Bullet core"), :bullet_core, :string},
|
||||||
{gettext("Cartridge"), :cartridge},
|
{gettext("Cartridge"), :cartridge, :string},
|
||||||
{gettext("Caliber"), :caliber},
|
{gettext("Caliber"), :caliber, :string},
|
||||||
{gettext("Case material"), :case_material},
|
{gettext("Case material"), :case_material, :string},
|
||||||
{gettext("Jacket type"), :jacket_type},
|
{gettext("Jacket type"), :jacket_type, :string},
|
||||||
{gettext("Muzzle velocity"), :muzzle_velocity},
|
{gettext("Muzzle velocity"), :muzzle_velocity, :string},
|
||||||
{gettext("Powder type"), :powder_type},
|
{gettext("Powder type"), :powder_type, :string},
|
||||||
{gettext("Powder grains per charge"), :powder_grains_per_charge},
|
{gettext("Powder grains per charge"), :powder_grains_per_charge, :string},
|
||||||
{gettext("Grains"), :grains},
|
{gettext("Grains"), :grains, :string},
|
||||||
{gettext("Pressure"), :pressure},
|
{gettext("Pressure"), :pressure, :string},
|
||||||
{gettext("Primer type"), :primer_type}
|
{gettext("Primer type"), :primer_type, :string},
|
||||||
|
{gettext("Firing type"), :firing_type, :string},
|
||||||
|
{gettext("Tracer"), :tracer, :boolean},
|
||||||
|
{gettext("Incendiary"), :incendiary, :boolean},
|
||||||
|
{gettext("Blank"), :blank, :boolean},
|
||||||
|
{gettext("Corrosive"), :corrosive, :boolean},
|
||||||
|
{gettext("Manufacturer"), :manufacturer, :string},
|
||||||
|
{gettext("UPC"), :upc, :string}
|
||||||
] do %>
|
] do %>
|
||||||
<%= if @ammo_type |> Map.get(field) do %>
|
<%= if @ammo_type |> Map.get(field) do %>
|
||||||
<h3 class="mb-2 sm:mr-4 title text-lg">
|
<h3 class="title text-lg">
|
||||||
<%= field_name %>:
|
<%= field_name %>:
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<span class="mb-4 sm:mb-2 text-primary-600">
|
<span class="text-primary-600">
|
||||||
<%= @ammo_type |> Map.get(field) %>
|
<%= case type do %>
|
||||||
</span>
|
<% :boolean -> %>
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= for {field_name, field} <- [
|
|
||||||
{"Rimfire", :rimfire},
|
|
||||||
{"Tracer", :tracer},
|
|
||||||
{"Incendiary", :incendiary},
|
|
||||||
{"Blank", :blank},
|
|
||||||
{"Corrosive", :corrosive}
|
|
||||||
] do %>
|
|
||||||
<h3 class="mb-2 sm:mr-4 title text-lg">
|
|
||||||
<%= field_name %>:
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<span class="mb-4 sm:mb-2 text-primary-600">
|
|
||||||
<%= @ammo_type |> Map.get(field) |> humanize() %>
|
<%= @ammo_type |> Map.get(field) |> humanize() %>
|
||||||
</span>
|
<% _ -> %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= for {field_name, field} <- [{"Manufacturer", :manufacturer}, {"UPC", :upc}] do %>
|
|
||||||
<%= if @ammo_type |> Map.get(field) do %>
|
|
||||||
<h3 class="mb-2 sm:mr-4 title text-lg">
|
|
||||||
<%= field_name %>:
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<span class="mb-4 sm:mb-2 text-primary-600">
|
|
||||||
<%= @ammo_type |> Map.get(field) %>
|
<%= @ammo_type |> Map.get(field) %>
|
||||||
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= if @avg_cost_per_round do %>
|
<%= if @avg_cost_per_round do %>
|
||||||
<h3 class="mb-2 sm:mr-4 title text-lg">
|
<h3 class="title text-lg">
|
||||||
<%= gettext("Average Price paid") %>:
|
<%= gettext("Average Price paid") %>:
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<span class="mb-4 sm:mb-2 text-primary-600">
|
<span class="text-primary-600">
|
||||||
<%= gettext("$%{amount}",
|
<%= gettext("$%{amount}",
|
||||||
amount: @avg_cost_per_round |> :erlang.float_to_binary(decimals: 2)
|
amount: @avg_cost_per_round |> :erlang.float_to_binary(decimals: 2)
|
||||||
) %>
|
) %>
|
||||||
</span>
|
</span>
|
||||||
|
<% else %>
|
||||||
|
<h3 class="title text-lg col-span-2">
|
||||||
|
<%= gettext("No cost information") %>
|
||||||
|
<%= display_emoji("😔") %>
|
||||||
|
</h3>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -107,6 +96,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||||
<%= gettext("No ammo for this type") %>
|
<%= gettext("No ammo for this type") %>
|
||||||
|
<%= display_emoji("😔") %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= for ammo_group <- @ammo_groups do %>
|
<%= for ammo_group <- @ammo_groups do %>
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= unless tag_options(@tags, @container) |> Enum.empty?() do %>
|
<%= unless tag_options(@tags, @container) |> Enum.empty?() do %>
|
||||||
<hr class="hr">
|
<hr class="hr" />
|
||||||
|
|
||||||
<.form
|
<.form
|
||||||
let={f}
|
let={f}
|
||||||
@ -44,7 +44,9 @@
|
|||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
<%= select(f, :tag_id, tag_options(@tags, @container), class: "text-center col-span-2 input input-primary") %>
|
<%= select(f, :tag_id, tag_options(@tags, @container),
|
||||||
|
class: "text-center col-span-2 input input-primary"
|
||||||
|
) %>
|
||||||
<%= error_tag(f, :tag_id, "col-span-3 text-center") %>
|
<%= error_tag(f, :tag_id, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Add"),
|
<%= submit(dgettext("actions", "Add"),
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</:tag_actions>
|
</:tag_actions>
|
||||||
|
|
||||||
<%= live_patch to: Routes.container_index_path(Endpoint, :edit, container),
|
<%= live_patch to: Routes.container_index_path(Endpoint, :edit, container),
|
||||||
class: "text-primary-600 link",
|
class: "text-primary-600 link",
|
||||||
data: [qa: "edit-#{container.id}"] do %>
|
data: [qa: "edit-#{container.id}"] do %>
|
||||||
|
@ -86,7 +86,8 @@ defmodule CanneryWeb.ContainerLive.Show do
|
|||||||
|
|
||||||
@spec render_container(Socket.t(), Container.id(), User.t()) :: Socket.t()
|
@spec render_container(Socket.t(), Container.id(), User.t()) :: Socket.t()
|
||||||
defp render_container(%{assigns: %{live_action: live_action}} = socket, id, current_user) do
|
defp render_container(%{assigns: %{live_action: live_action}} = socket, id, current_user) do
|
||||||
%{name: container_name} = container =
|
%{name: container_name} =
|
||||||
|
container =
|
||||||
Containers.get_container!(id, current_user)
|
Containers.get_container!(id, current_user)
|
||||||
|> Repo.preload([:ammo_groups, :tags], force: true)
|
|> Repo.preload([:ammo_groups, :tags], force: true)
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ msgid "Why not add one?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/add_tag_component.html.heex:17
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ msgid "Ammo type"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:94
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:78
|
||||||
msgid "Average Price paid"
|
msgid "Average Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -56,6 +56,7 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:154
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:154
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||||
msgid "Blank"
|
msgid "Blank"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -115,6 +116,7 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||||
msgid "Corrosive"
|
msgid "Corrosive"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -137,7 +139,7 @@ msgid "Description"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/container_card.ex:27
|
#: lib/cannery_web/components/container_card.ex:31
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:8
|
#: lib/cannery_web/live/container_live/show.html.heex:8
|
||||||
msgid "Description:"
|
msgid "Description:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -164,12 +166,6 @@ msgstr ""
|
|||||||
msgid "Edit Ammo type"
|
msgid "Edit Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/container_live/index.ex:24
|
|
||||||
#: lib/cannery_web/live/container_live/show.ex:89
|
|
||||||
msgid "Edit Container"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:35
|
#: lib/cannery_web/live/invite_live/index.ex:35
|
||||||
msgid "Edit Invite"
|
msgid "Edit Invite"
|
||||||
@ -205,6 +201,7 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:150
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:150
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||||
msgid "Incendiary"
|
msgid "Incendiary"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -240,7 +237,7 @@ msgid "Listing Ammo types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:33
|
#: lib/cannery_web/live/container_live/index.ex:38
|
||||||
msgid "Listing Containers"
|
msgid "Listing Containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -261,7 +258,7 @@ msgid "Location"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/container_card.ex:39
|
#: lib/cannery_web/components/container_card.ex:43
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:20
|
#: lib/cannery_web/live/container_live/show.html.heex:20
|
||||||
msgid "Location:"
|
msgid "Location:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -279,6 +276,7 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:162
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:162
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||||
msgid "Manufacturer"
|
msgid "Manufacturer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -307,7 +305,7 @@ msgid "New Ammo type"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:29
|
#: lib/cannery_web/live/container_live/index.ex:33
|
||||||
msgid "New Container"
|
msgid "New Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -332,12 +330,12 @@ msgid "No Ammo Types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:109
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||||
msgid "No ammo for this type"
|
msgid "No ammo for this type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:88
|
#: lib/cannery_web/live/container_live/show.html.heex:77
|
||||||
msgid "No ammo groups in this container"
|
msgid "No ammo groups in this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -352,6 +350,7 @@ msgid "No invites"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:30
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -407,11 +406,6 @@ msgstr ""
|
|||||||
msgid "Public Signups"
|
msgid "Public Signups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
|
||||||
msgid "Rimfire"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:66
|
#: lib/cannery_web/live/home_live.ex:66
|
||||||
msgid "Secure:"
|
msgid "Secure:"
|
||||||
@ -442,11 +436,6 @@ msgstr ""
|
|||||||
msgid "Show Ammo type"
|
msgid "Show Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/container_live/show.ex:88
|
|
||||||
msgid "Show Container"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:76
|
#: lib/cannery_web/live/home_live.ex:76
|
||||||
msgid "Simple:"
|
msgid "Simple:"
|
||||||
@ -464,7 +453,6 @@ msgstr ""
|
|||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:40
|
#: lib/cannery_web/components/topbar.ex:40
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:60
|
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||||
msgid "Tags"
|
msgid "Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -492,6 +480,7 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:146
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:146
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||||
msgid "Tracer"
|
msgid "Tracer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -502,7 +491,7 @@ msgid "Type"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/container_card.ex:33
|
#: lib/cannery_web/components/container_card.ex:37
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:14
|
#: lib/cannery_web/live/container_live/show.html.heex:14
|
||||||
msgid "Type:"
|
msgid "Type:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -532,11 +521,6 @@ msgstr ""
|
|||||||
msgid "Your data stays with you, period"
|
msgid "Your data stays with you, period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/container_live/show.ex:90
|
|
||||||
msgid "Add Tag to Container"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:49
|
#: lib/cannery_web/live/container_live/show.html.heex:49
|
||||||
msgid "No tags for this container"
|
msgid "No tags for this container"
|
||||||
@ -663,7 +647,7 @@ msgstr ""
|
|||||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:22
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:22
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:82
|
||||||
msgid "$%{amount}"
|
msgid "$%{amount}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -703,6 +687,7 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:168
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:168
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||||
msgid "UPC"
|
msgid "UPC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -734,6 +719,8 @@ msgstr ""
|
|||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:137
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:137
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -746,3 +733,30 @@ msgstr ""
|
|||||||
#: lib/cannery_web/templates/layout/live.html.heex:37
|
#: lib/cannery_web/templates/layout/live.html.heex:37
|
||||||
msgid "Loading..."
|
msgid "Loading..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:29
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:97
|
||||||
|
msgid "Edit %{name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:48
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:98
|
||||||
|
msgid "Edit %{name} tags"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:50
|
||||||
|
msgid "Rounds:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:96
|
||||||
|
msgid "Show %{name}"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:88
|
||||||
|
msgid "No cost information"
|
||||||
|
msgstr ""
|
||||||
|
@ -11,18 +11,18 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/containers.ex:105
|
#: lib/cannery/containers.ex:122
|
||||||
msgid "Container must be empty before deleting"
|
msgid "Container must be empty before deleting"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:55
|
#: lib/cannery_web/live/container_live/index.ex:71
|
||||||
#: lib/cannery_web/live/container_live/show.ex:74
|
#: lib/cannery_web/live/container_live/show.ex:73
|
||||||
msgid "Could not delete %{name}: %{error}"
|
msgid "Could not delete %{name}: %{error}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:43
|
#: lib/cannery_web/live/container_live/index.ex:59
|
||||||
msgid "Could not find that container"
|
msgid "Could not find that container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ msgid "Tag not found"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/add_tag_component.ex:35
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:30
|
||||||
msgid "Tag could not be added"
|
msgid "Tag could not be added"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -152,3 +152,8 @@ msgstr ""
|
|||||||
#: lib/cannery_web/controllers/user_auth.ex:161
|
#: lib/cannery_web/controllers/user_auth.ex:161
|
||||||
msgid "You must confirm your account and log in to access this page."
|
msgid "You must confirm your account and log in to access this page."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||||
|
msgid "Tag could not be removed"
|
||||||
|
msgstr ""
|
||||||
|
@ -38,8 +38,8 @@ msgid "%{name} enabled succesfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:48
|
#: lib/cannery_web/live/container_live/index.ex:64
|
||||||
#: lib/cannery_web/live/container_live/show.ex:64
|
#: lib/cannery_web/live/container_live/show.ex:63
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ msgstr ""
|
|||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:38
|
#: lib/cannery_web/live/container_live/index.html.heex:46
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
@ -175,22 +175,22 @@ msgid "Your account has been deleted"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:71
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:16
|
||||||
msgid "Are you sure you want to remove the %{tag_name} tag from %{container_name}?"
|
msgid "Are you sure you want to remove the %{tag_name} tag from %{container_name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/add_tag_component.ex:40
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:36
|
||||||
msgid "%{name} added successfully"
|
msgid "%{name} added successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.ex:40
|
#: lib/cannery_web/live/container_live/show.ex:39
|
||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/add_tag_component.html.heex:19
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:54
|
||||||
msgid "Adding..."
|
msgid "Adding..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -238,3 +238,8 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/invite_live/index.ex:123
|
#: lib/cannery_web/live/invite_live/index.ex:123
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||||
|
msgid "%{name} removed successfully"
|
||||||
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user