From cc31958bbea160ea00c70bcb9e7c7bc63c1a6839 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 7 Nov 2022 00:47:22 -0500 Subject: [PATCH] add used filtering to ammo index page --- CHANGELOG.md | 1 + lib/cannery_web/live/ammo_group_live/index.ex | 15 +++++++++--- .../live/ammo_group_live/index.html.heex | 8 +++++++ priv/gettext/actions.pot | 2 +- priv/gettext/de/LC_MESSAGES/actions.po | 2 +- priv/gettext/de/LC_MESSAGES/default.po | 23 ++++++++++--------- priv/gettext/de/LC_MESSAGES/prompts.po | 2 +- priv/gettext/default.pot | 23 ++++++++++--------- priv/gettext/en/LC_MESSAGES/actions.po | 2 +- priv/gettext/en/LC_MESSAGES/default.po | 23 ++++++++++--------- priv/gettext/en/LC_MESSAGES/prompts.po | 2 +- priv/gettext/es/LC_MESSAGES/actions.po | 2 +- priv/gettext/es/LC_MESSAGES/default.po | 23 ++++++++++--------- priv/gettext/es/LC_MESSAGES/prompts.po | 2 +- priv/gettext/fr/LC_MESSAGES/actions.po | 2 +- priv/gettext/fr/LC_MESSAGES/default.po | 23 ++++++++++--------- priv/gettext/fr/LC_MESSAGES/prompts.po | 2 +- priv/gettext/prompts.pot | 2 +- 18 files changed, 91 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81ac53df..8651bcd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # v0.5.5 - Update translations - Make ammo index page a bit more compact +- Make ammo index page filter used-up ammo - Make ammo catalog page include ammo count - Make ammo type show page a bit more compact - Make ammo type show page include container names for each ammo diff --git a/lib/cannery_web/live/ammo_group_live/index.ex b/lib/cannery_web/live/ammo_group_live/index.ex index 2f2a6354..3e3a3126 100644 --- a/lib/cannery_web/live/ammo_group_live/index.ex +++ b/lib/cannery_web/live/ammo_group_live/index.ex @@ -9,7 +9,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do @impl true def mount(_params, _session, socket) do - {:ok, socket |> display_ammo_groups()} + {:ok, socket |> assign(show_used: false) |> display_ammo_groups()} end @impl true @@ -72,8 +72,17 @@ defmodule CanneryWeb.AmmoGroupLive.Index do {:noreply, socket |> display_ammo_groups()} end - defp display_ammo_groups(%{assigns: %{current_user: current_user}} = socket) do - ammo_groups = Ammo.list_ammo_groups(current_user) |> Repo.preload([:ammo_type, :container]) + @impl true + def handle_event("toggle_show_used", _, %{assigns: %{show_used: show_used}} = socket) do + {:noreply, socket |> assign(:show_used, !show_used) |> display_ammo_groups()} + end + + defp display_ammo_groups( + %{assigns: %{current_user: current_user, show_used: show_used}} = socket + ) do + ammo_groups = + Ammo.list_ammo_groups(current_user, show_used) |> Repo.preload([:ammo_type, :container]) + ammo_types_count = Ammo.get_ammo_types_count!(current_user) containers_count = Containers.get_containers_count!(current_user) diff --git a/lib/cannery_web/live/ammo_group_live/index.html.heex b/lib/cannery_web/live/ammo_group_live/index.html.heex index 2f52da23..4d00d042 100644 --- a/lib/cannery_web/live/ammo_group_live/index.html.heex +++ b/lib/cannery_web/live/ammo_group_live/index.html.heex @@ -46,6 +46,14 @@ <% end %> <%= unless @ammo_groups |> Enum.empty?() do %> +
+ <.toggle_button action="toggle_show_used" value={@show_used}> + + <%= gettext("Show used") %> + + +
+ <.live_component module={CanneryWeb.Components.TableComponent} id="ammo_groups_index_table" diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot index 32d443ea..0fd04286 100644 --- a/priv/gettext/actions.pot +++ b/priv/gettext/actions.pot @@ -156,7 +156,7 @@ msgid "Why not get some ready to shoot?" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:151 +#: lib/cannery_web/live/ammo_group_live/index.ex:160 #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 #: lib/cannery_web/live/range_live/index.html.heex:36 msgid "Record shots" diff --git a/priv/gettext/de/LC_MESSAGES/actions.po b/priv/gettext/de/LC_MESSAGES/actions.po index 03ffa208..f7add7ff 100644 --- a/priv/gettext/de/LC_MESSAGES/actions.po +++ b/priv/gettext/de/LC_MESSAGES/actions.po @@ -169,7 +169,7 @@ msgid "Why not get some ready to shoot?" msgstr "Warum nicht einige für den Schießstand auswählen?" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:151 +#: lib/cannery_web/live/ammo_group_live/index.ex:160 #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 #: lib/cannery_web/live/range_live/index.html.heex:36 msgid "Record shots" diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index ed9724a1..7b97cf98 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -54,7 +54,7 @@ msgstr "Munition" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 -#: lib/cannery_web/live/ammo_group_live/index.ex:81 +#: lib/cannery_web/live/ammo_group_live/index.ex:90 msgid "Ammo type" msgstr "Munitionsarten" @@ -119,7 +119,7 @@ msgstr "Gehäusematerial" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:67 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 -#: lib/cannery_web/live/ammo_group_live/index.ex:86 +#: lib/cannery_web/live/ammo_group_live/index.ex:95 msgid "Container" msgstr "Behälter" @@ -139,7 +139,7 @@ msgstr "Korrosiv" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 -#: lib/cannery_web/live/ammo_group_live/index.ex:82 +#: lib/cannery_web/live/ammo_group_live/index.ex:91 msgid "Count" msgstr "Anzahl" @@ -371,7 +371,7 @@ msgstr "Druck" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 -#: lib/cannery_web/live/ammo_group_live/index.ex:83 +#: lib/cannery_web/live/ammo_group_live/index.ex:92 msgid "Price paid" msgstr "Kaufpreis" @@ -508,7 +508,7 @@ msgstr "Keine Tags für diesen Behälter" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:68 -#: lib/cannery_web/live/ammo_group_live/index.ex:85 +#: lib/cannery_web/live/ammo_group_live/index.ex:94 msgid "Range" msgstr "Schießplatz" @@ -601,7 +601,7 @@ msgstr "Munitionsgruppe verschieben" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:80 -#: lib/cannery_web/live/ammo_group_live/index.ex:208 +#: lib/cannery_web/live/ammo_group_live/index.ex:217 msgid "Move ammo" msgstr "Munition verschieben" @@ -617,7 +617,7 @@ msgstr "Schießkladde" #, elixir-autogen, elixir-format #: lib/cannery_web/components/ammo_group_card.ex:53 -#: lib/cannery_web/live/ammo_group_live/index.ex:125 +#: lib/cannery_web/live/ammo_group_live/index.ex:134 #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 #: lib/cannery_web/live/ammo_type_live/index.ex:118 @@ -682,12 +682,12 @@ msgid "New password" msgstr "Neues Passwort" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Stage" msgstr "Markiert" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Unstage" msgstr "Demarkiert" @@ -738,7 +738,7 @@ msgid "No cost information" msgstr "Keine Preisinformationen" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:84 +#: lib/cannery_web/live/ammo_group_live/index.ex:93 msgid "% left" msgstr "% verbleibend" @@ -824,7 +824,7 @@ msgid "Ammo types" msgstr "Munitionsart" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:87 +#: lib/cannery_web/live/ammo_group_live/index.ex:96 msgid "Added on" msgstr "Hinzugefügt am" @@ -947,6 +947,7 @@ msgid "Container:" msgstr "Behälter" #, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/index.html.heex:52 #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 #: lib/cannery_web/live/container_live/show.html.heex:90 msgid "Show used" diff --git a/priv/gettext/de/LC_MESSAGES/prompts.po b/priv/gettext/de/LC_MESSAGES/prompts.po index bba435d9..4a27b943 100644 --- a/priv/gettext/de/LC_MESSAGES/prompts.po +++ b/priv/gettext/de/LC_MESSAGES/prompts.po @@ -100,7 +100,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" msgstr "Sind Sie sicher, dass sie die Einladung für %{name} löschen möchten?" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:184 +#: lib/cannery_web/live/ammo_group_live/index.ex:193 #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 msgid "Are you sure you want to delete this ammo?" msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 6123790a..03192a53 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -39,7 +39,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 -#: lib/cannery_web/live/ammo_group_live/index.ex:81 +#: lib/cannery_web/live/ammo_group_live/index.ex:90 msgid "Ammo type" msgstr "" @@ -104,7 +104,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:67 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 -#: lib/cannery_web/live/ammo_group_live/index.ex:86 +#: lib/cannery_web/live/ammo_group_live/index.ex:95 msgid "Container" msgstr "" @@ -124,7 +124,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 -#: lib/cannery_web/live/ammo_group_live/index.ex:82 +#: lib/cannery_web/live/ammo_group_live/index.ex:91 msgid "Count" msgstr "" @@ -356,7 +356,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 -#: lib/cannery_web/live/ammo_group_live/index.ex:83 +#: lib/cannery_web/live/ammo_group_live/index.ex:92 msgid "Price paid" msgstr "" @@ -491,7 +491,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:68 -#: lib/cannery_web/live/ammo_group_live/index.ex:85 +#: lib/cannery_web/live/ammo_group_live/index.ex:94 msgid "Range" msgstr "" @@ -584,7 +584,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:80 -#: lib/cannery_web/live/ammo_group_live/index.ex:208 +#: lib/cannery_web/live/ammo_group_live/index.ex:217 msgid "Move ammo" msgstr "" @@ -600,7 +600,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/ammo_group_card.ex:53 -#: lib/cannery_web/live/ammo_group_live/index.ex:125 +#: lib/cannery_web/live/ammo_group_live/index.ex:134 #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 #: lib/cannery_web/live/ammo_type_live/index.ex:118 @@ -665,12 +665,12 @@ msgid "New password" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Stage" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Unstage" msgstr "" @@ -721,7 +721,7 @@ msgid "No cost information" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:84 +#: lib/cannery_web/live/ammo_group_live/index.ex:93 msgid "% left" msgstr "" @@ -807,7 +807,7 @@ msgid "Ammo types" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:87 +#: lib/cannery_web/live/ammo_group_live/index.ex:96 msgid "Added on" msgstr "" @@ -930,6 +930,7 @@ msgid "Container:" msgstr "" #, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/index.html.heex:52 #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 #: lib/cannery_web/live/container_live/show.html.heex:90 msgid "Show used" diff --git a/priv/gettext/en/LC_MESSAGES/actions.po b/priv/gettext/en/LC_MESSAGES/actions.po index fbe8a46c..182ca5dc 100644 --- a/priv/gettext/en/LC_MESSAGES/actions.po +++ b/priv/gettext/en/LC_MESSAGES/actions.po @@ -157,7 +157,7 @@ msgid "Why not get some ready to shoot?" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:151 +#: lib/cannery_web/live/ammo_group_live/index.ex:160 #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 #: lib/cannery_web/live/range_live/index.html.heex:36 msgid "Record shots" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 07834034..d201414b 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -40,7 +40,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 -#: lib/cannery_web/live/ammo_group_live/index.ex:81 +#: lib/cannery_web/live/ammo_group_live/index.ex:90 msgid "Ammo type" msgstr "" @@ -105,7 +105,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:67 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 -#: lib/cannery_web/live/ammo_group_live/index.ex:86 +#: lib/cannery_web/live/ammo_group_live/index.ex:95 msgid "Container" msgstr "" @@ -125,7 +125,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 -#: lib/cannery_web/live/ammo_group_live/index.ex:82 +#: lib/cannery_web/live/ammo_group_live/index.ex:91 msgid "Count" msgstr "" @@ -357,7 +357,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 -#: lib/cannery_web/live/ammo_group_live/index.ex:83 +#: lib/cannery_web/live/ammo_group_live/index.ex:92 msgid "Price paid" msgstr "" @@ -492,7 +492,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:68 -#: lib/cannery_web/live/ammo_group_live/index.ex:85 +#: lib/cannery_web/live/ammo_group_live/index.ex:94 msgid "Range" msgstr "" @@ -585,7 +585,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:80 -#: lib/cannery_web/live/ammo_group_live/index.ex:208 +#: lib/cannery_web/live/ammo_group_live/index.ex:217 msgid "Move ammo" msgstr "" @@ -601,7 +601,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/ammo_group_card.ex:53 -#: lib/cannery_web/live/ammo_group_live/index.ex:125 +#: lib/cannery_web/live/ammo_group_live/index.ex:134 #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 #: lib/cannery_web/live/ammo_type_live/index.ex:118 @@ -666,12 +666,12 @@ msgid "New password" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Stage" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Unstage" msgstr "" @@ -722,7 +722,7 @@ msgid "No cost information" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:84 +#: lib/cannery_web/live/ammo_group_live/index.ex:93 msgid "% left" msgstr "" @@ -808,7 +808,7 @@ msgid "Ammo types" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:87 +#: lib/cannery_web/live/ammo_group_live/index.ex:96 msgid "Added on" msgstr "" @@ -931,6 +931,7 @@ msgid "Container:" msgstr "" #, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/index.html.heex:52 #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 #: lib/cannery_web/live/container_live/show.html.heex:90 msgid "Show used" diff --git a/priv/gettext/en/LC_MESSAGES/prompts.po b/priv/gettext/en/LC_MESSAGES/prompts.po index 49c48add..349a00dd 100644 --- a/priv/gettext/en/LC_MESSAGES/prompts.po +++ b/priv/gettext/en/LC_MESSAGES/prompts.po @@ -86,7 +86,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:184 +#: lib/cannery_web/live/ammo_group_live/index.ex:193 #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 msgid "Are you sure you want to delete this ammo?" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/actions.po b/priv/gettext/es/LC_MESSAGES/actions.po index 37e7f6dc..1479e290 100644 --- a/priv/gettext/es/LC_MESSAGES/actions.po +++ b/priv/gettext/es/LC_MESSAGES/actions.po @@ -169,7 +169,7 @@ msgid "Why not get some ready to shoot?" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:151 +#: lib/cannery_web/live/ammo_group_live/index.ex:160 #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 #: lib/cannery_web/live/range_live/index.html.heex:36 msgid "Record shots" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index dc257d5a..b8926c0f 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -54,7 +54,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 -#: lib/cannery_web/live/ammo_group_live/index.ex:81 +#: lib/cannery_web/live/ammo_group_live/index.ex:90 msgid "Ammo type" msgstr "" @@ -119,7 +119,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:67 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 -#: lib/cannery_web/live/ammo_group_live/index.ex:86 +#: lib/cannery_web/live/ammo_group_live/index.ex:95 msgid "Container" msgstr "" @@ -139,7 +139,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 -#: lib/cannery_web/live/ammo_group_live/index.ex:82 +#: lib/cannery_web/live/ammo_group_live/index.ex:91 msgid "Count" msgstr "" @@ -371,7 +371,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 -#: lib/cannery_web/live/ammo_group_live/index.ex:83 +#: lib/cannery_web/live/ammo_group_live/index.ex:92 msgid "Price paid" msgstr "" @@ -506,7 +506,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:68 -#: lib/cannery_web/live/ammo_group_live/index.ex:85 +#: lib/cannery_web/live/ammo_group_live/index.ex:94 msgid "Range" msgstr "" @@ -599,7 +599,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:80 -#: lib/cannery_web/live/ammo_group_live/index.ex:208 +#: lib/cannery_web/live/ammo_group_live/index.ex:217 msgid "Move ammo" msgstr "" @@ -615,7 +615,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/ammo_group_card.ex:53 -#: lib/cannery_web/live/ammo_group_live/index.ex:125 +#: lib/cannery_web/live/ammo_group_live/index.ex:134 #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 #: lib/cannery_web/live/ammo_type_live/index.ex:118 @@ -680,12 +680,12 @@ msgid "New password" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Stage" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Unstage" msgstr "" @@ -736,7 +736,7 @@ msgid "No cost information" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:84 +#: lib/cannery_web/live/ammo_group_live/index.ex:93 msgid "% left" msgstr "" @@ -822,7 +822,7 @@ msgid "Ammo types" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:87 +#: lib/cannery_web/live/ammo_group_live/index.ex:96 msgid "Added on" msgstr "" @@ -945,6 +945,7 @@ msgid "Container:" msgstr "" #, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/index.html.heex:52 #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 #: lib/cannery_web/live/container_live/show.html.heex:90 msgid "Show used" diff --git a/priv/gettext/es/LC_MESSAGES/prompts.po b/priv/gettext/es/LC_MESSAGES/prompts.po index 79efd175..af0dd4ad 100644 --- a/priv/gettext/es/LC_MESSAGES/prompts.po +++ b/priv/gettext/es/LC_MESSAGES/prompts.po @@ -100,7 +100,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" msgstr "Está seguro que quiere eliminar la invitación para %{name}?" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:184 +#: lib/cannery_web/live/ammo_group_live/index.ex:193 #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 msgid "Are you sure you want to delete this ammo?" msgstr "Está seguro que desea eliminar esta munición?" diff --git a/priv/gettext/fr/LC_MESSAGES/actions.po b/priv/gettext/fr/LC_MESSAGES/actions.po index 2cee0d91..14a77a09 100644 --- a/priv/gettext/fr/LC_MESSAGES/actions.po +++ b/priv/gettext/fr/LC_MESSAGES/actions.po @@ -169,7 +169,7 @@ msgid "Why not get some ready to shoot?" msgstr "Pourquoi pas en préparer pour tirer ?" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:151 +#: lib/cannery_web/live/ammo_group_live/index.ex:160 #: lib/cannery_web/live/ammo_group_live/show.html.heex:91 #: lib/cannery_web/live/range_live/index.html.heex:36 msgid "Record shots" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 2e6812c4..e9c27139 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -54,7 +54,7 @@ msgstr "Munition" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21 -#: lib/cannery_web/live/ammo_group_live/index.ex:81 +#: lib/cannery_web/live/ammo_group_live/index.ex:90 msgid "Ammo type" msgstr "Type de munition" @@ -119,7 +119,7 @@ msgstr "Matériau de la caisse" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:67 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48 -#: lib/cannery_web/live/ammo_group_live/index.ex:86 +#: lib/cannery_web/live/ammo_group_live/index.ex:95 msgid "Container" msgstr "Conteneur" @@ -139,7 +139,7 @@ msgstr "Corrosive" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27 -#: lib/cannery_web/live/ammo_group_live/index.ex:82 +#: lib/cannery_web/live/ammo_group_live/index.ex:91 msgid "Count" msgstr "Quantité" @@ -371,7 +371,7 @@ msgstr "Pression" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34 -#: lib/cannery_web/live/ammo_group_live/index.ex:83 +#: lib/cannery_web/live/ammo_group_live/index.ex:92 msgid "Price paid" msgstr "Prix payé" @@ -510,7 +510,7 @@ msgstr "Aucun tag pour ce conteneur" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:68 -#: lib/cannery_web/live/ammo_group_live/index.ex:85 +#: lib/cannery_web/live/ammo_group_live/index.ex:94 msgid "Range" msgstr "Portée" @@ -603,7 +603,7 @@ msgstr "Déplacer le groupe de munition" #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.ex:80 -#: lib/cannery_web/live/ammo_group_live/index.ex:208 +#: lib/cannery_web/live/ammo_group_live/index.ex:217 msgid "Move ammo" msgstr "Déplacer munition" @@ -619,7 +619,7 @@ msgstr "Évènements de tir" #, elixir-autogen, elixir-format #: lib/cannery_web/components/ammo_group_card.ex:53 -#: lib/cannery_web/live/ammo_group_live/index.ex:125 +#: lib/cannery_web/live/ammo_group_live/index.ex:134 #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 #: lib/cannery_web/live/ammo_group_live/show.html.heex:44 #: lib/cannery_web/live/ammo_type_live/index.ex:118 @@ -684,12 +684,12 @@ msgid "New password" msgstr "Nouveau mot de passe" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Stage" msgstr "Sélectionné" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:148 +#: lib/cannery_web/live/ammo_group_live/index.ex:157 msgid "Unstage" msgstr "Désélectionner" @@ -740,7 +740,7 @@ msgid "No cost information" msgstr "Aucune information de prix" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:84 +#: lib/cannery_web/live/ammo_group_live/index.ex:93 msgid "% left" msgstr "% restante" @@ -826,7 +826,7 @@ msgid "Ammo types" msgstr "Types de munition" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:87 +#: lib/cannery_web/live/ammo_group_live/index.ex:96 msgid "Added on" msgstr "Ajouté le" @@ -949,6 +949,7 @@ msgid "Container:" msgstr "Conteneur" #, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/index.html.heex:52 #: lib/cannery_web/live/ammo_type_live/show.html.heex:119 #: lib/cannery_web/live/container_live/show.html.heex:90 msgid "Show used" diff --git a/priv/gettext/fr/LC_MESSAGES/prompts.po b/priv/gettext/fr/LC_MESSAGES/prompts.po index ee461b70..c40a5cbe 100644 --- a/priv/gettext/fr/LC_MESSAGES/prompts.po +++ b/priv/gettext/fr/LC_MESSAGES/prompts.po @@ -101,7 +101,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:184 +#: lib/cannery_web/live/ammo_group_live/index.ex:193 #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 msgid "Are you sure you want to delete this ammo?" msgstr "Êtes-vous certain·e de supprimer cette munition ?" diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot index 0dffeec1..e2e9c64e 100644 --- a/priv/gettext/prompts.pot +++ b/priv/gettext/prompts.pot @@ -85,7 +85,7 @@ msgid "Are you sure you want to delete the invite for %{name}?" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.ex:184 +#: lib/cannery_web/live/ammo_group_live/index.ex:193 #: lib/cannery_web/live/ammo_group_live/show.html.heex:71 msgid "Are you sure you want to delete this ammo?" msgstr ""