diff --git a/lib/cannery_web/live/home_live.ex b/lib/cannery_web/live/home_live.ex
index 4fdc9ad..45c0203 100644
--- a/lib/cannery_web/live/home_live.ex
+++ b/lib/cannery_web/live/home_live.ex
@@ -5,6 +5,7 @@ defmodule CanneryWeb.HomeLive do
use CanneryWeb, :live_view
alias Cannery.Accounts
+ alias CanneryWeb.Endpoint
@impl true
def mount(_params, _session, socket) do
@@ -36,6 +37,13 @@ defmodule CanneryWeb.HomeLive do
def render(assigns) do
~H"""
+
:3")}
+ />
+
<%= gettext("Welcome to %{name}", name: "Cannery") %>
@@ -126,7 +134,7 @@ defmodule CanneryWeb.HomeLive do
to: "https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md",
target: "_blank",
rel: "noopener noreferrer" do %>
-
0.5.3
+
0.5.5
<% end %>
diff --git a/lib/cannery_web/live/invite_live/form_component.ex b/lib/cannery_web/live/invite_live/form_component.ex
index 1cdf202..5961949 100644
--- a/lib/cannery_web/live/invite_live/form_component.ex
+++ b/lib/cannery_web/live/invite_live/form_component.ex
@@ -13,23 +13,44 @@ defmodule CanneryWeb.InviteLive.FormComponent do
%{:invite => Invite.t(), :current_user => User.t(), optional(any) => any},
Socket.t()
) :: {:ok, Socket.t()}
- def update(%{invite: invite} = assigns, socket) do
- {:ok, socket |> assign(assigns) |> assign(:changeset, Invites.change_invite(invite))}
+ def update(%{invite: _invite} = assigns, socket) do
+ {:ok, socket |> assign(assigns) |> assign_changeset(%{})}
end
@impl true
- def handle_event(
- "validate",
- %{"invite" => invite_params},
- %{assigns: %{invite: invite}} = socket
- ) do
- {:noreply, socket |> assign(:changeset, invite |> Invites.change_invite(invite_params))}
+ def handle_event("validate", %{"invite" => invite_params}, socket) do
+ {:noreply, socket |> assign_changeset(invite_params)}
end
def handle_event("save", %{"invite" => invite_params}, %{assigns: %{action: action}} = socket) do
save_invite(socket, action, invite_params)
end
+ defp assign_changeset(
+ %{assigns: %{action: action, current_user: user, invite: invite}} = socket,
+ invite_params
+ ) do
+ changeset_action =
+ case action do
+ :new -> :insert
+ :edit -> :update
+ end
+
+ changeset =
+ case action do
+ :new -> invite |> Invite.create_changeset(user, "example_token", invite_params)
+ :edit -> invite |> Invite.update_changeset(invite_params)
+ end
+
+ changeset =
+ case changeset |> Changeset.apply_action(changeset_action) do
+ {:ok, _data} -> changeset
+ {:error, changeset} -> changeset
+ end
+
+ socket |> assign(:changeset, changeset)
+ end
+
defp save_invite(
%{assigns: %{current_user: current_user, invite: invite, return_to: return_to}} = socket,
:edit,
diff --git a/lib/cannery_web/live/invite_live/form_component.html.heex b/lib/cannery_web/live/invite_live/form_component.html.heex
index 27c2fa2..9c6545a 100644
--- a/lib/cannery_web/live/invite_live/form_component.html.heex
+++ b/lib/cannery_web/live/invite_live/form_component.html.heex
@@ -24,6 +24,9 @@
<%= label(f, :uses_left, gettext("Uses left"), class: "title text-lg text-primary-600") %>
<%= number_input(f, :uses_left, min: 0, class: "input input-primary col-span-2") %>
<%= error_tag(f, :uses_left, "col-span-3") %>
+
+ <%= gettext("Leave \"Uses left\" blank to make invite unlimited") %>
+
<%= submit(dgettext("actions", "Save"),
class: "mx-auto btn btn-primary col-span-3",
diff --git a/lib/cannery_web/live/range_live/form_component.ex b/lib/cannery_web/live/range_live/form_component.ex
index 770fe85..8eb8711 100644
--- a/lib/cannery_web/live/range_live/form_component.ex
+++ b/lib/cannery_web/live/range_live/form_component.ex
@@ -1,6 +1,6 @@
defmodule CanneryWeb.RangeLive.FormComponent do
@moduledoc """
- Livecomponent that can update or create a ShotGroup
+ Livecomponent that can update a ShotGroup
"""
use CanneryWeb, :live_component
@@ -24,7 +24,7 @@ defmodule CanneryWeb.RangeLive.FormComponent do
} = assigns,
socket
) do
- changeset = shot_group |> ActivityLog.change_shot_group()
+ changeset = shot_group |> ShotGroup.update_changeset(current_user, %{})
ammo_group = Ammo.get_ammo_group!(ammo_group_id, current_user)
{:ok, socket |> assign(assigns) |> assign(ammo_group: ammo_group, changeset: changeset)}
end
@@ -33,11 +33,11 @@ defmodule CanneryWeb.RangeLive.FormComponent do
def handle_event(
"validate",
%{"shot_group" => shot_group_params},
- %{assigns: %{shot_group: shot_group}} = socket
+ %{assigns: %{current_user: current_user, shot_group: shot_group}} = socket
) do
changeset =
shot_group
- |> ActivityLog.change_shot_group(shot_group_params)
+ |> ShotGroup.update_changeset(current_user, shot_group_params)
|> Map.put(:action, :validate)
{:noreply, assign(socket, :changeset, changeset)}
diff --git a/lib/cannery_web/live/range_live/index.ex b/lib/cannery_web/live/range_live/index.ex
index ff711b7..f9cda6f 100644
--- a/lib/cannery_web/live/range_live/index.ex
+++ b/lib/cannery_web/live/range_live/index.ex
@@ -65,7 +65,7 @@ defmodule CanneryWeb.RangeLive.Index do
{:ok, _ammo_group} =
ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user)
- prompt = dgettext("prompts", "Ammo group unstaged succesfully")
+ prompt = dgettext("prompts", "Ammo unstaged succesfully")
{:noreply, socket |> put_flash(:info, prompt) |> display_shot_groups()}
end
diff --git a/lib/cannery_web/live/tag_live/form_component.ex b/lib/cannery_web/live/tag_live/form_component.ex
index 6f51cea..6d1b8b8 100644
--- a/lib/cannery_web/live/tag_live/form_component.ex
+++ b/lib/cannery_web/live/tag_live/form_component.ex
@@ -12,19 +12,44 @@ defmodule CanneryWeb.TagLive.FormComponent do
@impl true
@spec update(%{:tag => Tag.t(), :current_user => User.t(), optional(any) => any}, Socket.t()) ::
{:ok, Socket.t()}
- def update(%{tag: tag} = assigns, socket) do
- {:ok, socket |> assign(assigns) |> assign(:changeset, Tags.change_tag(tag))}
+ def update(%{tag: _tag} = assigns, socket) do
+ {:ok, socket |> assign(assigns) |> assign_changeset(%{})}
end
@impl true
- def handle_event("validate", %{"tag" => tag_params}, %{assigns: %{tag: tag}} = socket) do
- {:noreply, socket |> assign(:changeset, tag |> Tags.change_tag(tag_params))}
+ def handle_event("validate", %{"tag" => tag_params}, socket) do
+ {:noreply, socket |> assign_changeset(tag_params)}
end
def handle_event("save", %{"tag" => tag_params}, %{assigns: %{action: action}} = socket) do
save_tag(socket, action, tag_params)
end
+ defp assign_changeset(
+ %{assigns: %{action: action, current_user: user, tag: tag}} = socket,
+ tag_params
+ ) do
+ changeset_action =
+ case action do
+ :new -> :insert
+ :edit -> :update
+ end
+
+ changeset =
+ case action do
+ :new -> tag |> Tag.create_changeset(user, tag_params)
+ :edit -> tag |> Tag.update_changeset(tag_params)
+ end
+
+ changeset =
+ case changeset |> Changeset.apply_action(changeset_action) do
+ {:ok, _data} -> changeset
+ {:error, changeset} -> changeset
+ end
+
+ socket |> assign(:changeset, changeset)
+ end
+
@impl true
def render(assigns) do
~H"""
diff --git a/lib/cannery_web/router.ex b/lib/cannery_web/router.ex
index f7f77c7..e38b297 100644
--- a/lib/cannery_web/router.ex
+++ b/lib/cannery_web/router.ex
@@ -65,12 +65,12 @@ defmodule CanneryWeb.Router do
live "/tags/new", TagLive.Index, :new
live "/tags/:id/edit", TagLive.Index, :edit
- live "/ammo_types", AmmoTypeLive.Index, :index
- live "/ammo_types/new", AmmoTypeLive.Index, :new
- live "/ammo_types/:id/edit", AmmoTypeLive.Index, :edit
+ live "/catalog", AmmoTypeLive.Index, :index
+ live "/catalog/new", AmmoTypeLive.Index, :new
+ live "/catalog/:id/edit", AmmoTypeLive.Index, :edit
- live "/ammo_types/:id", AmmoTypeLive.Show, :show
- live "/ammo_types/:id/show/edit", AmmoTypeLive.Show, :edit
+ live "/catalog/:id", AmmoTypeLive.Show, :show
+ live "/catalog/:id/show/edit", AmmoTypeLive.Show, :edit
live "/containers", ContainerLive.Index, :index
live "/containers/new", ContainerLive.Index, :new
@@ -81,17 +81,17 @@ defmodule CanneryWeb.Router do
live "/containers/:id/show/edit", ContainerLive.Show, :edit
live "/containers/:id/show/edit_tags", ContainerLive.Show, :edit_tags
- live "/ammo_groups", AmmoGroupLive.Index, :index
- live "/ammo_groups/new", AmmoGroupLive.Index, :new
- live "/ammo_groups/:id/edit", AmmoGroupLive.Index, :edit
- live "/ammo_groups/:id/add_shot_group", AmmoGroupLive.Index, :add_shot_group
- live "/ammo_groups/:id/move", AmmoGroupLive.Index, :move
+ live "/ammo", AmmoGroupLive.Index, :index
+ live "/ammo/new", AmmoGroupLive.Index, :new
+ live "/ammo/:id/edit", AmmoGroupLive.Index, :edit
+ live "/ammo/:id/add_shot_group", AmmoGroupLive.Index, :add_shot_group
+ live "/ammo/:id/move", AmmoGroupLive.Index, :move
- live "/ammo_groups/:id", AmmoGroupLive.Show, :show
- live "/ammo_groups/:id/show/edit", AmmoGroupLive.Show, :edit
- live "/ammo_groups/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group
- live "/ammo_groups/:id/show/move", AmmoGroupLive.Show, :move
- live "/ammo_groups/:id/show/:shot_group_id/edit", AmmoGroupLive.Show, :edit_shot_group
+ live "/ammo/:id", AmmoGroupLive.Show, :show
+ live "/ammo/:id/show/edit", AmmoGroupLive.Show, :edit
+ live "/ammo/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group
+ live "/ammo/:id/show/move", AmmoGroupLive.Show, :move
+ live "/ammo/:id/show/:shot_group_id/edit", AmmoGroupLive.Show, :edit_shot_group
live "/range", RangeLive.Index, :index
live "/range/:id/edit", RangeLive.Index, :edit
diff --git a/lib/cannery_web/templates/layout/root.html.heex b/lib/cannery_web/templates/layout/root.html.heex
index 385aae0..bc0f712 100644
--- a/lib/cannery_web/templates/layout/root.html.heex
+++ b/lib/cannery_web/templates/layout/root.html.heex
@@ -5,6 +5,11 @@
<%= csrf_meta_tag() %>
+
<%= if(assigns |> Map.has_key?(:page_title), do: @page_title, else: "Cannery")
|> live_title_tag(suffix: " | Cannery") %>
diff --git a/mix.exs b/mix.exs
index b0aae78..a5f2f38 100644
--- a/mix.exs
+++ b/mix.exs
@@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
def project do
[
app: :cannery,
- version: "0.5.3",
+ version: "0.5.5",
elixir: "1.13.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot
index 106e277..32d443e 100644
--- a/priv/gettext/actions.pot
+++ b/priv/gettext/actions.pot
@@ -12,11 +12,12 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:44
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
msgid "Add Ammo"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
msgid "Add your first box!"
msgstr ""
@@ -65,7 +66,7 @@ msgid "Invite someone new!"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:106
+#: lib/cannery_web/components/topbar.ex:112
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
#: lib/cannery_web/templates/user_registration/new.html.heex:48
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
@@ -80,11 +81,6 @@ msgstr ""
msgid "Make your first tag!"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
-msgid "New Ammo group"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
msgid "New Ammo type"
@@ -101,7 +97,7 @@ msgid "New Tag"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:99
+#: lib/cannery_web/components/topbar.ex:105
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
#: lib/cannery_web/templates/user_registration/new.html.heex:3
#: lib/cannery_web/templates/user_registration/new.html.heex:42
@@ -128,9 +124,9 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
#: lib/cannery_web/live/container_live/form_component.html.heex:50
-#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+#: lib/cannery_web/live/invite_live/form_component.html.heex:31
#: lib/cannery_web/live/range_live/form_component.html.heex:40
-#: lib/cannery_web/live/tag_live/form_component.ex:66
+#: lib/cannery_web/live/tag_live/form_component.ex:91
msgid "Save"
msgstr ""
@@ -140,7 +136,7 @@ msgid "Send instructions to reset password"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:53
+#: lib/cannery_web/live/container_live/show.html.heex:65
msgid "Why not add one?"
msgstr ""
@@ -160,17 +156,12 @@ msgid "Why not get some ready to shoot?"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:144
+#: lib/cannery_web/live/ammo_group_live/index.ex:151
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
#: lib/cannery_web/live/range_live/index.html.heex:36
msgid "Record shots"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
-msgid "Ammo Details"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/move_ammo_group_component.ex:89
msgid "Add another container!"
@@ -192,8 +183,7 @@ msgid "Copy to clipboard"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:20
msgid "add a container first"
msgstr ""
@@ -211,3 +201,13 @@ msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
msgid "Change language"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
+msgid "View in Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
+msgid "add an ammo type first"
+msgstr ""
diff --git a/priv/gettext/de/LC_MESSAGES/actions.po b/priv/gettext/de/LC_MESSAGES/actions.po
index b3a5e01..03ffa20 100644
--- a/priv/gettext/de/LC_MESSAGES/actions.po
+++ b/priv/gettext/de/LC_MESSAGES/actions.po
@@ -25,11 +25,12 @@ msgstr ""
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:44
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
msgid "Add Ammo"
msgstr "Munition hinzufügen"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
msgid "Add your first box!"
msgstr "Fügen Sie ihre erste Box hinzu!"
@@ -78,7 +79,7 @@ msgid "Invite someone new!"
msgstr "Laden Sie jemanden ein!"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:106
+#: lib/cannery_web/components/topbar.ex:112
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
#: lib/cannery_web/templates/user_registration/new.html.heex:48
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
@@ -93,11 +94,6 @@ msgstr "Einloggen"
msgid "Make your first tag!"
msgstr "Erstellen Sie ihren ersten Tag!"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
-msgid "New Ammo group"
-msgstr "Neue Munitionsgruppe"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
msgid "New Ammo type"
@@ -114,7 +110,7 @@ msgid "New Tag"
msgstr "Neuer Tag"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:99
+#: lib/cannery_web/components/topbar.ex:105
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
#: lib/cannery_web/templates/user_registration/new.html.heex:3
#: lib/cannery_web/templates/user_registration/new.html.heex:42
@@ -141,9 +137,9 @@ msgstr "Passwort zurücksetzen"
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
#: lib/cannery_web/live/container_live/form_component.html.heex:50
-#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+#: lib/cannery_web/live/invite_live/form_component.html.heex:31
#: lib/cannery_web/live/range_live/form_component.html.heex:40
-#: lib/cannery_web/live/tag_live/form_component.ex:66
+#: lib/cannery_web/live/tag_live/form_component.ex:91
msgid "Save"
msgstr "Speichern"
@@ -153,7 +149,7 @@ msgid "Send instructions to reset password"
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:53
+#: lib/cannery_web/live/container_live/show.html.heex:65
msgid "Why not add one?"
msgstr "Warum fügen Sie keine hinzu?"
@@ -173,17 +169,12 @@ 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:144
+#: lib/cannery_web/live/ammo_group_live/index.ex:151
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
#: lib/cannery_web/live/range_live/index.html.heex:36
msgid "Record shots"
msgstr "Schüsse dokumentieren"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
-msgid "Ammo Details"
-msgstr "Munitionsdetails"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/move_ammo_group_component.ex:89
msgid "Add another container!"
@@ -205,8 +196,7 @@ msgid "Copy to clipboard"
msgstr "In die Zwischenablage kopieren"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:20
msgid "add a container first"
msgstr "Zuerst einen Behälter hinzufügen"
@@ -224,3 +214,13 @@ msgstr "Sprache wechseln"
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
msgid "Change language"
msgstr "Sprache wechseln"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
+msgid "View in Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
+msgid "add an ammo type first"
+msgstr ""
diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po
index 4007771..71b9738 100644
--- a/priv/gettext/de/LC_MESSAGES/default.po
+++ b/priv/gettext/de/LC_MESSAGES/default.po
@@ -24,14 +24,14 @@ msgstr ""
## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:56
+#: lib/cannery_web/live/home_live.ex:64
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
msgstr ""
"Mit %{name} können Sie ihren Munitionsbestand vor und nach dem Schießen "
"leicht im Auge behalten"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:78
+#: lib/cannery_web/live/home_live.ex:86
msgid "Access from any internet-capable device"
msgstr "Zugriff von jedem Internet-fähigen Gerät"
@@ -41,12 +41,12 @@ msgid "Admins"
msgstr "Admins"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:92
+#: lib/cannery_web/live/home_live.ex:100
msgid "Admins:"
msgstr "Admins:"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:50
+#: lib/cannery_web/components/topbar.ex:62
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
#: lib/cannery_web/live/range_live/index.ex:80
msgid "Ammo"
@@ -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:80
+#: lib/cannery_web/live/ammo_group_live/index.ex:81
msgid "Ammo type"
msgstr "Munitionsarten"
@@ -65,7 +65,7 @@ msgid "Average Price paid"
msgstr "Durchschnittlicher Kaufpreis"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:54
+#: lib/cannery_web/live/tag_live/form_component.ex:79
msgid "Background color"
msgstr "Hintergrundfarbe"
@@ -119,12 +119,12 @@ 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:85
+#: lib/cannery_web/live/ammo_group_live/index.ex:86
msgid "Container"
msgstr "Behälter"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:44
+#: lib/cannery_web/components/topbar.ex:50
#: lib/cannery_web/live/container_live/index.ex:36
#: lib/cannery_web/live/container_live/index.html.heex:3
msgid "Containers"
@@ -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:81
+#: lib/cannery_web/live/ammo_group_live/index.ex:82
msgid "Count"
msgstr "Anzahl"
@@ -167,13 +167,12 @@ msgid "Disable"
msgstr "Deaktivieren"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:53
+#: lib/cannery_web/live/home_live.ex:61
msgid "Easy to Use:"
msgstr "Einfache Anwendung:"
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:38
-#: lib/cannery_web/live/ammo_group_live/show.ex:40
msgid "Edit Ammo group"
msgstr "Munitionsgruppe bearbeiten"
@@ -223,7 +222,7 @@ msgid "Incendiary"
msgstr "Brandmunition"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:87
+#: lib/cannery_web/live/home_live.ex:95
msgid "Instance Information"
msgstr "Instanzinformationen"
@@ -233,12 +232,12 @@ msgid "Invite Disabled"
msgstr "Einladung deaktiviert"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:118
+#: lib/cannery_web/live/home_live.ex:126
msgid "Invite Only"
msgstr "Nur mit Einladung"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:69
+#: lib/cannery_web/components/topbar.ex:75
#: lib/cannery_web/live/invite_live/index.ex:41
#: lib/cannery_web/live/invite_live/index.html.heex:3
msgid "Invites"
@@ -266,11 +265,6 @@ msgstr "Standort:"
msgid "Magazine, Clip, Ammo Box, etc"
msgstr "Magazin, Ladestreifen, Munitionskiste usw."
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:56
-msgid "Manage"
-msgstr "Verwalten"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
#: lib/cannery_web/live/ammo_type_live/index.ex:73
@@ -293,7 +287,7 @@ msgstr "Meine coole Munitionskiste"
#: lib/cannery_web/live/ammo_type_live/index.ex:51
#: lib/cannery_web/live/container_live/form_component.html.heex:20
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
-#: lib/cannery_web/live/tag_live/form_component.ex:50
+#: lib/cannery_web/live/tag_live/form_component.ex:75
msgid "Name"
msgstr "Name"
@@ -332,11 +326,6 @@ msgstr "Keine Munitionsarten"
msgid "No ammo for this type"
msgstr "Keine Munition dieser Art"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:78
-msgid "No ammo groups in this container"
-msgstr "Keine Munitionsgruppe in diesem Behälter"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/container_live/index.html.heex:8
msgid "No containers"
@@ -382,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:82
+#: lib/cannery_web/live/ammo_group_live/index.ex:83
msgid "Price paid"
msgstr "Kaufpreis"
@@ -399,17 +388,17 @@ msgid "Primer type"
msgstr "Zündertyp"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:117
+#: lib/cannery_web/live/home_live.ex:125
msgid "Public Signups"
msgstr "Öffentliche Registrierung"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:65
+#: lib/cannery_web/live/home_live.ex:73
msgid "Secure:"
msgstr "Sicher:"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:68
+#: lib/cannery_web/live/home_live.ex:76
msgid "Self-host your own instance, or use an instance from someone you trust."
msgstr ""
"Hosten Sie Ihre eigene Instanz oder verwenden Sie eine Instanz, der Sie "
@@ -426,18 +415,13 @@ msgstr "Unbegrenzt setzen"
msgid "Settings"
msgstr "Einstellungen"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.ex:39
-msgid "Show Ammo group"
-msgstr "Munitionsgruppen anzeigen"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/show.ex:44
msgid "Show Ammo type"
msgstr "Zeige Munitionsarten"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:75
+#: lib/cannery_web/live/home_live.ex:83
msgid "Simple:"
msgstr "Einfach:"
@@ -452,7 +436,7 @@ msgid "Stored in"
msgstr "Gelagert in"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:38
+#: lib/cannery_web/components/topbar.ex:44
#: lib/cannery_web/live/tag_live/index.ex:32
#: lib/cannery_web/live/tag_live/index.html.heex:3
msgid "Tags"
@@ -464,20 +448,15 @@ msgid "Tags can be added to your containers to help you organize"
msgstr "Tags können zur besseren Ordnung einem Behälter hinzugefügt werden"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:60
+#: lib/cannery_web/live/tag_live/form_component.ex:85
msgid "Text color"
msgstr "Textfarbe"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:44
+#: lib/cannery_web/live/home_live.ex:52
msgid "The self-hosted firearm tracker website"
msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
-msgid "This ammo group is not in a container"
-msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
#: lib/cannery_web/live/ammo_type_live/index.ex:69
@@ -513,23 +492,23 @@ msgid "Uses left"
msgstr "Verbleibende Nutzung"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:40
+#: lib/cannery_web/live/home_live.ex:48
msgid "Welcome to %{name}"
msgstr "Willkommen %{name}"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:69
+#: lib/cannery_web/live/home_live.ex:77
msgid "Your data stays with you, period"
msgstr "Ihre Daten bleiben bei Ihnen, Punkt"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:49
+#: lib/cannery_web/live/container_live/show.html.heex:61
msgid "No tags for this container"
msgstr "Keine Tags für diesen Behälter"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:62
-#: lib/cannery_web/live/ammo_group_live/index.ex:84
+#: lib/cannery_web/components/topbar.ex:68
+#: lib/cannery_web/live/ammo_group_live/index.ex:85
msgid "Range"
msgstr "Schießplatz"
@@ -572,11 +551,6 @@ msgstr "Für Schießplatz deselektieren"
msgid "Record shots"
msgstr "Schüsse dokumentieren"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
-msgid "Ammo Types"
-msgstr "Munitionsarten"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:49
msgid "Ammo groups"
@@ -622,7 +596,6 @@ msgstr "Schießkladde"
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:32
-#: lib/cannery_web/live/ammo_group_live/show.ex:38
msgid "Move Ammo group"
msgstr "Munitionsgruppe verschieben"
@@ -643,7 +616,7 @@ msgstr "Schießkladde"
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/ammo_group_card.ex:48
-#: lib/cannery_web/live/ammo_group_live/index.ex:118
+#: lib/cannery_web/live/ammo_group_live/index.ex:125
#: 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:114
@@ -708,12 +681,12 @@ msgid "New password"
msgstr "Neues Passwort"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Stage"
msgstr "Markiert"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Unstage"
msgstr "Demarkiert"
@@ -747,7 +720,8 @@ msgid "Edit %{name} tags"
msgstr "Editiere %{name} Tags"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/components/container_card.ex:55
+#: lib/cannery_web/live/container_live/show.html.heex:32
msgid "Rounds:"
msgstr "Patronen:"
@@ -763,7 +737,7 @@ msgid "No cost information"
msgstr "Keine Preisinformationen"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:83
+#: lib/cannery_web/live/ammo_group_live/index.ex:84
msgid "% left"
msgstr "% verbleibend"
@@ -849,7 +823,7 @@ msgid "Ammo types"
msgstr "Munitionsart"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:86
+#: lib/cannery_web/live/ammo_group_live/index.ex:87
msgid "Added on"
msgstr "Hinzugefügt am"
@@ -889,21 +863,74 @@ msgid "Language"
msgstr "Sprache"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:139
+#: lib/cannery_web/live/home_live.ex:147
msgid "Get involved!"
msgstr "Mach mit!"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:156
+#: lib/cannery_web/live/home_live.ex:164
msgid "Help translate"
msgstr "Hilf beim Übersetzen"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:165
+#: lib/cannery_web/live/home_live.ex:173
msgid "Report bugs or request features"
msgstr "Sende Bugs oder Erweiterungsvorschläge"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:147
+#: lib/cannery_web/live/home_live.ex:155
msgid "View the source code"
msgstr "Quellcode ansehen"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:56
+#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
+msgid "Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:40
+msgid "Edit Ammo"
+msgstr "Munitionstyp bearbeiten"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:38
+msgid "Move Ammo"
+msgstr "Munition verschieben"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/container_live/show.html.heex:90
+msgid "No ammo in this container"
+msgstr "Keine Munitionsgruppe in diesem Behälter"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:39
+msgid "Show Ammo"
+msgstr "Zeige Munitionsarten"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
+msgid "This ammo is not in a container"
+msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/live/container_live/show.html.heex:27
+msgid "Packs:"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:24
+#: lib/cannery_web/live/home_live.ex:42
+msgid "Cannery logo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/home_live.ex:44
+msgid "isn't he cute >:3"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+msgid "Leave \"Uses left\" blank to make invite unlimited"
+msgstr ""
diff --git a/priv/gettext/de/LC_MESSAGES/errors.po b/priv/gettext/de/LC_MESSAGES/errors.po
index b6c601b..2028391 100644
--- a/priv/gettext/de/LC_MESSAGES/errors.po
+++ b/priv/gettext/de/LC_MESSAGES/errors.po
@@ -24,7 +24,7 @@ msgstr ""
## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
-#: lib/cannery/containers.ex:122
+#: lib/cannery/containers.ex:140
msgid "Container must be empty before deleting"
msgstr "Behälter muss vor dem Löschen leer sein"
@@ -152,13 +152,13 @@ msgid "Tag could not be added"
msgstr "Tag konnte nicht hinzugefügt werden"
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:125
+#: lib/cannery/activity_log/shot_group.ex:115
msgid "Count must be at least 1"
msgstr "Anzahl muss mindestens 1 sein"
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:73
-#: lib/cannery/activity_log.ex:120
+#: lib/cannery/activity_log/shot_group.ex:74
+#: lib/cannery/activity_log/shot_group.ex:111
msgid "Count must be less than %{count}"
msgstr "Anzahl muss weniger als %{count} betragen"
@@ -176,13 +176,28 @@ msgid "Tag could not be removed"
msgstr "Tag konnte nicht gelöscht werden"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
msgid "Could not parse number of copies"
msgstr "Konnte die Anzahl der Kopien nicht verstehen"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr ""
"Ungültige Nummer an Kopien. Muss zwischen 1 and %{max} liegen. War "
"%{multiplier}"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo.ex:407
+msgid "Invalid multiplier"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo/ammo_group.ex:84
+msgid "Please select an ammo type and container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/activity_log/shot_group.ex:69
+msgid "Please select a valid user and ammo group"
+msgstr ""
diff --git a/priv/gettext/de/LC_MESSAGES/prompts.po b/priv/gettext/de/LC_MESSAGES/prompts.po
index ace0fa8..dd86fc9 100644
--- a/priv/gettext/de/LC_MESSAGES/prompts.po
+++ b/priv/gettext/de/LC_MESSAGES/prompts.po
@@ -24,10 +24,10 @@ msgstr ""
## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:64
-#: lib/cannery_web/live/container_live/form_component.ex:65
-#: lib/cannery_web/live/invite_live/form_component.ex:59
-#: lib/cannery_web/live/tag_live/form_component.ex:101
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
+#: lib/cannery_web/live/container_live/form_component.ex:85
+#: lib/cannery_web/live/invite_live/form_component.ex:80
+#: lib/cannery_web/live/tag_live/form_component.ex:126
msgid "%{name} created successfully"
msgstr "%{name} erfolgreich erstellt"
@@ -62,10 +62,10 @@ msgid "%{name} updated succesfully"
msgstr "%{name} erfolgreich aktualisiert"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:46
-#: lib/cannery_web/live/container_live/form_component.ex:47
-#: lib/cannery_web/live/invite_live/form_component.ex:41
-#: lib/cannery_web/live/tag_live/form_component.ex:83
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
+#: lib/cannery_web/live/container_live/form_component.ex:67
+#: lib/cannery_web/live/invite_live/form_component.ex:62
+#: lib/cannery_web/live/tag_live/form_component.ex:108
msgid "%{name} updated successfully"
msgstr "%{name} erfolgreich aktualisiert"
@@ -76,15 +76,9 @@ msgstr "Eine Mail zum Bestätigen ihre Mailadresse wurde Ihnen zugesandt."
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:56
-#: lib/cannery_web/live/ammo_group_live/show.ex:50
msgid "Ammo group deleted succesfully"
msgstr "Munitionsgruppe erfolgreich gelöscht"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
-msgid "Ammo group updated successfully"
-msgstr "Munitionsgruppe erfolgreich aktualisiert"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/invite_live/index.html.heex:102
#: lib/cannery_web/live/invite_live/index.html.heex:131
@@ -94,9 +88,8 @@ msgstr ""
"zurückgenommen werden!"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
#: 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:49
#: lib/cannery_web/live/tag_live/index.html.heex:38
msgid "Are you sure you want to delete %{name}?"
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
@@ -107,9 +100,8 @@ 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:177
+#: lib/cannery_web/live/ammo_group_live/index.ex:184
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
-#: lib/cannery_web/live/ammo_type_live/index.ex:140
msgid "Are you sure you want to delete this ammo?"
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
@@ -119,7 +111,7 @@ msgid "Are you sure you want to delete your account?"
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:84
+#: lib/cannery_web/components/topbar.ex:90
msgid "Are you sure you want to log out?"
msgstr "Wirklich ausloggen?"
@@ -168,7 +160,7 @@ msgid "Please check your email to verify your account"
msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:96
+#: lib/cannery_web/live/home_live.ex:104
msgid "Register to setup %{name}"
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
@@ -177,9 +169,9 @@ msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
#: lib/cannery_web/live/container_live/form_component.html.heex:52
-#: lib/cannery_web/live/invite_live/form_component.html.heex:30
+#: lib/cannery_web/live/invite_live/form_component.html.heex:33
#: lib/cannery_web/live/range_live/form_component.html.heex:42
-#: lib/cannery_web/live/tag_live/form_component.ex:68
+#: lib/cannery_web/live/tag_live/form_component.ex:93
msgid "Saving..."
msgstr "Speichere..."
@@ -211,7 +203,7 @@ msgid "Adding..."
msgstr "Füge hinzu..."
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/add_shot_group_component.ex:68
+#: lib/cannery_web/components/add_shot_group_component.ex:56
msgid "Shots recorded successfully"
msgstr "Schüsse erfolgreich dokumentiert"
@@ -220,11 +212,6 @@ msgstr "Schüsse erfolgreich dokumentiert"
msgid "Are you sure you want to unstage this ammo?"
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/range_live/index.ex:68
-msgid "Ammo group unstaged succesfully"
-msgstr "Munition erfolgreich demarkiert"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/show.ex:130
#: lib/cannery_web/live/range_live/index.ex:128
@@ -263,8 +250,8 @@ msgid "%{name} removed successfully"
msgstr "%{name} erfolgreich entfernt"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
msgid "You'll need to"
msgstr "Sie müssen"
@@ -273,13 +260,6 @@ msgstr "Sie müssen"
msgid "Creating..."
msgstr "Erstellen..."
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
-msgid "Ammo group created successfully"
-msgid_plural "Ammo groups created successfully"
-msgstr[0] "Munitionsgruppe erfolgreich erstellt"
-msgstr[1] "Munitionsgruppen erfolgreich erstellt"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
msgid "Are you sure you want to change your language?"
@@ -289,3 +269,31 @@ msgstr "Möchten Sie die Sprache wechseln?"
#: lib/cannery_web/controllers/user_settings_controller.ex:65
msgid "Language updated successfully."
msgstr "Spracheinstellung gespeichert."
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:50
+msgid "Ammo deleted succesfully"
+msgstr "Munitionsgruppe erfolgreich gelöscht"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/range_live/index.ex:68
+msgid "Ammo unstaged succesfully"
+msgstr "Munition erfolgreich demarkiert"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:118
+msgid "Ammo updated successfully"
+msgstr "Munitionsgruppe erfolgreich aktualisiert"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
+msgid "Ammo added successfully"
+msgid_plural "Ammo added successfully"
+msgstr[0] "Munitionsgruppe erfolgreich aktualisiert"
+msgstr[1] "Munitionsgruppe erfolgreich aktualisiert"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_type_live/index.ex:140
+#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
+msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
+msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot
index 9b77b06..aaa8cf4 100644
--- a/priv/gettext/default.pot
+++ b/priv/gettext/default.pot
@@ -11,12 +11,12 @@ msgid ""
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:56
+#: lib/cannery_web/live/home_live.ex:64
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:78
+#: lib/cannery_web/live/home_live.ex:86
msgid "Access from any internet-capable device"
msgstr ""
@@ -26,12 +26,12 @@ msgid "Admins"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:92
+#: lib/cannery_web/live/home_live.ex:100
msgid "Admins:"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:50
+#: lib/cannery_web/components/topbar.ex:62
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
#: lib/cannery_web/live/range_live/index.ex:80
msgid "Ammo"
@@ -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:80
+#: lib/cannery_web/live/ammo_group_live/index.ex:81
msgid "Ammo type"
msgstr ""
@@ -50,7 +50,7 @@ msgid "Average Price paid"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:54
+#: lib/cannery_web/live/tag_live/form_component.ex:79
msgid "Background color"
msgstr ""
@@ -104,12 +104,12 @@ 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:85
+#: lib/cannery_web/live/ammo_group_live/index.ex:86
msgid "Container"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:44
+#: lib/cannery_web/components/topbar.ex:50
#: lib/cannery_web/live/container_live/index.ex:36
#: lib/cannery_web/live/container_live/index.html.heex:3
msgid "Containers"
@@ -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:81
+#: lib/cannery_web/live/ammo_group_live/index.ex:82
msgid "Count"
msgstr ""
@@ -152,13 +152,12 @@ msgid "Disable"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:53
+#: lib/cannery_web/live/home_live.ex:61
msgid "Easy to Use:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:38
-#: lib/cannery_web/live/ammo_group_live/show.ex:40
msgid "Edit Ammo group"
msgstr ""
@@ -208,7 +207,7 @@ msgid "Incendiary"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:87
+#: lib/cannery_web/live/home_live.ex:95
msgid "Instance Information"
msgstr ""
@@ -218,12 +217,12 @@ msgid "Invite Disabled"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:118
+#: lib/cannery_web/live/home_live.ex:126
msgid "Invite Only"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:69
+#: lib/cannery_web/components/topbar.ex:75
#: lib/cannery_web/live/invite_live/index.ex:41
#: lib/cannery_web/live/invite_live/index.html.heex:3
msgid "Invites"
@@ -251,11 +250,6 @@ msgstr ""
msgid "Magazine, Clip, Ammo Box, etc"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:56
-msgid "Manage"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
#: lib/cannery_web/live/ammo_type_live/index.ex:73
@@ -278,7 +272,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_type_live/index.ex:51
#: lib/cannery_web/live/container_live/form_component.html.heex:20
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
-#: lib/cannery_web/live/tag_live/form_component.ex:50
+#: lib/cannery_web/live/tag_live/form_component.ex:75
msgid "Name"
msgstr ""
@@ -317,11 +311,6 @@ msgstr ""
msgid "No ammo for this type"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:78
-msgid "No ammo groups in this container"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/container_live/index.html.heex:8
msgid "No containers"
@@ -367,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:82
+#: lib/cannery_web/live/ammo_group_live/index.ex:83
msgid "Price paid"
msgstr ""
@@ -384,17 +373,17 @@ msgid "Primer type"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:117
+#: lib/cannery_web/live/home_live.ex:125
msgid "Public Signups"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:65
+#: lib/cannery_web/live/home_live.ex:73
msgid "Secure:"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:68
+#: lib/cannery_web/live/home_live.ex:76
msgid "Self-host your own instance, or use an instance from someone you trust."
msgstr ""
@@ -409,18 +398,13 @@ msgstr ""
msgid "Settings"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.ex:39
-msgid "Show Ammo group"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/show.ex:44
msgid "Show Ammo type"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:75
+#: lib/cannery_web/live/home_live.ex:83
msgid "Simple:"
msgstr ""
@@ -435,7 +419,7 @@ msgid "Stored in"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:38
+#: lib/cannery_web/components/topbar.ex:44
#: lib/cannery_web/live/tag_live/index.ex:32
#: lib/cannery_web/live/tag_live/index.html.heex:3
msgid "Tags"
@@ -447,20 +431,15 @@ msgid "Tags can be added to your containers to help you organize"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:60
+#: lib/cannery_web/live/tag_live/form_component.ex:85
msgid "Text color"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:44
+#: lib/cannery_web/live/home_live.ex:52
msgid "The self-hosted firearm tracker website"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
-msgid "This ammo group is not in a container"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
#: lib/cannery_web/live/ammo_type_live/index.ex:69
@@ -496,23 +475,23 @@ msgid "Uses left"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:40
+#: lib/cannery_web/live/home_live.ex:48
msgid "Welcome to %{name}"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:69
+#: lib/cannery_web/live/home_live.ex:77
msgid "Your data stays with you, period"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:49
+#: lib/cannery_web/live/container_live/show.html.heex:61
msgid "No tags for this container"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:62
-#: lib/cannery_web/live/ammo_group_live/index.ex:84
+#: lib/cannery_web/components/topbar.ex:68
+#: lib/cannery_web/live/ammo_group_live/index.ex:85
msgid "Range"
msgstr ""
@@ -555,11 +534,6 @@ msgstr ""
msgid "Record shots"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
-msgid "Ammo Types"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:49
msgid "Ammo groups"
@@ -605,7 +579,6 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:32
-#: lib/cannery_web/live/ammo_group_live/show.ex:38
msgid "Move Ammo group"
msgstr ""
@@ -626,7 +599,7 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/ammo_group_card.ex:48
-#: lib/cannery_web/live/ammo_group_live/index.ex:118
+#: lib/cannery_web/live/ammo_group_live/index.ex:125
#: 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:114
@@ -691,12 +664,12 @@ msgid "New password"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Stage"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Unstage"
msgstr ""
@@ -730,7 +703,8 @@ msgid "Edit %{name} tags"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/components/container_card.ex:55
+#: lib/cannery_web/live/container_live/show.html.heex:32
msgid "Rounds:"
msgstr ""
@@ -746,7 +720,7 @@ msgid "No cost information"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:83
+#: lib/cannery_web/live/ammo_group_live/index.ex:84
msgid "% left"
msgstr ""
@@ -832,7 +806,7 @@ msgid "Ammo types"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:86
+#: lib/cannery_web/live/ammo_group_live/index.ex:87
msgid "Added on"
msgstr ""
@@ -872,21 +846,74 @@ msgid "Language"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:139
+#: lib/cannery_web/live/home_live.ex:147
msgid "Get involved!"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:156
+#: lib/cannery_web/live/home_live.ex:164
msgid "Help translate"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:165
+#: lib/cannery_web/live/home_live.ex:173
msgid "Report bugs or request features"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:147
+#: lib/cannery_web/live/home_live.ex:155
msgid "View the source code"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:56
+#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
+msgid "Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.ex:40
+msgid "Edit Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.ex:38
+msgid "Move Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/container_live/show.html.heex:90
+msgid "No ammo in this container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.ex:39
+msgid "Show Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
+msgid "This ammo is not in a container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/live/container_live/show.html.heex:27
+msgid "Packs:"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:24
+#: lib/cannery_web/live/home_live.ex:42
+msgid "Cannery logo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/home_live.ex:44
+msgid "isn't he cute >:3"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+msgid "Leave \"Uses left\" blank to make invite unlimited"
+msgstr ""
diff --git a/priv/gettext/en/LC_MESSAGES/actions.po b/priv/gettext/en/LC_MESSAGES/actions.po
index 745fc22..fbe8a46 100644
--- a/priv/gettext/en/LC_MESSAGES/actions.po
+++ b/priv/gettext/en/LC_MESSAGES/actions.po
@@ -13,11 +13,12 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:44
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
msgid "Add Ammo"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
msgid "Add your first box!"
msgstr ""
@@ -66,7 +67,7 @@ msgid "Invite someone new!"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:106
+#: lib/cannery_web/components/topbar.ex:112
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
#: lib/cannery_web/templates/user_registration/new.html.heex:48
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
@@ -81,11 +82,6 @@ msgstr ""
msgid "Make your first tag!"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
-msgid "New Ammo group"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
msgid "New Ammo type"
@@ -102,7 +98,7 @@ msgid "New Tag"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:99
+#: lib/cannery_web/components/topbar.ex:105
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
#: lib/cannery_web/templates/user_registration/new.html.heex:3
#: lib/cannery_web/templates/user_registration/new.html.heex:42
@@ -129,9 +125,9 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
#: lib/cannery_web/live/container_live/form_component.html.heex:50
-#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+#: lib/cannery_web/live/invite_live/form_component.html.heex:31
#: lib/cannery_web/live/range_live/form_component.html.heex:40
-#: lib/cannery_web/live/tag_live/form_component.ex:66
+#: lib/cannery_web/live/tag_live/form_component.ex:91
msgid "Save"
msgstr ""
@@ -141,7 +137,7 @@ msgid "Send instructions to reset password"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:53
+#: lib/cannery_web/live/container_live/show.html.heex:65
msgid "Why not add one?"
msgstr ""
@@ -161,17 +157,12 @@ msgid "Why not get some ready to shoot?"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:144
+#: lib/cannery_web/live/ammo_group_live/index.ex:151
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
#: lib/cannery_web/live/range_live/index.html.heex:36
msgid "Record shots"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
-msgid "Ammo Details"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/move_ammo_group_component.ex:89
msgid "Add another container!"
@@ -193,8 +184,7 @@ msgid "Copy to clipboard"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:20
msgid "add a container first"
msgstr ""
@@ -212,3 +202,13 @@ msgstr ""
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
msgid "Change language"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
+msgid "View in Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
+msgid "add an ammo type first"
+msgstr ""
diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po
index dd06454..8edd0d6 100644
--- a/priv/gettext/en/LC_MESSAGES/default.po
+++ b/priv/gettext/en/LC_MESSAGES/default.po
@@ -12,12 +12,12 @@ msgstr ""
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:56
+#: lib/cannery_web/live/home_live.ex:64
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:78
+#: lib/cannery_web/live/home_live.ex:86
msgid "Access from any internet-capable device"
msgstr ""
@@ -27,12 +27,12 @@ msgid "Admins"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:92
+#: lib/cannery_web/live/home_live.ex:100
msgid "Admins:"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:50
+#: lib/cannery_web/components/topbar.ex:62
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
#: lib/cannery_web/live/range_live/index.ex:80
msgid "Ammo"
@@ -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:80
+#: lib/cannery_web/live/ammo_group_live/index.ex:81
msgid "Ammo type"
msgstr ""
@@ -51,7 +51,7 @@ msgid "Average Price paid"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:54
+#: lib/cannery_web/live/tag_live/form_component.ex:79
msgid "Background color"
msgstr ""
@@ -105,12 +105,12 @@ 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:85
+#: lib/cannery_web/live/ammo_group_live/index.ex:86
msgid "Container"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:44
+#: lib/cannery_web/components/topbar.ex:50
#: lib/cannery_web/live/container_live/index.ex:36
#: lib/cannery_web/live/container_live/index.html.heex:3
msgid "Containers"
@@ -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:81
+#: lib/cannery_web/live/ammo_group_live/index.ex:82
msgid "Count"
msgstr ""
@@ -153,13 +153,12 @@ msgid "Disable"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:53
+#: lib/cannery_web/live/home_live.ex:61
msgid "Easy to Use:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:38
-#: lib/cannery_web/live/ammo_group_live/show.ex:40
msgid "Edit Ammo group"
msgstr ""
@@ -209,7 +208,7 @@ msgid "Incendiary"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:87
+#: lib/cannery_web/live/home_live.ex:95
msgid "Instance Information"
msgstr ""
@@ -219,12 +218,12 @@ msgid "Invite Disabled"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:118
+#: lib/cannery_web/live/home_live.ex:126
msgid "Invite Only"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:69
+#: lib/cannery_web/components/topbar.ex:75
#: lib/cannery_web/live/invite_live/index.ex:41
#: lib/cannery_web/live/invite_live/index.html.heex:3
msgid "Invites"
@@ -252,11 +251,6 @@ msgstr ""
msgid "Magazine, Clip, Ammo Box, etc"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:56
-msgid "Manage"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
#: lib/cannery_web/live/ammo_type_live/index.ex:73
@@ -279,7 +273,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_type_live/index.ex:51
#: lib/cannery_web/live/container_live/form_component.html.heex:20
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
-#: lib/cannery_web/live/tag_live/form_component.ex:50
+#: lib/cannery_web/live/tag_live/form_component.ex:75
msgid "Name"
msgstr ""
@@ -318,11 +312,6 @@ msgstr ""
msgid "No ammo for this type"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:78
-msgid "No ammo groups in this container"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/container_live/index.html.heex:8
msgid "No containers"
@@ -368,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:82
+#: lib/cannery_web/live/ammo_group_live/index.ex:83
msgid "Price paid"
msgstr ""
@@ -385,17 +374,17 @@ msgid "Primer type"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:117
+#: lib/cannery_web/live/home_live.ex:125
msgid "Public Signups"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:65
+#: lib/cannery_web/live/home_live.ex:73
msgid "Secure:"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:68
+#: lib/cannery_web/live/home_live.ex:76
msgid "Self-host your own instance, or use an instance from someone you trust."
msgstr ""
@@ -410,18 +399,13 @@ msgstr ""
msgid "Settings"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.ex:39
-msgid "Show Ammo group"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/show.ex:44
msgid "Show Ammo type"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:75
+#: lib/cannery_web/live/home_live.ex:83
msgid "Simple:"
msgstr ""
@@ -436,7 +420,7 @@ msgid "Stored in"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:38
+#: lib/cannery_web/components/topbar.ex:44
#: lib/cannery_web/live/tag_live/index.ex:32
#: lib/cannery_web/live/tag_live/index.html.heex:3
msgid "Tags"
@@ -448,20 +432,15 @@ msgid "Tags can be added to your containers to help you organize"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:60
+#: lib/cannery_web/live/tag_live/form_component.ex:85
msgid "Text color"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:44
+#: lib/cannery_web/live/home_live.ex:52
msgid "The self-hosted firearm tracker website"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
-msgid "This ammo group is not in a container"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
#: lib/cannery_web/live/ammo_type_live/index.ex:69
@@ -497,23 +476,23 @@ msgid "Uses left"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:40
+#: lib/cannery_web/live/home_live.ex:48
msgid "Welcome to %{name}"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:69
+#: lib/cannery_web/live/home_live.ex:77
msgid "Your data stays with you, period"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:49
+#: lib/cannery_web/live/container_live/show.html.heex:61
msgid "No tags for this container"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:62
-#: lib/cannery_web/live/ammo_group_live/index.ex:84
+#: lib/cannery_web/components/topbar.ex:68
+#: lib/cannery_web/live/ammo_group_live/index.ex:85
msgid "Range"
msgstr ""
@@ -556,11 +535,6 @@ msgstr ""
msgid "Record shots"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
-msgid "Ammo Types"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:49
msgid "Ammo groups"
@@ -606,7 +580,6 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:32
-#: lib/cannery_web/live/ammo_group_live/show.ex:38
msgid "Move Ammo group"
msgstr ""
@@ -627,7 +600,7 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/ammo_group_card.ex:48
-#: lib/cannery_web/live/ammo_group_live/index.ex:118
+#: lib/cannery_web/live/ammo_group_live/index.ex:125
#: 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:114
@@ -692,12 +665,12 @@ msgid "New password"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Stage"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Unstage"
msgstr ""
@@ -731,7 +704,8 @@ msgid "Edit %{name} tags"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
-#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/components/container_card.ex:55
+#: lib/cannery_web/live/container_live/show.html.heex:32
msgid "Rounds:"
msgstr ""
@@ -747,7 +721,7 @@ msgid "No cost information"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:83
+#: lib/cannery_web/live/ammo_group_live/index.ex:84
msgid "% left"
msgstr ""
@@ -833,7 +807,7 @@ msgid "Ammo types"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:86
+#: lib/cannery_web/live/ammo_group_live/index.ex:87
msgid "Added on"
msgstr ""
@@ -873,21 +847,74 @@ msgid "Language"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:139
+#: lib/cannery_web/live/home_live.ex:147
msgid "Get involved!"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:156
+#: lib/cannery_web/live/home_live.ex:164
msgid "Help translate"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:165
+#: lib/cannery_web/live/home_live.ex:173
msgid "Report bugs or request features"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:147
+#: lib/cannery_web/live/home_live.ex:155
msgid "View the source code"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:56
+#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
+msgid "Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:40
+msgid "Edit Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:38
+msgid "Move Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/container_live/show.html.heex:90
+msgid "No ammo in this container"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:39
+msgid "Show Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
+msgid "This ammo is not in a container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/live/container_live/show.html.heex:27
+msgid "Packs:"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:24
+#: lib/cannery_web/live/home_live.ex:42
+msgid "Cannery logo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/home_live.ex:44
+msgid "isn't he cute >:3"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+msgid "Leave \"Uses left\" blank to make invite unlimited"
+msgstr ""
diff --git a/priv/gettext/en/LC_MESSAGES/errors.po b/priv/gettext/en/LC_MESSAGES/errors.po
index fe8d977..d0b1a22 100644
--- a/priv/gettext/en/LC_MESSAGES/errors.po
+++ b/priv/gettext/en/LC_MESSAGES/errors.po
@@ -11,7 +11,7 @@ msgstr ""
"Language: en\n"
#, elixir-autogen, elixir-format
-#: lib/cannery/containers.ex:122
+#: lib/cannery/containers.ex:140
msgid "Container must be empty before deleting"
msgstr ""
@@ -139,13 +139,13 @@ msgid "Tag could not be added"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:125
+#: lib/cannery/activity_log/shot_group.ex:115
msgid "Count must be at least 1"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:73
-#: lib/cannery/activity_log.ex:120
+#: lib/cannery/activity_log/shot_group.ex:74
+#: lib/cannery/activity_log/shot_group.ex:111
msgid "Count must be less than %{count}"
msgstr ""
@@ -161,11 +161,26 @@ msgid "Tag could not be removed"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
msgid "Could not parse number of copies"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo.ex:407
+msgid "Invalid multiplier"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo/ammo_group.ex:84
+msgid "Please select an ammo type and container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/activity_log/shot_group.ex:69
+msgid "Please select a valid user and ammo group"
+msgstr ""
diff --git a/priv/gettext/en/LC_MESSAGES/prompts.po b/priv/gettext/en/LC_MESSAGES/prompts.po
index 59926be..551cac9 100644
--- a/priv/gettext/en/LC_MESSAGES/prompts.po
+++ b/priv/gettext/en/LC_MESSAGES/prompts.po
@@ -12,10 +12,10 @@ msgstr ""
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:64
-#: lib/cannery_web/live/container_live/form_component.ex:65
-#: lib/cannery_web/live/invite_live/form_component.ex:59
-#: lib/cannery_web/live/tag_live/form_component.ex:101
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
+#: lib/cannery_web/live/container_live/form_component.ex:85
+#: lib/cannery_web/live/invite_live/form_component.ex:80
+#: lib/cannery_web/live/tag_live/form_component.ex:126
msgid "%{name} created successfully"
msgstr ""
@@ -50,10 +50,10 @@ msgid "%{name} updated succesfully"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:46
-#: lib/cannery_web/live/container_live/form_component.ex:47
-#: lib/cannery_web/live/invite_live/form_component.ex:41
-#: lib/cannery_web/live/tag_live/form_component.ex:83
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
+#: lib/cannery_web/live/container_live/form_component.ex:67
+#: lib/cannery_web/live/invite_live/form_component.ex:62
+#: lib/cannery_web/live/tag_live/form_component.ex:108
msgid "%{name} updated successfully"
msgstr ""
@@ -64,15 +64,9 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:56
-#: lib/cannery_web/live/ammo_group_live/show.ex:50
msgid "Ammo group deleted succesfully"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
-msgid "Ammo group updated successfully"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/invite_live/index.html.heex:102
#: lib/cannery_web/live/invite_live/index.html.heex:131
@@ -80,9 +74,8 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
#: 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:49
#: lib/cannery_web/live/tag_live/index.html.heex:38
msgid "Are you sure you want to delete %{name}?"
msgstr ""
@@ -93,9 +86,8 @@ 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:177
+#: lib/cannery_web/live/ammo_group_live/index.ex:184
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
-#: lib/cannery_web/live/ammo_type_live/index.ex:140
msgid "Are you sure you want to delete this ammo?"
msgstr ""
@@ -105,7 +97,7 @@ msgid "Are you sure you want to delete your account?"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:84
+#: lib/cannery_web/components/topbar.ex:90
msgid "Are you sure you want to log out?"
msgstr ""
@@ -150,7 +142,7 @@ msgid "Please check your email to verify your account"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:96
+#: lib/cannery_web/live/home_live.ex:104
msgid "Register to setup %{name}"
msgstr ""
@@ -159,9 +151,9 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
#: lib/cannery_web/live/container_live/form_component.html.heex:52
-#: lib/cannery_web/live/invite_live/form_component.html.heex:30
+#: lib/cannery_web/live/invite_live/form_component.html.heex:33
#: lib/cannery_web/live/range_live/form_component.html.heex:42
-#: lib/cannery_web/live/tag_live/form_component.ex:68
+#: lib/cannery_web/live/tag_live/form_component.ex:93
msgid "Saving..."
msgstr ""
@@ -191,7 +183,7 @@ msgid "Adding..."
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/add_shot_group_component.ex:68
+#: lib/cannery_web/components/add_shot_group_component.ex:56
msgid "Shots recorded successfully"
msgstr ""
@@ -200,11 +192,6 @@ msgstr ""
msgid "Are you sure you want to unstage this ammo?"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/range_live/index.ex:68
-msgid "Ammo group unstaged succesfully"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/show.ex:130
#: lib/cannery_web/live/range_live/index.ex:128
@@ -243,8 +230,8 @@ msgid "%{name} removed successfully"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
msgid "You'll need to"
msgstr ""
@@ -253,13 +240,6 @@ msgstr ""
msgid "Creating..."
msgstr ""
-#, elixir-autogen, elixir-format, fuzzy
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
-msgid "Ammo group created successfully"
-msgid_plural "Ammo groups created successfully"
-msgstr[0] ""
-msgstr[1] ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
msgid "Are you sure you want to change your language?"
@@ -269,3 +249,31 @@ msgstr ""
#: lib/cannery_web/controllers/user_settings_controller.ex:65
msgid "Language updated successfully."
msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:50
+msgid "Ammo deleted succesfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/range_live/index.ex:68
+msgid "Ammo unstaged succesfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:118
+msgid "Ammo updated successfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
+msgid "Ammo added successfully"
+msgid_plural "Ammo added successfully"
+msgstr[0] ""
+msgstr[1] ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_type_live/index.ex:140
+#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
+msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
+msgstr ""
diff --git a/priv/gettext/errors.pot b/priv/gettext/errors.pot
index 80bb167..3c684cb 100644
--- a/priv/gettext/errors.pot
+++ b/priv/gettext/errors.pot
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery/containers.ex:122
+#: lib/cannery/containers.ex:140
msgid "Container must be empty before deleting"
msgstr ""
@@ -138,13 +138,13 @@ msgid "Tag could not be added"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:125
+#: lib/cannery/activity_log/shot_group.ex:115
msgid "Count must be at least 1"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:73
-#: lib/cannery/activity_log.ex:120
+#: lib/cannery/activity_log/shot_group.ex:74
+#: lib/cannery/activity_log/shot_group.ex:111
msgid "Count must be less than %{count}"
msgstr ""
@@ -160,11 +160,26 @@ msgid "Tag could not be removed"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
msgid "Could not parse number of copies"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo.ex:407
+msgid "Invalid multiplier"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo/ammo_group.ex:84
+msgid "Please select an ammo type and container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/activity_log/shot_group.ex:69
+msgid "Please select a valid user and ammo group"
+msgstr ""
diff --git a/priv/gettext/es/LC_MESSAGES/actions.po b/priv/gettext/es/LC_MESSAGES/actions.po
index 95831fe..133e548 100644
--- a/priv/gettext/es/LC_MESSAGES/actions.po
+++ b/priv/gettext/es/LC_MESSAGES/actions.po
@@ -140,7 +140,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
#: lib/cannery_web/live/container_live/form_component.html.heex:50
-#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+#: lib/cannery_web/live/invite_live/form_component.html.heex:31
#: lib/cannery_web/live/range_live/form_component.html.heex:40
#: lib/cannery_web/live/tag_live/form_component.ex:66
#, elixir-autogen, elixir-format
@@ -224,3 +224,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Change language"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
+msgid "View in Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
+msgid "add an ammo type first"
+msgstr ""
diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po
index 95b05d4..0442c5e 100644
--- a/priv/gettext/es/LC_MESSAGES/default.po
+++ b/priv/gettext/es/LC_MESSAGES/default.po
@@ -640,7 +640,7 @@ msgid "Shot log"
msgstr ""
#: lib/cannery_web/components/ammo_group_card.ex:48
-#: lib/cannery_web/live/ammo_group_live/index.ex:118
+#: lib/cannery_web/live/ammo_group_live/index.ex:125
#: 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:114
@@ -905,3 +905,56 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "View the source code"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:56
+#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
+msgid "Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:40
+msgid "Edit Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:38
+msgid "Move Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/container_live/show.html.heex:90
+msgid "No ammo in this container"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:39
+msgid "Show Ammo"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
+msgid "This ammo is not in a container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/live/container_live/show.html.heex:27
+msgid "Packs:"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:24
+#: lib/cannery_web/live/home_live.ex:42
+msgid "Cannery logo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/home_live.ex:44
+msgid "isn't he cute >:3"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+msgid "Leave \"Uses left\" blank to make invite unlimited"
+msgstr ""
diff --git a/priv/gettext/es/LC_MESSAGES/errors.po b/priv/gettext/es/LC_MESSAGES/errors.po
index 05a00d2..2335769 100644
--- a/priv/gettext/es/LC_MESSAGES/errors.po
+++ b/priv/gettext/es/LC_MESSAGES/errors.po
@@ -184,3 +184,18 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo.ex:407
+msgid "Invalid multiplier"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo/ammo_group.ex:84
+msgid "Please select an ammo type and container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/activity_log/shot_group.ex:69
+msgid "Please select a valid user and ammo group"
+msgstr ""
diff --git a/priv/gettext/es/LC_MESSAGES/prompts.po b/priv/gettext/es/LC_MESSAGES/prompts.po
index b8d0fa6..be77f62 100644
--- a/priv/gettext/es/LC_MESSAGES/prompts.po
+++ b/priv/gettext/es/LC_MESSAGES/prompts.po
@@ -95,7 +95,7 @@ msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!"
#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
#: 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:49
#: lib/cannery_web/live/tag_live/index.html.heex:38
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"
@@ -176,7 +176,7 @@ msgstr "Regístrese para configurar %{name}"
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
#: lib/cannery_web/live/container_live/form_component.html.heex:52
-#: lib/cannery_web/live/invite_live/form_component.html.heex:30
+#: lib/cannery_web/live/invite_live/form_component.html.heex:33
#: lib/cannery_web/live/range_live/form_component.html.heex:42
#: lib/cannery_web/live/tag_live/form_component.ex:68
#, elixir-autogen, elixir-format
@@ -288,3 +288,31 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Language updated successfully."
msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:50
+msgid "Ammo deleted succesfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/range_live/index.ex:68
+msgid "Ammo unstaged succesfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:118
+msgid "Ammo updated successfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
+msgid "Ammo added successfully"
+msgid_plural "Ammo added successfully"
+msgstr[0] ""
+msgstr[1] ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_type_live/index.ex:140
+#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
+msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
+msgstr ""
diff --git a/priv/gettext/fr/LC_MESSAGES/actions.po b/priv/gettext/fr/LC_MESSAGES/actions.po
index 8a92f3f..2cee0d9 100644
--- a/priv/gettext/fr/LC_MESSAGES/actions.po
+++ b/priv/gettext/fr/LC_MESSAGES/actions.po
@@ -25,11 +25,12 @@ msgstr ""
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:44
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
msgid "Add Ammo"
msgstr "ajouter munition"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:37
msgid "Add your first box!"
msgstr "Ajoutez votre première caisse !"
@@ -78,7 +79,7 @@ msgid "Invite someone new!"
msgstr "Invitez une nouvelle personne !"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:106
+#: lib/cannery_web/components/topbar.ex:112
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
#: lib/cannery_web/templates/user_registration/new.html.heex:48
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
@@ -93,11 +94,6 @@ msgstr "Se connecter"
msgid "Make your first tag!"
msgstr "Faîtes votre premier tag !"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
-msgid "New Ammo group"
-msgstr "Nouveau groupe de munition"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
msgid "New Ammo type"
@@ -114,7 +110,7 @@ msgid "New Tag"
msgstr "Nouveau tag"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:99
+#: lib/cannery_web/components/topbar.ex:105
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
#: lib/cannery_web/templates/user_registration/new.html.heex:3
#: lib/cannery_web/templates/user_registration/new.html.heex:42
@@ -141,9 +137,9 @@ msgstr "Réinitialisé le mot de passe"
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
#: lib/cannery_web/live/container_live/form_component.html.heex:50
-#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+#: lib/cannery_web/live/invite_live/form_component.html.heex:31
#: lib/cannery_web/live/range_live/form_component.html.heex:40
-#: lib/cannery_web/live/tag_live/form_component.ex:66
+#: lib/cannery_web/live/tag_live/form_component.ex:91
msgid "Save"
msgstr "Sauvegarder"
@@ -153,7 +149,7 @@ msgid "Send instructions to reset password"
msgstr "Envoyer les instructions pour réinitialiser le mot de passe"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:53
+#: lib/cannery_web/live/container_live/show.html.heex:65
msgid "Why not add one?"
msgstr "Pourquoi pas en ajouter un ?"
@@ -173,17 +169,12 @@ 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:144
+#: lib/cannery_web/live/ammo_group_live/index.ex:151
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
#: lib/cannery_web/live/range_live/index.html.heex:36
msgid "Record shots"
msgstr "Enregistrer des tirs"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
-msgid "Ammo Details"
-msgstr "Détails de la munition"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/move_ammo_group_component.ex:89
msgid "Add another container!"
@@ -205,8 +196,7 @@ msgid "Copy to clipboard"
msgstr "Copier dans le presse-papier"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:20
msgid "add a container first"
msgstr "ajouter un conteneur en premier"
@@ -224,3 +214,13 @@ msgstr "Changer la langue"
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
msgid "Change language"
msgstr "Changer la langue"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
+msgid "View in Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:31
+msgid "add an ammo type first"
+msgstr ""
diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po
index 411cee5..60a8441 100644
--- a/priv/gettext/fr/LC_MESSAGES/default.po
+++ b/priv/gettext/fr/LC_MESSAGES/default.po
@@ -24,14 +24,14 @@ msgstr ""
## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:56
+#: lib/cannery_web/live/home_live.ex:64
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
msgstr ""
"%{name} vous permet de facilement garder un œil sur votre niveau de munition "
"avant et après une journée de stand"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:78
+#: lib/cannery_web/live/home_live.ex:86
msgid "Access from any internet-capable device"
msgstr "Accédez depuis n’importe quel appareil connecté à internet"
@@ -41,12 +41,12 @@ msgid "Admins"
msgstr "Administrateur·ices"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:92
+#: lib/cannery_web/live/home_live.ex:100
msgid "Admins:"
msgstr "Administrateur·ices :"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:50
+#: lib/cannery_web/components/topbar.ex:62
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
#: lib/cannery_web/live/range_live/index.ex:80
msgid "Ammo"
@@ -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:80
+#: lib/cannery_web/live/ammo_group_live/index.ex:81
msgid "Ammo type"
msgstr "Type de munition"
@@ -65,7 +65,7 @@ msgid "Average Price paid"
msgstr "Prix acheté moyen"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:54
+#: lib/cannery_web/live/tag_live/form_component.ex:79
msgid "Background color"
msgstr "Couleur de fond"
@@ -119,12 +119,12 @@ 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:85
+#: lib/cannery_web/live/ammo_group_live/index.ex:86
msgid "Container"
msgstr "Conteneur"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:44
+#: lib/cannery_web/components/topbar.ex:50
#: lib/cannery_web/live/container_live/index.ex:36
#: lib/cannery_web/live/container_live/index.html.heex:3
msgid "Containers"
@@ -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:81
+#: lib/cannery_web/live/ammo_group_live/index.ex:82
msgid "Count"
msgstr "Quantité"
@@ -167,13 +167,12 @@ msgid "Disable"
msgstr "Désactiver"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:53
+#: lib/cannery_web/live/home_live.ex:61
msgid "Easy to Use:"
msgstr "Simple à utiliser :"
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:38
-#: lib/cannery_web/live/ammo_group_live/show.ex:40
msgid "Edit Ammo group"
msgstr "Éditer le groupe de munition"
@@ -223,7 +222,7 @@ msgid "Incendiary"
msgstr "Incendiaire"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:87
+#: lib/cannery_web/live/home_live.ex:95
msgid "Instance Information"
msgstr "Information de l’instance"
@@ -233,12 +232,12 @@ msgid "Invite Disabled"
msgstr "Invitation désactivée"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:118
+#: lib/cannery_web/live/home_live.ex:126
msgid "Invite Only"
msgstr "Uniquement sur invitation"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:69
+#: lib/cannery_web/components/topbar.ex:75
#: lib/cannery_web/live/invite_live/index.ex:41
#: lib/cannery_web/live/invite_live/index.html.heex:3
msgid "Invites"
@@ -266,11 +265,6 @@ msgstr "Localisation :"
msgid "Magazine, Clip, Ammo Box, etc"
msgstr "Chargeur, lame-chargeur, boite de munition, etc."
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:56
-msgid "Manage"
-msgstr "Gérer"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
#: lib/cannery_web/live/ammo_type_live/index.ex:73
@@ -293,7 +287,7 @@ msgstr "Ma superbe boite de munition"
#: lib/cannery_web/live/ammo_type_live/index.ex:51
#: lib/cannery_web/live/container_live/form_component.html.heex:20
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
-#: lib/cannery_web/live/tag_live/form_component.ex:50
+#: lib/cannery_web/live/tag_live/form_component.ex:75
msgid "Name"
msgstr "Nom"
@@ -332,11 +326,6 @@ msgstr "Aucun type de munition"
msgid "No ammo for this type"
msgstr "Aucune munition pour ce type"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:78
-msgid "No ammo groups in this container"
-msgstr "Aucun groupe de munition pour ce conteneur"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/container_live/index.html.heex:8
msgid "No containers"
@@ -382,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:82
+#: lib/cannery_web/live/ammo_group_live/index.ex:83
msgid "Price paid"
msgstr "Prix payé"
@@ -399,17 +388,17 @@ msgid "Primer type"
msgstr "Type d’amorce"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:117
+#: lib/cannery_web/live/home_live.ex:125
msgid "Public Signups"
msgstr "Enregistrements publics"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:65
+#: lib/cannery_web/live/home_live.ex:73
msgid "Secure:"
msgstr "Sécurisé :"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:68
+#: lib/cannery_web/live/home_live.ex:76
msgid "Self-host your own instance, or use an instance from someone you trust."
msgstr ""
"Auto-hébergez votre propre instance ou utilisez celle d’une personne à "
@@ -426,18 +415,13 @@ msgstr "Mettre illimité"
msgid "Settings"
msgstr "Paramètres"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.ex:39
-msgid "Show Ammo group"
-msgstr "Montrer le groupe de munition"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/show.ex:44
msgid "Show Ammo type"
msgstr "Montrer le type de munition"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:75
+#: lib/cannery_web/live/home_live.ex:83
msgid "Simple:"
msgstr "Simple :"
@@ -452,7 +436,7 @@ msgid "Stored in"
msgstr "Est stocké dans"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:38
+#: lib/cannery_web/components/topbar.ex:44
#: lib/cannery_web/live/tag_live/index.ex:32
#: lib/cannery_web/live/tag_live/index.html.heex:3
msgid "Tags"
@@ -466,20 +450,15 @@ msgstr ""
"organiser"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/tag_live/form_component.ex:60
+#: lib/cannery_web/live/tag_live/form_component.ex:85
msgid "Text color"
msgstr "Couleur du texte"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:44
+#: lib/cannery_web/live/home_live.ex:52
msgid "The self-hosted firearm tracker website"
msgstr "Le site web de suivi d’arme à feux auto-hébergé"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
-msgid "This ammo group is not in a container"
-msgstr "Ce groupe de munition n’est pas dans un conteneur"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
#: lib/cannery_web/live/ammo_type_live/index.ex:69
@@ -515,23 +494,23 @@ msgid "Uses left"
msgstr "Utilisations restantes"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:40
+#: lib/cannery_web/live/home_live.ex:48
msgid "Welcome to %{name}"
msgstr "Bienvenue à %{name}"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:69
+#: lib/cannery_web/live/home_live.ex:77
msgid "Your data stays with you, period"
msgstr "Vos données restent avec vous, point final"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/container_live/show.html.heex:49
+#: lib/cannery_web/live/container_live/show.html.heex:61
msgid "No tags for this container"
msgstr "Aucun tag pour ce conteneur"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:62
-#: lib/cannery_web/live/ammo_group_live/index.ex:84
+#: lib/cannery_web/components/topbar.ex:68
+#: lib/cannery_web/live/ammo_group_live/index.ex:85
msgid "Range"
msgstr "Portée"
@@ -574,11 +553,6 @@ msgstr "Désélectionner pour le stand"
msgid "Record shots"
msgstr "Tirs enregistrés"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
-msgid "Ammo Types"
-msgstr "Types de munition"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:49
msgid "Ammo groups"
@@ -624,7 +598,6 @@ msgstr "Enregistrements de tir"
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:32
-#: lib/cannery_web/live/ammo_group_live/show.ex:38
msgid "Move Ammo group"
msgstr "Déplacer le groupe de munition"
@@ -645,7 +618,7 @@ msgstr "Évènements de tir"
#, elixir-autogen, elixir-format
#: lib/cannery_web/components/ammo_group_card.ex:48
-#: lib/cannery_web/live/ammo_group_live/index.ex:118
+#: lib/cannery_web/live/ammo_group_live/index.ex:125
#: 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:114
@@ -710,12 +683,12 @@ msgid "New password"
msgstr "Nouveau mot de passe"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Stage"
msgstr "Sélectionné"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:141
+#: lib/cannery_web/live/ammo_group_live/index.ex:148
msgid "Unstage"
msgstr "Désélectionner"
@@ -749,7 +722,8 @@ msgid "Edit %{name} tags"
msgstr "Éditer les tags de %{name}"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/components/container_card.ex:55
+#: lib/cannery_web/live/container_live/show.html.heex:32
msgid "Rounds:"
msgstr "Cartouches :"
@@ -765,7 +739,7 @@ msgid "No cost information"
msgstr "Aucune information de prix"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:83
+#: lib/cannery_web/live/ammo_group_live/index.ex:84
msgid "% left"
msgstr "% restante"
@@ -851,7 +825,7 @@ msgid "Ammo types"
msgstr "Types de munition"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.ex:86
+#: lib/cannery_web/live/ammo_group_live/index.ex:87
msgid "Added on"
msgstr "Ajouté le"
@@ -891,21 +865,74 @@ msgid "Language"
msgstr "Langue"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:139
+#: lib/cannery_web/live/home_live.ex:147
msgid "Get involved!"
msgstr "Impliquez-vous !"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:156
+#: lib/cannery_web/live/home_live.ex:164
msgid "Help translate"
msgstr "Aider à la traduction"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:165
+#: lib/cannery_web/live/home_live.ex:173
msgid "Report bugs or request features"
msgstr "Remonter des bugs ou une demande de fonctionnalité"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:147
+#: lib/cannery_web/live/home_live.ex:155
msgid "View the source code"
msgstr "Voir le code source"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:56
+#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
+msgid "Catalog"
+msgstr ""
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:40
+msgid "Edit Ammo"
+msgstr "Éditer le type de munition"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:38
+msgid "Move Ammo"
+msgstr "Déplacer munition"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/container_live/show.html.heex:90
+msgid "No ammo in this container"
+msgstr "Aucun groupe de munition pour ce conteneur"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:39
+msgid "Show Ammo"
+msgstr "Montrer le type de munition"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
+msgid "This ammo is not in a container"
+msgstr "Ce groupe de munition n’est pas dans un conteneur"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/container_card.ex:50
+#: lib/cannery_web/live/container_live/show.html.heex:27
+msgid "Packs:"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/components/topbar.ex:24
+#: lib/cannery_web/live/home_live.ex:42
+msgid "Cannery logo"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/home_live.ex:44
+msgid "isn't he cute >:3"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/invite_live/form_component.html.heex:28
+msgid "Leave \"Uses left\" blank to make invite unlimited"
+msgstr ""
diff --git a/priv/gettext/fr/LC_MESSAGES/errors.po b/priv/gettext/fr/LC_MESSAGES/errors.po
index ef5ae36..d9409e0 100644
--- a/priv/gettext/fr/LC_MESSAGES/errors.po
+++ b/priv/gettext/fr/LC_MESSAGES/errors.po
@@ -24,7 +24,7 @@ msgstr ""
## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
-#: lib/cannery/containers.ex:122
+#: lib/cannery/containers.ex:140
msgid "Container must be empty before deleting"
msgstr "Le conteneur doit être vide pour être supprimé"
@@ -153,13 +153,13 @@ msgid "Tag could not be added"
msgstr "Le tag n’a pas pu être ajouté"
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:125
+#: lib/cannery/activity_log/shot_group.ex:115
msgid "Count must be at least 1"
msgstr "Le nombre doit être au moins égal à 1"
#, elixir-autogen, elixir-format
-#: lib/cannery/activity_log.ex:73
-#: lib/cannery/activity_log.ex:120
+#: lib/cannery/activity_log/shot_group.ex:74
+#: lib/cannery/activity_log/shot_group.ex:111
msgid "Count must be less than %{count}"
msgstr "La quantité doit être inférieur à %{count}"
@@ -177,11 +177,26 @@ msgid "Tag could not be removed"
msgstr "Le tag n’a pas pu être retiré"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:156
msgid "Could not parse number of copies"
msgstr "Impossible d'analyser le nombre de copies"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:141
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}"
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo.ex:407
+msgid "Invalid multiplier"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/ammo/ammo_group.ex:84
+msgid "Please select an ammo type and container"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery/activity_log/shot_group.ex:69
+msgid "Please select a valid user and ammo group"
+msgstr ""
diff --git a/priv/gettext/fr/LC_MESSAGES/prompts.po b/priv/gettext/fr/LC_MESSAGES/prompts.po
index 892dabf..5c210a9 100644
--- a/priv/gettext/fr/LC_MESSAGES/prompts.po
+++ b/priv/gettext/fr/LC_MESSAGES/prompts.po
@@ -24,10 +24,10 @@ msgstr ""
## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead.
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:64
-#: lib/cannery_web/live/container_live/form_component.ex:65
-#: lib/cannery_web/live/invite_live/form_component.ex:59
-#: lib/cannery_web/live/tag_live/form_component.ex:101
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
+#: lib/cannery_web/live/container_live/form_component.ex:85
+#: lib/cannery_web/live/invite_live/form_component.ex:80
+#: lib/cannery_web/live/tag_live/form_component.ex:126
msgid "%{name} created successfully"
msgstr "%{name} créé· avec succès"
@@ -62,10 +62,10 @@ msgid "%{name} updated succesfully"
msgstr "%{name} mis à jour avec succès"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:46
-#: lib/cannery_web/live/container_live/form_component.ex:47
-#: lib/cannery_web/live/invite_live/form_component.ex:41
-#: lib/cannery_web/live/tag_live/form_component.ex:83
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
+#: lib/cannery_web/live/container_live/form_component.ex:67
+#: lib/cannery_web/live/invite_live/form_component.ex:62
+#: lib/cannery_web/live/tag_live/form_component.ex:108
msgid "%{name} updated successfully"
msgstr "%{name} mis à jour avec succès"
@@ -78,15 +78,9 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:56
-#: lib/cannery_web/live/ammo_group_live/show.ex:50
msgid "Ammo group deleted succesfully"
msgstr "Groupe de munition supprimé avec succès"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
-msgid "Ammo group updated successfully"
-msgstr "Groupe de munition mis à jour avec succès"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/invite_live/index.html.heex:102
#: lib/cannery_web/live/invite_live/index.html.heex:131
@@ -95,9 +89,8 @@ msgstr ""
"Êtes-vous certain·e de supprimer %{email} ? Cette action est définitive !"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
#: 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:49
#: lib/cannery_web/live/tag_live/index.html.heex:38
msgid "Are you sure you want to delete %{name}?"
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
@@ -108,9 +101,8 @@ 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:177
+#: lib/cannery_web/live/ammo_group_live/index.ex:184
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
-#: lib/cannery_web/live/ammo_type_live/index.ex:140
msgid "Are you sure you want to delete this ammo?"
msgstr "Êtes-vous certain·e de supprimer cette munition ?"
@@ -120,7 +112,7 @@ msgid "Are you sure you want to delete your account?"
msgstr "Êtes-vous certain·e de supprimer votre compte ?"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:84
+#: lib/cannery_web/components/topbar.ex:90
msgid "Are you sure you want to log out?"
msgstr "Êtes-vous certain·e de vouloir vous déconnecter ?"
@@ -169,7 +161,7 @@ msgid "Please check your email to verify your account"
msgstr "Veuillez vérifier votre mél pour confirmer votre compte"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:96
+#: lib/cannery_web/live/home_live.ex:104
msgid "Register to setup %{name}"
msgstr "S’enregistrer pour mettre en place %{name}"
@@ -178,9 +170,9 @@ msgstr "S’enregistrer pour mettre en place %{name}"
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
#: lib/cannery_web/live/container_live/form_component.html.heex:52
-#: lib/cannery_web/live/invite_live/form_component.html.heex:30
+#: lib/cannery_web/live/invite_live/form_component.html.heex:33
#: lib/cannery_web/live/range_live/form_component.html.heex:42
-#: lib/cannery_web/live/tag_live/form_component.ex:68
+#: lib/cannery_web/live/tag_live/form_component.ex:93
msgid "Saving..."
msgstr "Sauvegarde en cours…"
@@ -212,7 +204,7 @@ msgid "Adding..."
msgstr "Ajout en cours…"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/add_shot_group_component.ex:68
+#: lib/cannery_web/components/add_shot_group_component.ex:56
msgid "Shots recorded successfully"
msgstr "Tirs enregistré avec succès"
@@ -221,11 +213,6 @@ msgstr "Tirs enregistré avec succès"
msgid "Are you sure you want to unstage this ammo?"
msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/range_live/index.ex:68
-msgid "Ammo group unstaged succesfully"
-msgstr "Groupe de munition désélectionner avec succès"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/show.ex:130
#: lib/cannery_web/live/range_live/index.ex:128
@@ -264,8 +251,8 @@ msgid "%{name} removed successfully"
msgstr "%{name} retiré avec succès"
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
msgid "You'll need to"
msgstr "Vous aurez besoin de"
@@ -274,13 +261,6 @@ msgstr "Vous aurez besoin de"
msgid "Creating..."
msgstr "Création en cours…"
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
-msgid "Ammo group created successfully"
-msgid_plural "Ammo groups created successfully"
-msgstr[0] "Groupe de munition créé avec succès"
-msgstr[1] "Groupes de munitions créé avec succès"
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
msgid "Are you sure you want to change your language?"
@@ -290,3 +270,31 @@ msgstr "Êtes-vous certain·e de vouloir changer votre langue ?"
#: lib/cannery_web/controllers/user_settings_controller.ex:65
msgid "Language updated successfully."
msgstr "Langue mise à jour avec succès."
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/show.ex:50
+msgid "Ammo deleted succesfully"
+msgstr "Groupe de munition supprimé avec succès"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/range_live/index.ex:68
+msgid "Ammo unstaged succesfully"
+msgstr "Groupe de munition désélectionner avec succès"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:118
+msgid "Ammo updated successfully"
+msgstr "Groupe de munition mis à jour avec succès"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
+msgid "Ammo added successfully"
+msgid_plural "Ammo added successfully"
+msgstr[0] "Groupe de munition mis à jour avec succès"
+msgstr[1] "Groupe de munition mis à jour avec succès"
+
+#, elixir-autogen, elixir-format, fuzzy
+#: lib/cannery_web/live/ammo_type_live/index.ex:140
+#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
+msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
+msgstr "Êtes-vous certain·e de supprimer %{name} ?"
diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot
index 5e69e09..f8a0286 100644
--- a/priv/gettext/prompts.pot
+++ b/priv/gettext/prompts.pot
@@ -11,10 +11,10 @@ msgid ""
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:64
-#: lib/cannery_web/live/container_live/form_component.ex:65
-#: lib/cannery_web/live/invite_live/form_component.ex:59
-#: lib/cannery_web/live/tag_live/form_component.ex:101
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:85
+#: lib/cannery_web/live/container_live/form_component.ex:85
+#: lib/cannery_web/live/invite_live/form_component.ex:80
+#: lib/cannery_web/live/tag_live/form_component.ex:126
msgid "%{name} created successfully"
msgstr ""
@@ -49,10 +49,10 @@ msgid "%{name} updated succesfully"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/form_component.ex:46
-#: lib/cannery_web/live/container_live/form_component.ex:47
-#: lib/cannery_web/live/invite_live/form_component.ex:41
-#: lib/cannery_web/live/tag_live/form_component.ex:83
+#: lib/cannery_web/live/ammo_type_live/form_component.ex:67
+#: lib/cannery_web/live/container_live/form_component.ex:67
+#: lib/cannery_web/live/invite_live/form_component.ex:62
+#: lib/cannery_web/live/tag_live/form_component.ex:108
msgid "%{name} updated successfully"
msgstr ""
@@ -63,15 +63,9 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/index.ex:56
-#: lib/cannery_web/live/ammo_group_live/show.ex:50
msgid "Ammo group deleted succesfully"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
-msgid "Ammo group updated successfully"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/invite_live/index.html.heex:102
#: lib/cannery_web/live/invite_live/index.html.heex:131
@@ -79,9 +73,8 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
#: 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:49
#: lib/cannery_web/live/tag_live/index.html.heex:38
msgid "Are you sure you want to delete %{name}?"
msgstr ""
@@ -92,9 +85,8 @@ 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:177
+#: lib/cannery_web/live/ammo_group_live/index.ex:184
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
-#: lib/cannery_web/live/ammo_type_live/index.ex:140
msgid "Are you sure you want to delete this ammo?"
msgstr ""
@@ -104,7 +96,7 @@ msgid "Are you sure you want to delete your account?"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/topbar.ex:84
+#: lib/cannery_web/components/topbar.ex:90
msgid "Are you sure you want to log out?"
msgstr ""
@@ -149,7 +141,7 @@ msgid "Please check your email to verify your account"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/home_live.ex:96
+#: lib/cannery_web/live/home_live.ex:104
msgid "Register to setup %{name}"
msgstr ""
@@ -158,9 +150,9 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
#: lib/cannery_web/live/container_live/form_component.html.heex:52
-#: lib/cannery_web/live/invite_live/form_component.html.heex:30
+#: lib/cannery_web/live/invite_live/form_component.html.heex:33
#: lib/cannery_web/live/range_live/form_component.html.heex:42
-#: lib/cannery_web/live/tag_live/form_component.ex:68
+#: lib/cannery_web/live/tag_live/form_component.ex:93
msgid "Saving..."
msgstr ""
@@ -190,7 +182,7 @@ msgid "Adding..."
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/components/add_shot_group_component.ex:68
+#: lib/cannery_web/components/add_shot_group_component.ex:56
msgid "Shots recorded successfully"
msgstr ""
@@ -199,11 +191,6 @@ msgstr ""
msgid "Are you sure you want to unstage this ammo?"
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/range_live/index.ex:68
-msgid "Ammo group unstaged succesfully"
-msgstr ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/live/ammo_group_live/show.ex:130
#: lib/cannery_web/live/range_live/index.ex:128
@@ -242,8 +229,8 @@ msgid "%{name} removed successfully"
msgstr ""
#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
-#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
+#: lib/cannery_web/live/ammo_group_live/index.html.heex:28
msgid "You'll need to"
msgstr ""
@@ -252,13 +239,6 @@ msgstr ""
msgid "Creating..."
msgstr ""
-#, elixir-autogen, elixir-format
-#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
-msgid "Ammo group created successfully"
-msgid_plural "Ammo groups created successfully"
-msgstr[0] ""
-msgstr[1] ""
-
#, elixir-autogen, elixir-format
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
msgid "Are you sure you want to change your language?"
@@ -268,3 +248,31 @@ msgstr ""
#: lib/cannery_web/controllers/user_settings_controller.ex:65
msgid "Language updated successfully."
msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/show.ex:50
+msgid "Ammo deleted succesfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/range_live/index.ex:68
+msgid "Ammo unstaged succesfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:118
+msgid "Ammo updated successfully"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_group_live/form_component.ex:177
+msgid "Ammo added successfully"
+msgid_plural "Ammo added successfully"
+msgstr[0] ""
+msgstr[1] ""
+
+#, elixir-autogen, elixir-format
+#: lib/cannery_web/live/ammo_type_live/index.ex:140
+#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
+msgid "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!"
+msgstr ""
diff --git a/test/cannery/activity_log_test.exs b/test/cannery/activity_log_test.exs
index d96c105..418c8f5 100644
--- a/test/cannery/activity_log_test.exs
+++ b/test/cannery/activity_log_test.exs
@@ -178,10 +178,5 @@ defmodule Cannery.ActivityLogTest do
ActivityLog.get_shot_group!(shot_group.id, current_user)
end
end
-
- test "change_shot_group/1 returns a shot_group changeset",
- %{shot_group: shot_group} do
- assert %Ecto.Changeset{} = ActivityLog.change_shot_group(shot_group)
- end
end
end
diff --git a/test/cannery/ammo_test.exs b/test/cannery/ammo_test.exs
index 2ae4e6e..64384a2 100644
--- a/test/cannery/ammo_test.exs
+++ b/test/cannery/ammo_test.exs
@@ -92,11 +92,6 @@ defmodule Cannery.AmmoTest do
assert {:ok, %AmmoType{}} = Ammo.delete_ammo_type(ammo_type, current_user)
assert_raise Ecto.NoResultsError, fn -> Ammo.get_ammo_type!(ammo_type.id, current_user) end
end
-
- test "change_ammo_type/1 returns a ammo_type changeset",
- %{ammo_type: ammo_type} do
- assert %Changeset{} = Ammo.change_ammo_type(ammo_type)
- end
end
describe "ammo_groups" do
@@ -180,9 +175,5 @@ defmodule Cannery.AmmoTest do
Ammo.get_ammo_group!(ammo_group.id, current_user)
end
end
-
- test "change_ammo_group/1 returns a ammo_group changeset", %{ammo_group: ammo_group} do
- assert %Changeset{} = Ammo.change_ammo_group(ammo_group)
- end
end
end
diff --git a/test/cannery/containers_test.exs b/test/cannery/containers_test.exs
index e54ff29..022e1a5 100644
--- a/test/cannery/containers_test.exs
+++ b/test/cannery/containers_test.exs
@@ -87,9 +87,5 @@ defmodule Cannery.ContainersTest do
Containers.get_container!(container.id, current_user)
end
end
-
- test "change_container/1 returns a container changeset", %{container: container} do
- assert %Changeset{} = Containers.change_container(container)
- end
end
end
diff --git a/test/cannery/invites_test.exs b/test/cannery/invites_test.exs
index 4084dfd..a367800 100644
--- a/test/cannery/invites_test.exs
+++ b/test/cannery/invites_test.exs
@@ -68,9 +68,5 @@ defmodule Cannery.InvitesTest do
assert {:ok, %Invite{}} = Invites.delete_invite(invite, current_user)
assert_raise Ecto.NoResultsError, fn -> Invites.get_invite!(invite.id, current_user) end
end
-
- test "change_invite/1 returns a invite changeset", %{invite: invite} do
- assert %Changeset{} = Invites.change_invite(invite)
- end
end
end
diff --git a/test/cannery/tags_test.exs b/test/cannery/tags_test.exs
index 73306b3..748f476 100644
--- a/test/cannery/tags_test.exs
+++ b/test/cannery/tags_test.exs
@@ -68,9 +68,5 @@ defmodule Cannery.TagsTest do
assert {:ok, %Tag{}} = Tags.delete_tag(tag, current_user)
assert_raise Ecto.NoResultsError, fn -> Tags.get_tag!(tag.id, current_user) end
end
-
- test "change_tag/1 returns a tag changeset", %{tag: tag} do
- assert %Changeset{} = Tags.change_tag(tag)
- end
end
end
diff --git a/test/cannery_web/live/ammo_group_live_test.exs b/test/cannery_web/live/ammo_group_live_test.exs
index b3de49a..2a53b2f 100644
--- a/test/cannery_web/live/ammo_group_live_test.exs
+++ b/test/cannery_web/live/ammo_group_live_test.exs
@@ -35,15 +35,15 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
{:ok, _index_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index))
ammo_group = ammo_group |> Repo.preload(:ammo_type)
- assert html =~ gettext("Ammo groups")
+ assert html =~ gettext("Ammo")
assert html =~ ammo_group.ammo_type.name
end
test "saves a single new ammo_group", %{conn: conn} do
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
- assert index_live |> element("a", dgettext("actions", "New Ammo group")) |> render_click() =~
- gettext("New Ammo group")
+ assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~
+ gettext("Add Ammo")
assert_patch(index_live, Routes.ammo_group_index_path(conn, :new))
@@ -57,7 +57,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|> render_submit()
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
- assert html =~ dgettext("prompts", "Ammo group created successfully")
+ assert html =~ dgettext("prompts", "Ammo added successfully")
assert html =~ "42"
end
@@ -66,8 +66,8 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
- assert index_live |> element("a", dgettext("actions", "New Ammo group")) |> render_click() =~
- gettext("New Ammo group")
+ assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~
+ gettext("Add Ammo")
assert_patch(index_live, Routes.ammo_group_index_path(conn, :new))
@@ -83,15 +83,15 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|> render_submit()
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
- assert html =~ dgettext("prompts", "Ammo groups created successfully")
+ assert html =~ dgettext("prompts", "Ammo added successfully")
assert Ammo.list_ammo_groups(current_user) |> Enum.count() == multiplier + 1
end
test "does not save invalid number of new ammo_groups", %{conn: conn} do
{:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index))
- assert index_live |> element("a", dgettext("actions", "New Ammo group")) |> render_click() =~
- gettext("New Ammo group")
+ assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~
+ gettext("Add Ammo")
assert_patch(index_live, Routes.ammo_group_index_path(conn, :new))
@@ -150,7 +150,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
assert index_live
|> element("[data-qa=\"edit-#{ammo_group.id}\"]")
|> render_click() =~
- gettext("Edit Ammo group")
+ gettext("Edit Ammo")
assert_patch(index_live, Routes.ammo_group_index_path(conn, :edit, ammo_group))
@@ -164,7 +164,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|> render_submit()
|> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index))
- assert html =~ dgettext("prompts", "Ammo group updated successfully")
+ assert html =~ dgettext("prompts", "Ammo updated successfully")
assert html =~ "43"
end
@@ -186,7 +186,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
{:ok, _show_live, html} = live(conn, Routes.ammo_group_show_path(conn, :show, ammo_group))
ammo_group = ammo_group |> Repo.preload(:ammo_type)
- assert html =~ gettext("Show Ammo group")
+ assert html =~ gettext("Show Ammo")
assert html =~ ammo_group.ammo_type.name
end
@@ -196,7 +196,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
assert show_live
|> element("[data-qa=\"edit\"]")
|> render_click() =~
- gettext("Edit Ammo group")
+ gettext("Edit Ammo")
assert_patch(show_live, Routes.ammo_group_show_path(conn, :edit, ammo_group))
@@ -210,7 +210,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|> render_submit()
|> follow_redirect(conn, Routes.ammo_group_show_path(conn, :show, ammo_group))
- assert html =~ dgettext("prompts", "Ammo group updated successfully")
+ assert html =~ dgettext("prompts", "Ammo updated successfully")
assert html =~ "some updated notes"
end