Compare commits
	
		
			7 Commits
		
	
	
		
			0cae7c2940
			...
			32801828fa
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 32801828fa | |||
| 6ed3312ea8 | |||
| b122253b9b | |||
| a68a16bf06 | |||
| 4b6d0952f8 | |||
| 0544b58ab6 | |||
| 6d26103784 | 
| @@ -1,5 +1,7 @@ | |||||||
| # v0.9.1 | # v0.9.1 | ||||||
| - Rename ammo_type's type to class to avoid confusion | - Rename ammo type's "type" to "class" to avoid confusion | ||||||
|  | - Fixes ammo type search | ||||||
|  | - Fixes shot records table disappearing after selecting an empty ammo class | ||||||
| - Code quality improvements | - Code quality improvements | ||||||
|  |  | ||||||
| # v0.9.0 | # v0.9.0 | ||||||
| @@ -76,8 +78,8 @@ | |||||||
| - Add shading to table component | - Add shading to table component | ||||||
| - Fix chart to sum by day | - Fix chart to sum by day | ||||||
| - Fix whitespace when copying invite url | - Fix whitespace when copying invite url | ||||||
| - Make ammo type show page also display ammo groups as table | - Make ammo type show page also display packs as table | ||||||
| - Make container show page also display ammo groups as table | - Make container show page also display packs as table | ||||||
| - Display CPR for ammo packs | - Display CPR for ammo packs | ||||||
| - Add original count for ammo packs | - Add original count for ammo packs | ||||||
| - Add ammo pack CPR and original count to json export | - Add ammo pack CPR and original count to json export | ||||||
|   | |||||||
| @@ -17,8 +17,8 @@ If you're multilingual, this project can use your translations! Visit | |||||||
|   functions as short as possible while keeping variable names descriptive! For |   functions as short as possible while keeping variable names descriptive! For | ||||||
|   instance, use inline `do:` blocks for short functions and make your aliases as |   instance, use inline `do:` blocks for short functions and make your aliases as | ||||||
|   short as possible without introducing ambiguity. |   short as possible without introducing ambiguity. | ||||||
|   - I.e. since there's only one `AmmoGroup` in the app, please alias |   - I.e. since there's only one `Pack` in the app, please alias | ||||||
|     `AmmoGroup.t()` instead of using `Cannery.Ammo.AmmoGroup.t()` |     `Pack.t()` instead of using `Cannery.Ammo.Pack.t()` | ||||||
| - Use pipelines when possible. If only calling a single method, a pipeline isn't | - Use pipelines when possible. If only calling a single method, a pipeline isn't | ||||||
|   strictly necessary but still encouraged for future modification. |   strictly necessary but still encouraged for future modification. | ||||||
| - Please add typespecs to your functions! Even your private functions may be | - Please add typespecs to your functions! Even your private functions may be | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ defmodule Cannery.ActivityLog do | |||||||
|   """ |   """ | ||||||
|  |  | ||||||
|   import Ecto.Query, warn: false |   import Ecto.Query, warn: false | ||||||
|   alias Cannery.Ammo.{AmmoGroup, AmmoType} |   alias Cannery.Ammo.{AmmoType, Pack} | ||||||
|   alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Repo} |   alias Cannery.{Accounts.User, ActivityLog.ShotGroup, Repo} | ||||||
|   alias Ecto.{Multi, Queryable} |   alias Ecto.{Multi, Queryable} | ||||||
|  |  | ||||||
| @@ -29,9 +29,9 @@ defmodule Cannery.ActivityLog do | |||||||
|   def list_shot_groups(search \\ nil, type, %{id: user_id}) do |   def list_shot_groups(search \\ nil, type, %{id: user_id}) do | ||||||
|     from(sg in ShotGroup, |     from(sg in ShotGroup, | ||||||
|       as: :sg, |       as: :sg, | ||||||
|       left_join: ag in AmmoGroup, |       left_join: ag in Pack, | ||||||
|       as: :ag, |       as: :ag, | ||||||
|       on: sg.ammo_group_id == ag.id, |       on: sg.pack_id == ag.id, | ||||||
|       left_join: at in AmmoType, |       left_join: at in AmmoType, | ||||||
|       as: :at, |       as: :at, | ||||||
|       on: ag.ammo_type_id == at.id, |       on: ag.ammo_type_id == at.id, | ||||||
| @@ -92,14 +92,33 @@ defmodule Cannery.ActivityLog do | |||||||
|  |  | ||||||
|   defp list_shot_groups_filter_type(query, _all), do: query |   defp list_shot_groups_filter_type(query, _all), do: query | ||||||
|  |  | ||||||
|   @spec list_shot_groups_for_ammo_group(AmmoGroup.t(), User.t()) :: [ShotGroup.t()] |   @doc """ | ||||||
|   def list_shot_groups_for_ammo_group( |   Returns a count of shot records. | ||||||
|         %AmmoGroup{id: ammo_group_id, user_id: user_id}, |  | ||||||
|  |   ## Examples | ||||||
|  |  | ||||||
|  |       iex> get_shot_record_count!(%User{id: 123}) | ||||||
|  |       3 | ||||||
|  |  | ||||||
|  |   """ | ||||||
|  |   @spec get_shot_record_count!(User.t()) :: integer() | ||||||
|  |   def get_shot_record_count!(%User{id: user_id}) do | ||||||
|  |     Repo.one( | ||||||
|  |       from sg in ShotGroup, | ||||||
|  |         where: sg.user_id == ^user_id, | ||||||
|  |         select: count(sg.id), | ||||||
|  |         distinct: true | ||||||
|  |     ) || 0 | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   @spec list_shot_groups_for_pack(Pack.t(), User.t()) :: [ShotGroup.t()] | ||||||
|  |   def list_shot_groups_for_pack( | ||||||
|  |         %Pack{id: pack_id, user_id: user_id}, | ||||||
|         %User{id: user_id} |         %User{id: user_id} | ||||||
|       ) do |       ) do | ||||||
|     Repo.all( |     Repo.all( | ||||||
|       from sg in ShotGroup, |       from sg in ShotGroup, | ||||||
|         where: sg.ammo_group_id == ^ammo_group_id, |         where: sg.pack_id == ^pack_id, | ||||||
|         where: sg.user_id == ^user_id |         where: sg.user_id == ^user_id | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| @@ -140,31 +159,31 @@ defmodule Cannery.ActivityLog do | |||||||
|       {:error, %Ecto.Changeset{}} |       {:error, %Ecto.Changeset{}} | ||||||
|  |  | ||||||
|   """ |   """ | ||||||
|   @spec create_shot_group(attrs :: map(), User.t(), AmmoGroup.t()) :: |   @spec create_shot_group(attrs :: map(), User.t(), Pack.t()) :: | ||||||
|           {:ok, ShotGroup.t()} | {:error, ShotGroup.changeset() | nil} |           {:ok, ShotGroup.t()} | {:error, ShotGroup.changeset() | nil} | ||||||
|   def create_shot_group(attrs, user, ammo_group) do |   def create_shot_group(attrs, user, pack) do | ||||||
|     Multi.new() |     Multi.new() | ||||||
|     |> Multi.insert( |     |> Multi.insert( | ||||||
|       :create_shot_group, |       :create_shot_group, | ||||||
|       %ShotGroup{} |> ShotGroup.create_changeset(user, ammo_group, attrs) |       %ShotGroup{} |> ShotGroup.create_changeset(user, pack, attrs) | ||||||
|     ) |     ) | ||||||
|     |> Multi.run( |     |> Multi.run( | ||||||
|       :ammo_group, |       :pack, | ||||||
|       fn _repo, %{create_shot_group: %{ammo_group_id: ammo_group_id, user_id: user_id}} -> |       fn _repo, %{create_shot_group: %{pack_id: pack_id, user_id: user_id}} -> | ||||||
|         ammo_group = |         pack = | ||||||
|           Repo.one( |           Repo.one( | ||||||
|             from ag in AmmoGroup, |             from ag in Pack, | ||||||
|               where: ag.id == ^ammo_group_id, |               where: ag.id == ^pack_id, | ||||||
|               where: ag.user_id == ^user_id |               where: ag.user_id == ^user_id | ||||||
|           ) |           ) | ||||||
|  |  | ||||||
|         {:ok, ammo_group} |         {:ok, pack} | ||||||
|       end |       end | ||||||
|     ) |     ) | ||||||
|     |> Multi.update( |     |> Multi.update( | ||||||
|       :update_ammo_group, |       :update_pack, | ||||||
|       fn %{create_shot_group: %{count: shot_group_count}, ammo_group: %{count: ammo_group_count}} -> |       fn %{create_shot_group: %{count: shot_group_count}, pack: %{count: pack_count}} -> | ||||||
|         ammo_group |> AmmoGroup.range_changeset(%{"count" => ammo_group_count - shot_group_count}) |         pack |> Pack.range_changeset(%{"count" => pack_count - shot_group_count}) | ||||||
|       end |       end | ||||||
|     ) |     ) | ||||||
|     |> Repo.transaction() |     |> Repo.transaction() | ||||||
| @@ -200,21 +219,20 @@ defmodule Cannery.ActivityLog do | |||||||
|       shot_group |> ShotGroup.update_changeset(user, attrs) |       shot_group |> ShotGroup.update_changeset(user, attrs) | ||||||
|     ) |     ) | ||||||
|     |> Multi.run( |     |> Multi.run( | ||||||
|       :ammo_group, |       :pack, | ||||||
|       fn repo, %{update_shot_group: %{ammo_group_id: ammo_group_id, user_id: user_id}} -> |       fn repo, %{update_shot_group: %{pack_id: pack_id, user_id: user_id}} -> | ||||||
|         {:ok, |         {:ok, repo.one(from ag in Pack, where: ag.id == ^pack_id and ag.user_id == ^user_id)} | ||||||
|          repo.one(from ag in AmmoGroup, where: ag.id == ^ammo_group_id and ag.user_id == ^user_id)} |  | ||||||
|       end |       end | ||||||
|     ) |     ) | ||||||
|     |> Multi.update( |     |> Multi.update( | ||||||
|       :update_ammo_group, |       :update_pack, | ||||||
|       fn %{ |       fn %{ | ||||||
|            update_shot_group: %{count: new_count}, |            update_shot_group: %{count: new_count}, | ||||||
|            ammo_group: %{count: ammo_group_count} = ammo_group |            pack: %{count: pack_count} = pack | ||||||
|          } -> |          } -> | ||||||
|         shot_diff_to_add = new_count - count |         shot_diff_to_add = new_count - count | ||||||
|         new_ammo_group_count = ammo_group_count - shot_diff_to_add |         new_pack_count = pack_count - shot_diff_to_add | ||||||
|         ammo_group |> AmmoGroup.range_changeset(%{"count" => new_ammo_group_count}) |         pack |> Pack.range_changeset(%{"count" => new_pack_count}) | ||||||
|       end |       end | ||||||
|     ) |     ) | ||||||
|     |> Repo.transaction() |     |> Repo.transaction() | ||||||
| @@ -246,20 +264,19 @@ defmodule Cannery.ActivityLog do | |||||||
|     Multi.new() |     Multi.new() | ||||||
|     |> Multi.delete(:delete_shot_group, shot_group) |     |> Multi.delete(:delete_shot_group, shot_group) | ||||||
|     |> Multi.run( |     |> Multi.run( | ||||||
|       :ammo_group, |       :pack, | ||||||
|       fn repo, %{delete_shot_group: %{ammo_group_id: ammo_group_id, user_id: user_id}} -> |       fn repo, %{delete_shot_group: %{pack_id: pack_id, user_id: user_id}} -> | ||||||
|         {:ok, |         {:ok, repo.one(from ag in Pack, where: ag.id == ^pack_id and ag.user_id == ^user_id)} | ||||||
|          repo.one(from ag in AmmoGroup, where: ag.id == ^ammo_group_id and ag.user_id == ^user_id)} |  | ||||||
|       end |       end | ||||||
|     ) |     ) | ||||||
|     |> Multi.update( |     |> Multi.update( | ||||||
|       :update_ammo_group, |       :update_pack, | ||||||
|       fn %{ |       fn %{ | ||||||
|            delete_shot_group: %{count: count}, |            delete_shot_group: %{count: count}, | ||||||
|            ammo_group: %{count: ammo_group_count} = ammo_group |            pack: %{count: pack_count} = pack | ||||||
|          } -> |          } -> | ||||||
|         new_ammo_group_count = ammo_group_count + count |         new_pack_count = pack_count + count | ||||||
|         ammo_group |> AmmoGroup.range_changeset(%{"count" => new_ammo_group_count}) |         pack |> Pack.range_changeset(%{"count" => new_pack_count}) | ||||||
|       end |       end | ||||||
|     ) |     ) | ||||||
|     |> Repo.transaction() |     |> Repo.transaction() | ||||||
| @@ -271,60 +288,60 @@ defmodule Cannery.ActivityLog do | |||||||
|   end |   end | ||||||
|  |  | ||||||
|   @doc """ |   @doc """ | ||||||
|   Returns the number of shot rounds for an ammo group |   Returns the number of shot rounds for a pack | ||||||
|   """ |   """ | ||||||
|   @spec get_used_count(AmmoGroup.t(), User.t()) :: non_neg_integer() |   @spec get_used_count(Pack.t(), User.t()) :: non_neg_integer() | ||||||
|   def get_used_count(%AmmoGroup{id: ammo_group_id} = ammo_group, user) do |   def get_used_count(%Pack{id: pack_id} = pack, user) do | ||||||
|     [ammo_group] |     [pack] | ||||||
|     |> get_used_counts(user) |     |> get_used_counts(user) | ||||||
|     |> Map.get(ammo_group_id, 0) |     |> Map.get(pack_id, 0) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   @doc """ |   @doc """ | ||||||
|   Returns the number of shot rounds for multiple ammo groups |   Returns the number of shot rounds for multiple packs | ||||||
|   """ |   """ | ||||||
|   @spec get_used_counts([AmmoGroup.t()], User.t()) :: |   @spec get_used_counts([Pack.t()], User.t()) :: | ||||||
|           %{optional(AmmoGroup.id()) => non_neg_integer()} |           %{optional(Pack.id()) => non_neg_integer()} | ||||||
|   def get_used_counts(ammo_groups, %User{id: user_id}) do |   def get_used_counts(packs, %User{id: user_id}) do | ||||||
|     ammo_group_ids = |     pack_ids = | ||||||
|       ammo_groups |       packs | ||||||
|       |> Enum.map(fn %{id: ammo_group_id} -> ammo_group_id end) |       |> Enum.map(fn %{id: pack_id} -> pack_id end) | ||||||
|  |  | ||||||
|     Repo.all( |     Repo.all( | ||||||
|       from sg in ShotGroup, |       from sg in ShotGroup, | ||||||
|         where: sg.ammo_group_id in ^ammo_group_ids, |         where: sg.pack_id in ^pack_ids, | ||||||
|         where: sg.user_id == ^user_id, |         where: sg.user_id == ^user_id, | ||||||
|         group_by: sg.ammo_group_id, |         group_by: sg.pack_id, | ||||||
|         select: {sg.ammo_group_id, sum(sg.count)} |         select: {sg.pack_id, sum(sg.count)} | ||||||
|     ) |     ) | ||||||
|     |> Map.new() |     |> Map.new() | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   @doc """ |   @doc """ | ||||||
|   Returns the last entered shot group date for an ammo group |   Returns the last entered shot group date for a pack | ||||||
|   """ |   """ | ||||||
|   @spec get_last_used_date(AmmoGroup.t(), User.t()) :: Date.t() | nil |   @spec get_last_used_date(Pack.t(), User.t()) :: Date.t() | nil | ||||||
|   def get_last_used_date(%AmmoGroup{id: ammo_group_id} = ammo_group, user) do |   def get_last_used_date(%Pack{id: pack_id} = pack, user) do | ||||||
|     [ammo_group] |     [pack] | ||||||
|     |> get_last_used_dates(user) |     |> get_last_used_dates(user) | ||||||
|     |> Map.get(ammo_group_id) |     |> Map.get(pack_id) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   @doc """ |   @doc """ | ||||||
|   Returns the last entered shot group date for an ammo group |   Returns the last entered shot group date for a pack | ||||||
|   """ |   """ | ||||||
|   @spec get_last_used_dates([AmmoGroup.t()], User.t()) :: %{optional(AmmoGroup.id()) => Date.t()} |   @spec get_last_used_dates([Pack.t()], User.t()) :: %{optional(Pack.id()) => Date.t()} | ||||||
|   def get_last_used_dates(ammo_groups, %User{id: user_id}) do |   def get_last_used_dates(packs, %User{id: user_id}) do | ||||||
|     ammo_group_ids = |     pack_ids = | ||||||
|       ammo_groups |       packs | ||||||
|       |> Enum.map(fn %AmmoGroup{id: ammo_group_id, user_id: ^user_id} -> ammo_group_id end) |       |> Enum.map(fn %Pack{id: pack_id, user_id: ^user_id} -> pack_id end) | ||||||
|  |  | ||||||
|     Repo.all( |     Repo.all( | ||||||
|       from sg in ShotGroup, |       from sg in ShotGroup, | ||||||
|         where: sg.ammo_group_id in ^ammo_group_ids, |         where: sg.pack_id in ^pack_ids, | ||||||
|         where: sg.user_id == ^user_id, |         where: sg.user_id == ^user_id, | ||||||
|         group_by: sg.ammo_group_id, |         group_by: sg.pack_id, | ||||||
|         select: {sg.ammo_group_id, max(sg.date)} |         select: {sg.pack_id, max(sg.date)} | ||||||
|     ) |     ) | ||||||
|     |> Map.new() |     |> Map.new() | ||||||
|   end |   end | ||||||
| @@ -367,9 +384,9 @@ defmodule Cannery.ActivityLog do | |||||||
|       |> Enum.map(fn %AmmoType{id: ammo_type_id, user_id: ^user_id} -> ammo_type_id end) |       |> Enum.map(fn %AmmoType{id: ammo_type_id, user_id: ^user_id} -> ammo_type_id end) | ||||||
|  |  | ||||||
|     Repo.all( |     Repo.all( | ||||||
|       from ag in AmmoGroup, |       from ag in Pack, | ||||||
|         left_join: sg in ShotGroup, |         left_join: sg in ShotGroup, | ||||||
|         on: ag.id == sg.ammo_group_id, |         on: ag.id == sg.pack_id, | ||||||
|         where: ag.ammo_type_id in ^ammo_type_ids, |         where: ag.ammo_type_id in ^ammo_type_ids, | ||||||
|         where: not (sg.count |> is_nil()), |         where: not (sg.count |> is_nil()), | ||||||
|         group_by: ag.ammo_type_id, |         group_by: ag.ammo_type_id, | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ defmodule Cannery.ActivityLog.ShotGroup do | |||||||
|   use Ecto.Schema |   use Ecto.Schema | ||||||
|   import CanneryWeb.Gettext |   import CanneryWeb.Gettext | ||||||
|   import Ecto.Changeset |   import Ecto.Changeset | ||||||
|   alias Cannery.{Accounts.User, Ammo, Ammo.AmmoGroup} |   alias Cannery.{Accounts.User, Ammo, Ammo.Pack} | ||||||
|   alias Ecto.{Changeset, UUID} |   alias Ecto.{Changeset, UUID} | ||||||
|  |  | ||||||
|   @derive {Jason.Encoder, |   @derive {Jason.Encoder, | ||||||
| @@ -15,7 +15,7 @@ defmodule Cannery.ActivityLog.ShotGroup do | |||||||
|              :count, |              :count, | ||||||
|              :date, |              :date, | ||||||
|              :notes, |              :notes, | ||||||
|              :ammo_group_id |              :pack_id | ||||||
|            ]} |            ]} | ||||||
|   @primary_key {:id, :binary_id, autogenerate: true} |   @primary_key {:id, :binary_id, autogenerate: true} | ||||||
|   @foreign_key_type :binary_id |   @foreign_key_type :binary_id | ||||||
| @@ -25,7 +25,7 @@ defmodule Cannery.ActivityLog.ShotGroup do | |||||||
|     field :notes, :string |     field :notes, :string | ||||||
|  |  | ||||||
|     field :user_id, :binary_id |     field :user_id, :binary_id | ||||||
|     field :ammo_group_id, :binary_id |     field :pack_id, :binary_id | ||||||
|  |  | ||||||
|     timestamps() |     timestamps() | ||||||
|   end |   end | ||||||
| @@ -35,7 +35,7 @@ defmodule Cannery.ActivityLog.ShotGroup do | |||||||
|           count: integer, |           count: integer, | ||||||
|           notes: String.t() | nil, |           notes: String.t() | nil, | ||||||
|           date: Date.t() | nil, |           date: Date.t() | nil, | ||||||
|           ammo_group_id: AmmoGroup.id(), |           pack_id: Pack.id(), | ||||||
|           user_id: User.id(), |           user_id: User.id(), | ||||||
|           inserted_at: NaiveDateTime.t(), |           inserted_at: NaiveDateTime.t(), | ||||||
|           updated_at: NaiveDateTime.t() |           updated_at: NaiveDateTime.t() | ||||||
| @@ -48,46 +48,44 @@ defmodule Cannery.ActivityLog.ShotGroup do | |||||||
|   @spec create_changeset( |   @spec create_changeset( | ||||||
|           new_shot_group(), |           new_shot_group(), | ||||||
|           User.t() | any(), |           User.t() | any(), | ||||||
|           AmmoGroup.t() | any(), |           Pack.t() | any(), | ||||||
|           attrs :: map() |           attrs :: map() | ||||||
|         ) :: changeset() |         ) :: changeset() | ||||||
|   def create_changeset( |   def create_changeset( | ||||||
|         shot_group, |         shot_group, | ||||||
|         %User{id: user_id}, |         %User{id: user_id}, | ||||||
|         %AmmoGroup{id: ammo_group_id, user_id: user_id} = ammo_group, |         %Pack{id: pack_id, user_id: user_id} = pack, | ||||||
|         attrs |         attrs | ||||||
|       ) do |       ) do | ||||||
|     shot_group |     shot_group | ||||||
|     |> change(user_id: user_id) |     |> change(user_id: user_id) | ||||||
|     |> change(ammo_group_id: ammo_group_id) |     |> change(pack_id: pack_id) | ||||||
|     |> cast(attrs, [:count, :notes, :date]) |     |> cast(attrs, [:count, :notes, :date]) | ||||||
|     |> validate_length(:notes, max: 255) |     |> validate_length(:notes, max: 255) | ||||||
|     |> validate_create_shot_group_count(ammo_group) |     |> validate_create_shot_group_count(pack) | ||||||
|     |> validate_required([:date, :ammo_group_id, :user_id]) |     |> validate_required([:date, :pack_id, :user_id]) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   def create_changeset(shot_group, _invalid_user, _invalid_ammo_group, attrs) do |   def create_changeset(shot_group, _invalid_user, _invalid_pack, attrs) do | ||||||
|     shot_group |     shot_group | ||||||
|     |> cast(attrs, [:count, :notes, :date]) |     |> cast(attrs, [:count, :notes, :date]) | ||||||
|     |> validate_length(:notes, max: 255) |     |> validate_length(:notes, max: 255) | ||||||
|     |> validate_required([:ammo_group_id, :user_id]) |     |> validate_required([:pack_id, :user_id]) | ||||||
|     |> add_error(:invalid, dgettext("errors", "Please select a valid user and ammo pack")) |     |> add_error(:invalid, dgettext("errors", "Please select a valid user and ammo pack")) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   defp validate_create_shot_group_count(changeset, %AmmoGroup{count: ammo_group_count}) do |   defp validate_create_shot_group_count(changeset, %Pack{count: pack_count}) do | ||||||
|     case changeset |> Changeset.get_field(:count) do |     case changeset |> Changeset.get_field(:count) do | ||||||
|       nil -> |       nil -> | ||||||
|         changeset |> Changeset.add_error(:ammo_left, dgettext("errors", "can't be blank")) |         changeset |> Changeset.add_error(:ammo_left, dgettext("errors", "can't be blank")) | ||||||
|  |  | ||||||
|       count when count > ammo_group_count -> |       count when count > pack_count -> | ||||||
|         changeset |         changeset | ||||||
|         |> Changeset.add_error(:ammo_left, dgettext("errors", "Ammo left must be at least 0")) |         |> Changeset.add_error(:ammo_left, dgettext("errors", "Ammo left must be at least 0")) | ||||||
|  |  | ||||||
|       count when count <= 0 -> |       count when count <= 0 -> | ||||||
|         error = |         error = | ||||||
|           dgettext("errors", "Ammo left can be at most %{count} rounds", |           dgettext("errors", "Ammo left can be at most %{count} rounds", count: pack_count - 1) | ||||||
|             count: ammo_group_count - 1 |  | ||||||
|           ) |  | ||||||
|  |  | ||||||
|         changeset |> Changeset.add_error(:ammo_left, error) |         changeset |> Changeset.add_error(:ammo_left, error) | ||||||
|  |  | ||||||
| @@ -109,17 +107,16 @@ defmodule Cannery.ActivityLog.ShotGroup do | |||||||
|  |  | ||||||
|   defp validate_update_shot_group_count( |   defp validate_update_shot_group_count( | ||||||
|          changeset, |          changeset, | ||||||
|          %__MODULE__{ammo_group_id: ammo_group_id, count: count}, |          %__MODULE__{pack_id: pack_id, count: count}, | ||||||
|          user |          user | ||||||
|        ) do |        ) do | ||||||
|     %{count: ammo_group_count} = Ammo.get_ammo_group!(ammo_group_id, user) |     %{count: pack_count} = Ammo.get_pack!(pack_id, user) | ||||||
|  |  | ||||||
|     new_shot_group_count = changeset |> Changeset.get_field(:count) |     new_shot_group_count = changeset |> Changeset.get_field(:count) | ||||||
|     shot_diff_to_add = new_shot_group_count - count |     shot_diff_to_add = new_shot_group_count - count | ||||||
|  |  | ||||||
|     if shot_diff_to_add > ammo_group_count do |     if shot_diff_to_add > pack_count do | ||||||
|       error = |       error = dgettext("errors", "Count can be at most %{count} shots", count: pack_count + count) | ||||||
|         dgettext("errors", "Count can be at most %{count} shots", count: ammo_group_count + count) |  | ||||||
|  |  | ||||||
|       changeset |> Changeset.add_error(:count, error) |       changeset |> Changeset.add_error(:count, error) | ||||||
|     else |     else | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -8,7 +8,7 @@ defmodule Cannery.Ammo.AmmoType do | |||||||
|   use Ecto.Schema |   use Ecto.Schema | ||||||
|   import Ecto.Changeset |   import Ecto.Changeset | ||||||
|   alias Cannery.Accounts.User |   alias Cannery.Accounts.User | ||||||
|   alias Cannery.Ammo.AmmoGroup |   alias Cannery.Ammo.Pack | ||||||
|   alias Ecto.{Changeset, UUID} |   alias Ecto.{Changeset, UUID} | ||||||
|  |  | ||||||
|   @derive {Jason.Encoder, |   @derive {Jason.Encoder, | ||||||
| @@ -83,7 +83,7 @@ defmodule Cannery.Ammo.AmmoType do | |||||||
|     field :dram_equivalent, :string |     field :dram_equivalent, :string | ||||||
|  |  | ||||||
|     field :user_id, :binary_id |     field :user_id, :binary_id | ||||||
|     has_many :ammo_groups, AmmoGroup |     has_many :packs, Pack | ||||||
|  |  | ||||||
|     timestamps() |     timestamps() | ||||||
|   end |   end | ||||||
| @@ -123,7 +123,7 @@ defmodule Cannery.Ammo.AmmoType do | |||||||
|           manufacturer: String.t() | nil, |           manufacturer: String.t() | nil, | ||||||
|           upc: String.t() | nil, |           upc: String.t() | nil, | ||||||
|           user_id: User.id(), |           user_id: User.id(), | ||||||
|           ammo_groups: [AmmoGroup.t()] | nil, |           packs: [Pack.t()] | nil, | ||||||
|           inserted_at: NaiveDateTime.t(), |           inserted_at: NaiveDateTime.t(), | ||||||
|           updated_at: NaiveDateTime.t() |           updated_at: NaiveDateTime.t() | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| defmodule Cannery.Ammo.AmmoGroup do | defmodule Cannery.Ammo.Pack do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   A group of a certain ammunition type. |   A group of a certain ammunition type. | ||||||
| 
 | 
 | ||||||
| @@ -25,7 +25,7 @@ defmodule Cannery.Ammo.AmmoGroup do | |||||||
|            ]} |            ]} | ||||||
|   @primary_key {:id, :binary_id, autogenerate: true} |   @primary_key {:id, :binary_id, autogenerate: true} | ||||||
|   @foreign_key_type :binary_id |   @foreign_key_type :binary_id | ||||||
|   schema "ammo_groups" do |   schema "packs" do | ||||||
|     field :count, :integer |     field :count, :integer | ||||||
|     field :notes, :string |     field :notes, :string | ||||||
|     field :price_paid, :float |     field :price_paid, :float | ||||||
| @@ -53,27 +53,27 @@ defmodule Cannery.Ammo.AmmoGroup do | |||||||
|           inserted_at: NaiveDateTime.t(), |           inserted_at: NaiveDateTime.t(), | ||||||
|           updated_at: NaiveDateTime.t() |           updated_at: NaiveDateTime.t() | ||||||
|         } |         } | ||||||
|   @type new_ammo_group :: %__MODULE__{} |   @type new_pack :: %__MODULE__{} | ||||||
|   @type id :: UUID.t() |   @type id :: UUID.t() | ||||||
|   @type changeset :: Changeset.t(t() | new_ammo_group()) |   @type changeset :: Changeset.t(t() | new_pack()) | ||||||
| 
 | 
 | ||||||
|   @doc false |   @doc false | ||||||
|   @spec create_changeset( |   @spec create_changeset( | ||||||
|           new_ammo_group(), |           new_pack(), | ||||||
|           AmmoType.t() | nil, |           AmmoType.t() | nil, | ||||||
|           Container.t() | nil, |           Container.t() | nil, | ||||||
|           User.t(), |           User.t(), | ||||||
|           attrs :: map() |           attrs :: map() | ||||||
|         ) :: changeset() |         ) :: changeset() | ||||||
|   def create_changeset( |   def create_changeset( | ||||||
|         ammo_group, |         pack, | ||||||
|         %AmmoType{id: ammo_type_id}, |         %AmmoType{id: ammo_type_id}, | ||||||
|         %Container{id: container_id, user_id: user_id}, |         %Container{id: container_id, user_id: user_id}, | ||||||
|         %User{id: user_id}, |         %User{id: user_id}, | ||||||
|         attrs |         attrs | ||||||
|       ) |       ) | ||||||
|       when is_binary(ammo_type_id) and is_binary(container_id) and is_binary(user_id) do |       when is_binary(ammo_type_id) and is_binary(container_id) and is_binary(user_id) do | ||||||
|     ammo_group |     pack | ||||||
|     |> change(ammo_type_id: ammo_type_id) |     |> change(ammo_type_id: ammo_type_id) | ||||||
|     |> change(user_id: user_id) |     |> change(user_id: user_id) | ||||||
|     |> change(container_id: container_id) |     |> change(container_id: container_id) | ||||||
| @@ -85,17 +85,17 @@ defmodule Cannery.Ammo.AmmoGroup do | |||||||
|   @doc """ |   @doc """ | ||||||
|   Invalid changeset, used to prompt user to select ammo type and container |   Invalid changeset, used to prompt user to select ammo type and container | ||||||
|   """ |   """ | ||||||
|   def create_changeset(ammo_group, _invalid_ammo_type, _invalid_container, _invalid_user, attrs) do |   def create_changeset(pack, _invalid_ammo_type, _invalid_container, _invalid_user, attrs) do | ||||||
|     ammo_group |     pack | ||||||
|     |> cast(attrs, [:ammo_type_id, :container_id]) |     |> cast(attrs, [:ammo_type_id, :container_id]) | ||||||
|     |> validate_required([:ammo_type_id, :container_id]) |     |> validate_required([:ammo_type_id, :container_id]) | ||||||
|     |> add_error(:invalid, dgettext("errors", "Please select an ammo type and container")) |     |> add_error(:invalid, dgettext("errors", "Please select an ammo type and container")) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @doc false |   @doc false | ||||||
|   @spec update_changeset(t() | new_ammo_group(), attrs :: map(), User.t()) :: changeset() |   @spec update_changeset(t() | new_pack(), attrs :: map(), User.t()) :: changeset() | ||||||
|   def update_changeset(ammo_group, attrs, user) do |   def update_changeset(pack, attrs, user) do | ||||||
|     ammo_group |     pack | ||||||
|     |> cast(attrs, [:count, :price_paid, :notes, :staged, :purchased_on, :container_id]) |     |> cast(attrs, [:count, :price_paid, :notes, :staged, :purchased_on, :container_id]) | ||||||
|     |> validate_number(:count, greater_than_or_equal_to: 0) |     |> validate_number(:count, greater_than_or_equal_to: 0) | ||||||
|     |> validate_container_id(user) |     |> validate_container_id(user) | ||||||
| @@ -113,12 +113,12 @@ defmodule Cannery.Ammo.AmmoGroup do | |||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @doc """ |   @doc """ | ||||||
|   This range changeset is used when "using up" ammo groups, and allows for |   This range changeset is used when "using up" packs, and allows for | ||||||
|   updating the count to 0 |   updating the count to 0 | ||||||
|   """ |   """ | ||||||
|   @spec range_changeset(t() | new_ammo_group(), attrs :: map()) :: changeset() |   @spec range_changeset(t() | new_pack(), attrs :: map()) :: changeset() | ||||||
|   def range_changeset(ammo_group, attrs) do |   def range_changeset(pack, attrs) do | ||||||
|     ammo_group |     pack | ||||||
|     |> cast(attrs, [:count, :staged]) |     |> cast(attrs, [:count, :staged]) | ||||||
|     |> validate_required([:count, :staged]) |     |> validate_required([:count, :staged]) | ||||||
|   end |   end | ||||||
| @@ -5,7 +5,7 @@ defmodule Cannery.Containers do | |||||||
|  |  | ||||||
|   import CanneryWeb.Gettext |   import CanneryWeb.Gettext | ||||||
|   import Ecto.Query, warn: false |   import Ecto.Query, warn: false | ||||||
|   alias Cannery.{Accounts.User, Ammo.AmmoGroup, Repo} |   alias Cannery.{Accounts.User, Ammo.Pack, Repo} | ||||||
|   alias Cannery.Containers.{Container, ContainerTag, Tag} |   alias Cannery.Containers.{Container, ContainerTag, Tag} | ||||||
|   alias Ecto.Changeset |   alias Ecto.Changeset | ||||||
|  |  | ||||||
| @@ -203,7 +203,7 @@ defmodule Cannery.Containers do | |||||||
|           {:ok, Container.t()} | {:error, Container.changeset()} |           {:ok, Container.t()} | {:error, Container.changeset()} | ||||||
|   def delete_container(%Container{user_id: user_id} = container, %User{id: user_id}) do |   def delete_container(%Container{user_id: user_id} = container, %User{id: user_id}) do | ||||||
|     Repo.one( |     Repo.one( | ||||||
|       from ag in AmmoGroup, |       from ag in Pack, | ||||||
|         where: ag.container_id == ^container.id, |         where: ag.container_id == ^container.id, | ||||||
|         select: count(ag.id) |         select: count(ag.id) | ||||||
|     ) |     ) | ||||||
| @@ -221,7 +221,7 @@ defmodule Cannery.Containers do | |||||||
|  |  | ||||||
|         container |         container | ||||||
|         |> Container.update_changeset(%{}) |         |> Container.update_changeset(%{}) | ||||||
|         |> Changeset.add_error(:ammo_groups, error) |         |> Changeset.add_error(:packs, error) | ||||||
|         |> Changeset.apply_action(:delete) |         |> Changeset.apply_action(:delete) | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ defmodule CanneryWeb.Components.AddShotGroupComponent do | |||||||
|   """ |   """ | ||||||
|  |  | ||||||
|   use CanneryWeb, :live_component |   use CanneryWeb, :live_component | ||||||
|   alias Cannery.{Accounts.User, ActivityLog, ActivityLog.ShotGroup, Ammo.AmmoGroup} |   alias Cannery.{Accounts.User, ActivityLog, ActivityLog.ShotGroup, Ammo.Pack} | ||||||
|   alias Ecto.Changeset |   alias Ecto.Changeset | ||||||
|   alias Phoenix.LiveView.{JS, Socket} |   alias Phoenix.LiveView.{JS, Socket} | ||||||
|  |  | ||||||
| @@ -12,15 +12,15 @@ defmodule CanneryWeb.Components.AddShotGroupComponent do | |||||||
|   @spec update( |   @spec update( | ||||||
|           %{ |           %{ | ||||||
|             required(:current_user) => User.t(), |             required(:current_user) => User.t(), | ||||||
|             required(:ammo_group) => AmmoGroup.t(), |             required(:pack) => Pack.t(), | ||||||
|             optional(any()) => any() |             optional(any()) => any() | ||||||
|           }, |           }, | ||||||
|           Socket.t() |           Socket.t() | ||||||
|         ) :: {:ok, Socket.t()} |         ) :: {:ok, Socket.t()} | ||||||
|   def update(%{ammo_group: ammo_group, current_user: current_user} = assigns, socket) do |   def update(%{pack: pack, current_user: current_user} = assigns, socket) do | ||||||
|     changeset = |     changeset = | ||||||
|       %ShotGroup{date: Date.utc_today()} |       %ShotGroup{date: Date.utc_today()} | ||||||
|       |> ShotGroup.create_changeset(current_user, ammo_group, %{}) |       |> ShotGroup.create_changeset(current_user, pack, %{}) | ||||||
|  |  | ||||||
|     {:ok, socket |> assign(assigns) |> assign(:changeset, changeset)} |     {:ok, socket |> assign(assigns) |> assign(:changeset, changeset)} | ||||||
|   end |   end | ||||||
| @@ -29,11 +29,11 @@ defmodule CanneryWeb.Components.AddShotGroupComponent do | |||||||
|   def handle_event( |   def handle_event( | ||||||
|         "validate", |         "validate", | ||||||
|         %{"shot_group" => shot_group_params}, |         %{"shot_group" => shot_group_params}, | ||||||
|         %{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket |         %{assigns: %{pack: pack, current_user: current_user}} = socket | ||||||
|       ) do |       ) do | ||||||
|     params = shot_group_params |> process_params(ammo_group) |     params = shot_group_params |> process_params(pack) | ||||||
|  |  | ||||||
|     changeset = %ShotGroup{} |> ShotGroup.create_changeset(current_user, ammo_group, params) |     changeset = %ShotGroup{} |> ShotGroup.create_changeset(current_user, pack, params) | ||||||
|  |  | ||||||
|     changeset = |     changeset = | ||||||
|       case changeset |> Changeset.apply_action(:validate) do |       case changeset |> Changeset.apply_action(:validate) do | ||||||
| @@ -48,13 +48,13 @@ defmodule CanneryWeb.Components.AddShotGroupComponent do | |||||||
|         "save", |         "save", | ||||||
|         %{"shot_group" => shot_group_params}, |         %{"shot_group" => shot_group_params}, | ||||||
|         %{ |         %{ | ||||||
|           assigns: %{ammo_group: ammo_group, current_user: current_user, return_to: return_to} |           assigns: %{pack: pack, current_user: current_user, return_to: return_to} | ||||||
|         } = socket |         } = socket | ||||||
|       ) do |       ) do | ||||||
|     socket = |     socket = | ||||||
|       shot_group_params |       shot_group_params | ||||||
|       |> process_params(ammo_group) |       |> process_params(pack) | ||||||
|       |> ActivityLog.create_shot_group(current_user, ammo_group) |       |> ActivityLog.create_shot_group(current_user, pack) | ||||||
|       |> case do |       |> case do | ||||||
|         {:ok, _shot_group} -> |         {:ok, _shot_group} -> | ||||||
|           prompt = dgettext("prompts", "Shots recorded successfully") |           prompt = dgettext("prompts", "Shots recorded successfully") | ||||||
| @@ -68,7 +68,7 @@ defmodule CanneryWeb.Components.AddShotGroupComponent do | |||||||
|   end |   end | ||||||
|  |  | ||||||
|   # calculate count from shots left |   # calculate count from shots left | ||||||
|   defp process_params(params, %AmmoGroup{count: count}) do |   defp process_params(params, %Pack{count: count}) do | ||||||
|     shot_group_count = |     shot_group_count = | ||||||
|       if params |> Map.get("ammo_left", "") == "" do |       if params |> Map.get("ammo_left", "") == "" do | ||||||
|         nil |         nil | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ | |||||||
|     <%= label(f, :ammo_left, gettext("Rounds left"), class: "title text-lg text-primary-600") %> |     <%= label(f, :ammo_left, gettext("Rounds left"), class: "title text-lg text-primary-600") %> | ||||||
|     <%= number_input(f, :ammo_left, |     <%= number_input(f, :ammo_left, | ||||||
|       min: 0, |       min: 0, | ||||||
|       max: @ammo_group.count - 1, |       max: @pack.count - 1, | ||||||
|       placeholder: gettext("Rounds left"), |       placeholder: gettext("Rounds left"), | ||||||
|       class: "input input-primary" |       class: "input input-primary" | ||||||
|     ) %> |     ) %> | ||||||
|   | |||||||
| @@ -147,13 +147,13 @@ defmodule CanneryWeb.Components.AmmoTypeTableComponent do | |||||||
|       }) |       }) | ||||||
|       |> TableComponent.maybe_compose_columns(filtered_columns) |       |> TableComponent.maybe_compose_columns(filtered_columns) | ||||||
|       |> TableComponent.maybe_compose_columns( |       |> TableComponent.maybe_compose_columns( | ||||||
|         %{label: gettext("Class"), key: :type, type: :atom}, |         %{label: gettext("Class"), key: :class, type: :atom}, | ||||||
|         class in [:all, nil] |         class in [:all, nil] | ||||||
|       ) |       ) | ||||||
|       |> TableComponent.maybe_compose_columns(%{label: gettext("Name"), key: :name, type: :name}) |       |> TableComponent.maybe_compose_columns(%{label: gettext("Name"), key: :name, type: :name}) | ||||||
|  |  | ||||||
|     round_counts = ammo_types |> Ammo.get_round_count_for_ammo_types(current_user) |     round_counts = ammo_types |> Ammo.get_round_count_for_ammo_types(current_user) | ||||||
|     packs_count = ammo_types |> Ammo.get_ammo_groups_count_for_types(current_user) |     packs_count = ammo_types |> Ammo.get_packs_count_for_types(current_user) | ||||||
|     average_costs = ammo_types |> Ammo.get_average_cost_for_ammo_types(current_user) |     average_costs = ammo_types |> Ammo.get_average_cost_for_ammo_types(current_user) | ||||||
|  |  | ||||||
|     [used_counts, historical_round_counts, historical_pack_counts, used_pack_counts] = |     [used_counts, historical_round_counts, historical_pack_counts, used_pack_counts] = | ||||||
| @@ -161,8 +161,8 @@ defmodule CanneryWeb.Components.AmmoTypeTableComponent do | |||||||
|         [ |         [ | ||||||
|           ammo_types |> ActivityLog.get_used_count_for_ammo_types(current_user), |           ammo_types |> ActivityLog.get_used_count_for_ammo_types(current_user), | ||||||
|           ammo_types |> Ammo.get_historical_count_for_ammo_types(current_user), |           ammo_types |> Ammo.get_historical_count_for_ammo_types(current_user), | ||||||
|           ammo_types |> Ammo.get_ammo_groups_count_for_types(current_user, true), |           ammo_types |> Ammo.get_packs_count_for_types(current_user, true), | ||||||
|           ammo_types |> Ammo.get_used_ammo_groups_count_for_types(current_user) |           ammo_types |> Ammo.get_used_packs_count_for_types(current_user) | ||||||
|         ] |         ] | ||||||
|       else |       else | ||||||
|         [nil, nil, nil, nil] |         [nil, nil, nil, nil] | ||||||
|   | |||||||
| @@ -71,7 +71,7 @@ defmodule CanneryWeb.Components.ContainerTableComponent do | |||||||
|       current_user: current_user, |       current_user: current_user, | ||||||
|       tag_actions: tag_actions, |       tag_actions: tag_actions, | ||||||
|       actions: actions, |       actions: actions, | ||||||
|       pack_count: Ammo.get_ammo_groups_count_for_containers(containers, current_user), |       pack_count: Ammo.get_packs_count_for_containers(containers, current_user), | ||||||
|       round_count: Ammo.get_round_count_for_containers(containers, current_user) |       round_count: Ammo.get_round_count_for_containers(containers, current_user) | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ defmodule CanneryWeb.CoreComponents do | |||||||
|   use Phoenix.Component |   use Phoenix.Component | ||||||
|   import CanneryWeb.{Gettext, ViewHelpers} |   import CanneryWeb.{Gettext, ViewHelpers} | ||||||
|   alias Cannery.{Accounts, Accounts.Invite, Accounts.User} |   alias Cannery.{Accounts, Accounts.Invite, Accounts.User} | ||||||
|   alias Cannery.{Ammo, Ammo.AmmoGroup} |   alias Cannery.{Ammo, Ammo.Pack} | ||||||
|   alias Cannery.{Containers.Container, Containers.Tag} |   alias Cannery.{Containers.Container, Containers.Tag} | ||||||
|   alias CanneryWeb.{Endpoint, HomeLive} |   alias CanneryWeb.{Endpoint, HomeLive} | ||||||
|   alias CanneryWeb.Router.Helpers, as: Routes |   alias CanneryWeb.Router.Helpers, as: Routes | ||||||
| @@ -86,7 +86,7 @@ defmodule CanneryWeb.CoreComponents do | |||||||
|  |  | ||||||
|   def simple_tag_card(assigns) |   def simple_tag_card(assigns) | ||||||
|  |  | ||||||
|   attr :ammo_group, AmmoGroup, required: true |   attr :pack, Pack, required: true | ||||||
|   attr :current_user, User, required: true |   attr :current_user, User, required: true | ||||||
|   attr :original_count, :integer, default: nil |   attr :original_count, :integer, default: nil | ||||||
|   attr :cpr, :integer, default: nil |   attr :cpr, :integer, default: nil | ||||||
| @@ -94,7 +94,7 @@ defmodule CanneryWeb.CoreComponents do | |||||||
|   attr :container, Container, default: nil |   attr :container, Container, default: nil | ||||||
|   slot(:inner_block) |   slot(:inner_block) | ||||||
|  |  | ||||||
|   def ammo_group_card(assigns) |   def pack_card(assigns) | ||||||
|  |  | ||||||
|   @spec display_currency(float()) :: String.t() |   @spec display_currency(float()) :: String.t() | ||||||
|   defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) |   defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) | ||||||
|   | |||||||
| @@ -27,10 +27,10 @@ | |||||||
|       <%= @container.location %> |       <%= @container.location %> | ||||||
|     </span> |     </span> | ||||||
|  |  | ||||||
|     <%= if @container |> Ammo.get_ammo_groups_count_for_container!(@current_user) != 0 do %> |     <%= if @container |> Ammo.get_packs_count_for_container!(@current_user) != 0 do %> | ||||||
|       <span class="rounded-lg title text-lg"> |       <span class="rounded-lg title text-lg"> | ||||||
|         <%= gettext("Packs:") %> |         <%= gettext("Packs:") %> | ||||||
|         <%= @container |> Ammo.get_ammo_groups_count_for_container!(@current_user) %> |         <%= @container |> Ammo.get_packs_count_for_container!(@current_user) %> | ||||||
|       </span> |       </span> | ||||||
|  |  | ||||||
|       <span class="rounded-lg title text-lg"> |       <span class="rounded-lg title text-lg"> | ||||||
|   | |||||||
| @@ -1,48 +1,45 @@ | |||||||
| <div | <div | ||||||
|   id={"ammo_group-#{@ammo_group.id}"} |   id={"pack-#{@pack.id}"} | ||||||
|   class="mx-4 my-2 px-8 py-4 |   class="mx-4 my-2 px-8 py-4 | ||||||
|     flex flex-col justify-center items-center |     flex flex-col justify-center items-center | ||||||
|     border border-gray-400 rounded-lg shadow-lg hover:shadow-md |     border border-gray-400 rounded-lg shadow-lg hover:shadow-md | ||||||
|     transition-all duration-300 ease-in-out" |     transition-all duration-300 ease-in-out" | ||||||
| > | > | ||||||
|   <.link navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="mb-2 link"> |   <.link navigate={Routes.pack_show_path(Endpoint, :show, @pack)} class="mb-2 link"> | ||||||
|     <h1 class="title text-xl title-primary-500"> |     <h1 class="title text-xl title-primary-500"> | ||||||
|       <%= @ammo_group.ammo_type.name %> |       <%= @pack.ammo_type.name %> | ||||||
|     </h1> |     </h1> | ||||||
|   </.link> |   </.link> | ||||||
| 
 | 
 | ||||||
|   <div class="flex flex-col justify-center items-center"> |   <div class="flex flex-col justify-center items-center"> | ||||||
|     <span class="rounded-lg title text-lg"> |     <span class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Count:") %> |       <%= gettext("Count:") %> | ||||||
|       <%= if @ammo_group.count == 0, do: gettext("Empty"), else: @ammo_group.count %> |       <%= if @pack.count == 0, do: gettext("Empty"), else: @pack.count %> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span |     <span :if={@original_count && @original_count != @pack.count} class="rounded-lg title text-lg"> | ||||||
|       :if={@original_count && @original_count != @ammo_group.count} |  | ||||||
|       class="rounded-lg title text-lg" |  | ||||||
|     > |  | ||||||
|       <%= gettext("Original Count:") %> |       <%= gettext("Original Count:") %> | ||||||
|       <%= @original_count %> |       <%= @original_count %> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span :if={@ammo_group.notes} class="rounded-lg title text-lg"> |     <span :if={@pack.notes} class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Notes:") %> |       <%= gettext("Notes:") %> | ||||||
|       <%= @ammo_group.notes %> |       <%= @pack.notes %> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span :if={@ammo_group.purchased_on} class="rounded-lg title text-lg"> |     <span :if={@pack.purchased_on} class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Purchased on:") %> |       <%= gettext("Purchased on:") %> | ||||||
|       <.date id={"#{@ammo_group.id}-purchased-on"} date={@ammo_group.purchased_on} /> |       <.date id={"#{@pack.id}-purchased-on"} date={@pack.purchased_on} /> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span :if={@last_used_date} class="rounded-lg title text-lg"> |     <span :if={@last_used_date} class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Last used on:") %> |       <%= gettext("Last used on:") %> | ||||||
|       <.date id={"#{@ammo_group.id}-last-used-on"} date={@last_used_date} /> |       <.date id={"#{@pack.id}-last-used-on"} date={@last_used_date} /> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span :if={@ammo_group.price_paid} class="rounded-lg title text-lg"> |     <span :if={@pack.price_paid} class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Price paid:") %> |       <%= gettext("Price paid:") %> | ||||||
|       <%= gettext("$%{amount}", amount: display_currency(@ammo_group.price_paid)) %> |       <%= gettext("$%{amount}", amount: display_currency(@pack.price_paid)) %> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span :if={@cpr} class="rounded-lg title text-lg"> |     <span :if={@cpr} class="rounded-lg title text-lg"> | ||||||
| @@ -52,7 +52,7 @@ | |||||||
|         </li> |         </li> | ||||||
|         <li class="mx-2 my-1"> |         <li class="mx-2 my-1"> | ||||||
|           <.link |           <.link | ||||||
|             navigate={Routes.ammo_group_index_path(Endpoint, :index)} |             navigate={Routes.pack_index_path(Endpoint, :index)} | ||||||
|             class="text-white hover:underline" |             class="text-white hover:underline" | ||||||
|           > |           > | ||||||
|             <%= gettext("Ammo") %> |             <%= gettext("Ammo") %> | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | defmodule CanneryWeb.Components.MovePackComponent do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   Livecomponent that can move an ammo group to another container |   Livecomponent that can move a pack to another container | ||||||
|   """ |   """ | ||||||
| 
 | 
 | ||||||
|   use CanneryWeb, :live_component |   use CanneryWeb, :live_component | ||||||
|   alias Cannery.{Accounts.User, Ammo, Ammo.AmmoGroup, Containers, Containers.Container} |   alias Cannery.{Accounts.User, Ammo, Ammo.Pack, Containers, Containers.Container} | ||||||
|   alias CanneryWeb.Endpoint |   alias CanneryWeb.Endpoint | ||||||
|   alias Ecto.Changeset |   alias Ecto.Changeset | ||||||
|   alias Phoenix.LiveView.Socket |   alias Phoenix.LiveView.Socket | ||||||
| @@ -13,17 +13,16 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | |||||||
|   @spec update( |   @spec update( | ||||||
|           %{ |           %{ | ||||||
|             required(:current_user) => User.t(), |             required(:current_user) => User.t(), | ||||||
|             required(:ammo_group) => AmmoGroup.t(), |             required(:pack) => Pack.t(), | ||||||
|             optional(any()) => any() |             optional(any()) => any() | ||||||
|           }, |           }, | ||||||
|           Socket.t() |           Socket.t() | ||||||
|         ) :: {:ok, Socket.t()} |         ) :: {:ok, Socket.t()} | ||||||
|   def update( |   def update( | ||||||
|         %{ammo_group: %{container_id: container_id} = ammo_group, current_user: current_user} = |         %{pack: %{container_id: container_id} = pack, current_user: current_user} = assigns, | ||||||
|           assigns, |  | ||||||
|         socket |         socket | ||||||
|       ) do |       ) do | ||||||
|     changeset = ammo_group |> AmmoGroup.update_changeset(%{}, current_user) |     changeset = pack |> Pack.update_changeset(%{}, current_user) | ||||||
| 
 | 
 | ||||||
|     containers = |     containers = | ||||||
|       Containers.list_containers(current_user) |       Containers.list_containers(current_user) | ||||||
| @@ -41,16 +40,15 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | |||||||
|   def handle_event( |   def handle_event( | ||||||
|         "move", |         "move", | ||||||
|         %{"container_id" => container_id}, |         %{"container_id" => container_id}, | ||||||
|         %{assigns: %{ammo_group: ammo_group, current_user: current_user, return_to: return_to}} = |         %{assigns: %{pack: pack, current_user: current_user, return_to: return_to}} = socket | ||||||
|           socket |  | ||||||
|       ) do |       ) do | ||||||
|     %{name: container_name} = Containers.get_container!(container_id, current_user) |     %{name: container_name} = Containers.get_container!(container_id, current_user) | ||||||
| 
 | 
 | ||||||
|     socket = |     socket = | ||||||
|       ammo_group |       pack | ||||||
|       |> Ammo.update_ammo_group(%{"container_id" => container_id}, current_user) |       |> Ammo.update_pack(%{"container_id" => container_id}, current_user) | ||||||
|       |> case do |       |> case do | ||||||
|         {:ok, _ammo_group} -> |         {:ok, _pack} -> | ||||||
|           prompt = dgettext("prompts", "Ammo moved to %{name} successfully", name: container_name) |           prompt = dgettext("prompts", "Ammo moved to %{name} successfully", name: container_name) | ||||||
|           socket |> put_flash(:info, prompt) |> push_navigate(to: return_to) |           socket |> put_flash(:info, prompt) |> push_navigate(to: return_to) | ||||||
| 
 | 
 | ||||||
| @@ -92,7 +90,7 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do | |||||||
|       <% else %> |       <% else %> | ||||||
|         <.live_component |         <.live_component | ||||||
|           module={CanneryWeb.Components.TableComponent} |           module={CanneryWeb.Components.TableComponent} | ||||||
|           id="move_ammo_group_table" |           id="move_pack_table" | ||||||
|           columns={@columns} |           columns={@columns} | ||||||
|           rows={@rows} |           rows={@rows} | ||||||
|         /> |         /> | ||||||
| @@ -1,9 +1,9 @@ | |||||||
| defmodule CanneryWeb.Components.AmmoGroupTableComponent do | defmodule CanneryWeb.Components.PackTableComponent do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   A component that displays a list of ammo groups |   A component that displays a list of packs | ||||||
|   """ |   """ | ||||||
|   use CanneryWeb, :live_component |   use CanneryWeb, :live_component | ||||||
|   alias Cannery.{Accounts.User, Ammo.AmmoGroup, ComparableDate} |   alias Cannery.{Accounts.User, Ammo.Pack, ComparableDate} | ||||||
|   alias Cannery.{ActivityLog, Ammo, Containers} |   alias Cannery.{ActivityLog, Ammo, Containers} | ||||||
|   alias CanneryWeb.Components.TableComponent |   alias CanneryWeb.Components.TableComponent | ||||||
|   alias Ecto.UUID |   alias Ecto.UUID | ||||||
| @@ -14,7 +14,7 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|           %{ |           %{ | ||||||
|             required(:id) => UUID.t(), |             required(:id) => UUID.t(), | ||||||
|             required(:current_user) => User.t(), |             required(:current_user) => User.t(), | ||||||
|             required(:ammo_groups) => [AmmoGroup.t()], |             required(:packs) => [Pack.t()], | ||||||
|             required(:show_used) => boolean(), |             required(:show_used) => boolean(), | ||||||
|             optional(:ammo_type) => Rendered.t(), |             optional(:ammo_type) => Rendered.t(), | ||||||
|             optional(:range) => Rendered.t(), |             optional(:range) => Rendered.t(), | ||||||
| @@ -25,8 +25,7 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|           Socket.t() |           Socket.t() | ||||||
|         ) :: {:ok, Socket.t()} |         ) :: {:ok, Socket.t()} | ||||||
|   def update( |   def update( | ||||||
|         %{id: _id, ammo_groups: _ammo_group, current_user: _current_user, show_used: _show_used} = |         %{id: _id, packs: _pack, current_user: _current_user, show_used: _show_used} = assigns, | ||||||
|           assigns, |  | ||||||
|         socket |         socket | ||||||
|       ) do |       ) do | ||||||
|     socket = |     socket = | ||||||
| @@ -36,15 +35,15 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|       |> assign_new(:range, fn -> [] end) |       |> assign_new(:range, fn -> [] end) | ||||||
|       |> assign_new(:container, fn -> [] end) |       |> assign_new(:container, fn -> [] end) | ||||||
|       |> assign_new(:actions, fn -> [] end) |       |> assign_new(:actions, fn -> [] end) | ||||||
|       |> display_ammo_groups() |       |> display_packs() | ||||||
| 
 | 
 | ||||||
|     {:ok, socket} |     {:ok, socket} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp display_ammo_groups( |   defp display_packs( | ||||||
|          %{ |          %{ | ||||||
|            assigns: %{ |            assigns: %{ | ||||||
|              ammo_groups: ammo_groups, |              packs: packs, | ||||||
|              current_user: current_user, |              current_user: current_user, | ||||||
|              ammo_type: ammo_type, |              ammo_type: ammo_type, | ||||||
|              range: range, |              range: range, | ||||||
| @@ -98,7 +97,7 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|       ) |       ) | ||||||
| 
 | 
 | ||||||
|     containers = |     containers = | ||||||
|       ammo_groups |       packs | ||||||
|       |> Enum.map(fn %{container_id: container_id} -> container_id end) |       |> Enum.map(fn %{container_id: container_id} -> container_id end) | ||||||
|       |> Containers.get_containers(current_user) |       |> Containers.get_containers(current_user) | ||||||
| 
 | 
 | ||||||
| @@ -108,18 +107,18 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|       columns: columns, |       columns: columns, | ||||||
|       container: container, |       container: container, | ||||||
|       containers: containers, |       containers: containers, | ||||||
|       original_counts: Ammo.get_original_counts(ammo_groups, current_user), |       original_counts: Ammo.get_original_counts(packs, current_user), | ||||||
|       cprs: Ammo.get_cprs(ammo_groups, current_user), |       cprs: Ammo.get_cprs(packs, current_user), | ||||||
|       last_used_dates: ActivityLog.get_last_used_dates(ammo_groups, current_user), |       last_used_dates: ActivityLog.get_last_used_dates(packs, current_user), | ||||||
|       percentages_remaining: Ammo.get_percentages_remaining(ammo_groups, current_user), |       percentages_remaining: Ammo.get_percentages_remaining(packs, current_user), | ||||||
|       actions: actions, |       actions: actions, | ||||||
|       range: range |       range: range | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     rows = |     rows = | ||||||
|       ammo_groups |       packs | ||||||
|       |> Enum.map(fn ammo_group -> |       |> Enum.map(fn pack -> | ||||||
|         ammo_group |> get_row_data_for_ammo_group(extra_data) |         pack |> get_row_data_for_pack(extra_data) | ||||||
|       end) |       end) | ||||||
| 
 | 
 | ||||||
|     socket |> assign(columns: columns, rows: rows) |     socket |> assign(columns: columns, rows: rows) | ||||||
| @@ -134,15 +133,15 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|     """ |     """ | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @spec get_row_data_for_ammo_group(AmmoGroup.t(), additional_data :: map()) :: map() |   @spec get_row_data_for_pack(Pack.t(), additional_data :: map()) :: map() | ||||||
|   defp get_row_data_for_ammo_group(ammo_group, %{columns: columns} = additional_data) do |   defp get_row_data_for_pack(pack, %{columns: columns} = additional_data) do | ||||||
|     columns |     columns | ||||||
|     |> Map.new(fn %{key: key} -> |     |> Map.new(fn %{key: key} -> | ||||||
|       {key, get_value_for_key(key, ammo_group, additional_data)} |       {key, get_value_for_key(key, pack, additional_data)} | ||||||
|     end) |     end) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @spec get_value_for_key(atom(), AmmoGroup.t(), additional_data :: map()) :: |   @spec get_value_for_key(atom(), Pack.t(), additional_data :: map()) :: | ||||||
|           any() | {any(), Rendered.t()} |           any() | {any(), Rendered.t()} | ||||||
|   defp get_value_for_key( |   defp get_value_for_key( | ||||||
|          :ammo_type, |          :ammo_type, | ||||||
| @@ -170,9 +169,9 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|      """} |      """} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(:used_up_on, %{id: ammo_group_id}, %{last_used_dates: last_used_dates}) do |   defp get_value_for_key(:used_up_on, %{id: pack_id}, %{last_used_dates: last_used_dates}) do | ||||||
|     last_used_date = last_used_dates |> Map.get(ammo_group_id) |     last_used_date = last_used_dates |> Map.get(pack_id) | ||||||
|     assigns = %{id: ammo_group_id, last_used_date: last_used_date} |     assigns = %{id: pack_id, last_used_date: last_used_date} | ||||||
| 
 | 
 | ||||||
|     {last_used_date, |     {last_used_date, | ||||||
|      ~H""" |      ~H""" | ||||||
| @@ -184,29 +183,29 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|      """} |      """} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(:range, %{staged: staged} = ammo_group, %{range: range}) do |   defp get_value_for_key(:range, %{staged: staged} = pack, %{range: range}) do | ||||||
|     assigns = %{range: range, ammo_group: ammo_group} |     assigns = %{range: range, pack: pack} | ||||||
| 
 | 
 | ||||||
|     {staged, |     {staged, | ||||||
|      ~H""" |      ~H""" | ||||||
|      <%= render_slot(@range, @ammo_group) %> |      <%= render_slot(@range, @pack) %> | ||||||
|      """} |      """} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key( |   defp get_value_for_key( | ||||||
|          :remaining, |          :remaining, | ||||||
|          %{id: ammo_group_id}, |          %{id: pack_id}, | ||||||
|          %{percentages_remaining: percentages_remaining} |          %{percentages_remaining: percentages_remaining} | ||||||
|        ) do |        ) do | ||||||
|     percentage = Map.fetch!(percentages_remaining, ammo_group_id) |     percentage = Map.fetch!(percentages_remaining, pack_id) | ||||||
|     {percentage, gettext("%{percentage}%", percentage: percentage)} |     {percentage, gettext("%{percentage}%", percentage: percentage)} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(:actions, ammo_group, %{actions: actions}) do |   defp get_value_for_key(:actions, pack, %{actions: actions}) do | ||||||
|     assigns = %{actions: actions, ammo_group: ammo_group} |     assigns = %{actions: actions, pack: pack} | ||||||
| 
 | 
 | ||||||
|     ~H""" |     ~H""" | ||||||
|     <%= render_slot(@actions, @ammo_group) %> |     <%= render_slot(@actions, @pack) %> | ||||||
|     """ |     """ | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -214,7 +213,7 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
| 
 | 
 | ||||||
|   defp get_value_for_key( |   defp get_value_for_key( | ||||||
|          :container, |          :container, | ||||||
|          %{container_id: container_id} = ammo_group, |          %{container_id: container_id} = pack, | ||||||
|          %{container: container_block, containers: containers} |          %{container: container_block, containers: containers} | ||||||
|        ) do |        ) do | ||||||
|     container = %{name: container_name} = Map.fetch!(containers, container_id) |     container = %{name: container_name} = Map.fetch!(containers, container_id) | ||||||
| @@ -222,35 +221,35 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do | |||||||
|     assigns = %{ |     assigns = %{ | ||||||
|       container: container, |       container: container, | ||||||
|       container_block: container_block, |       container_block: container_block, | ||||||
|       ammo_group: ammo_group |       pack: pack | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     {container_name, |     {container_name, | ||||||
|      ~H""" |      ~H""" | ||||||
|      <%= render_slot(@container_block, {@ammo_group, @container}) %> |      <%= render_slot(@container_block, {@pack, @container}) %> | ||||||
|      """} |      """} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key( |   defp get_value_for_key( | ||||||
|          :original_count, |          :original_count, | ||||||
|          %{id: ammo_group_id}, |          %{id: pack_id}, | ||||||
|          %{original_counts: original_counts} |          %{original_counts: original_counts} | ||||||
|        ) do |        ) do | ||||||
|     Map.fetch!(original_counts, ammo_group_id) |     Map.fetch!(original_counts, pack_id) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(:cpr, %{price_paid: nil}, _additional_data), |   defp get_value_for_key(:cpr, %{price_paid: nil}, _additional_data), | ||||||
|     do: {0, gettext("No cost information")} |     do: {0, gettext("No cost information")} | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(:cpr, %{id: ammo_group_id}, %{cprs: cprs}) do |   defp get_value_for_key(:cpr, %{id: pack_id}, %{cprs: cprs}) do | ||||||
|     amount = Map.fetch!(cprs, ammo_group_id) |     amount = Map.fetch!(cprs, pack_id) | ||||||
|     {amount, gettext("$%{amount}", amount: display_currency(amount))} |     {amount, gettext("$%{amount}", amount: display_currency(amount))} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(:count, %{count: count}, _additional_data), |   defp get_value_for_key(:count, %{count: count}, _additional_data), | ||||||
|     do: if(count == 0, do: {0, gettext("Empty")}, else: count) |     do: if(count == 0, do: {0, gettext("Empty")}, else: count) | ||||||
| 
 | 
 | ||||||
|   defp get_value_for_key(key, ammo_group, _additional_data), do: ammo_group |> Map.get(key) |   defp get_value_for_key(key, pack, _additional_data), do: pack |> Map.get(key) | ||||||
| 
 | 
 | ||||||
|   @spec display_currency(float()) :: String.t() |   @spec display_currency(float()) :: String.t() | ||||||
|   defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) |   defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) | ||||||
| @@ -45,12 +45,12 @@ defmodule CanneryWeb.Components.ShotGroupTableComponent do | |||||||
|       %{label: gettext("Actions"), key: :actions, sortable: false} |       %{label: gettext("Actions"), key: :actions, sortable: false} | ||||||
|     ] |     ] | ||||||
|  |  | ||||||
|     ammo_groups = |     packs = | ||||||
|       shot_groups |       shot_groups | ||||||
|       |> Enum.map(fn %{ammo_group_id: ammo_group_id} -> ammo_group_id end) |       |> Enum.map(fn %{pack_id: pack_id} -> pack_id end) | ||||||
|       |> Ammo.get_ammo_groups(current_user) |       |> Ammo.get_packs(current_user) | ||||||
|  |  | ||||||
|     extra_data = %{current_user: current_user, actions: actions, ammo_groups: ammo_groups} |     extra_data = %{current_user: current_user, actions: actions, packs: packs} | ||||||
|  |  | ||||||
|     rows = |     rows = | ||||||
|       shot_groups |       shot_groups | ||||||
| @@ -90,13 +90,13 @@ defmodule CanneryWeb.Components.ShotGroupTableComponent do | |||||||
|     end) |     end) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   defp get_row_value(:name, %{ammo_group_id: ammo_group_id}, %{ammo_groups: ammo_groups}) do |   defp get_row_value(:name, %{pack_id: pack_id}, %{packs: packs}) do | ||||||
|     assigns = %{ammo_group: ammo_group = Map.fetch!(ammo_groups, ammo_group_id)} |     assigns = %{pack: pack = Map.fetch!(packs, pack_id)} | ||||||
|  |  | ||||||
|     {ammo_group.ammo_type.name, |     {pack.ammo_type.name, | ||||||
|      ~H""" |      ~H""" | ||||||
|      <.link navigate={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} class="link"> |      <.link navigate={Routes.pack_show_path(Endpoint, :show, @pack)} class="link"> | ||||||
|        <%= @ammo_group.ammo_type.name %> |        <%= @pack.ammo_type.name %> | ||||||
|      </.link> |      </.link> | ||||||
|      """} |      """} | ||||||
|   end |   end | ||||||
|   | |||||||
| @@ -6,10 +6,9 @@ defmodule CanneryWeb.ExportController do | |||||||
|     ammo_types = Ammo.list_ammo_types(current_user, :all) |     ammo_types = Ammo.list_ammo_types(current_user, :all) | ||||||
|     used_counts = ammo_types |> ActivityLog.get_used_count_for_ammo_types(current_user) |     used_counts = ammo_types |> ActivityLog.get_used_count_for_ammo_types(current_user) | ||||||
|     round_counts = ammo_types |> Ammo.get_round_count_for_ammo_types(current_user) |     round_counts = ammo_types |> Ammo.get_round_count_for_ammo_types(current_user) | ||||||
|     ammo_group_counts = ammo_types |> Ammo.get_ammo_groups_count_for_types(current_user) |     pack_counts = ammo_types |> Ammo.get_packs_count_for_types(current_user) | ||||||
|  |  | ||||||
|     total_ammo_group_counts = |     total_pack_counts = ammo_types |> Ammo.get_packs_count_for_types(current_user, true) | ||||||
|       ammo_types |> Ammo.get_ammo_groups_count_for_types(current_user, true) |  | ||||||
|  |  | ||||||
|     average_costs = ammo_types |> Ammo.get_average_cost_for_ammo_types(current_user) |     average_costs = ammo_types |> Ammo.get_average_cost_for_ammo_types(current_user) | ||||||
|  |  | ||||||
| @@ -23,28 +22,28 @@ defmodule CanneryWeb.ExportController do | |||||||
|           "average_cost" => Map.get(average_costs, ammo_type_id), |           "average_cost" => Map.get(average_costs, ammo_type_id), | ||||||
|           "round_count" => Map.get(round_counts, ammo_type_id, 0), |           "round_count" => Map.get(round_counts, ammo_type_id, 0), | ||||||
|           "used_count" => Map.get(used_counts, ammo_type_id, 0), |           "used_count" => Map.get(used_counts, ammo_type_id, 0), | ||||||
|           "ammo_group_count" => Map.get(ammo_group_counts, ammo_type_id, 0), |           "pack_count" => Map.get(pack_counts, ammo_type_id, 0), | ||||||
|           "total_ammo_group_count" => Map.get(total_ammo_group_counts, ammo_type_id, 0) |           "total_pack_count" => Map.get(total_pack_counts, ammo_type_id, 0) | ||||||
|         }) |         }) | ||||||
|       end) |       end) | ||||||
|  |  | ||||||
|     ammo_groups = Ammo.list_ammo_groups(nil, :all, current_user, true) |     packs = Ammo.list_packs(nil, :all, current_user, true) | ||||||
|     used_counts = ammo_groups |> ActivityLog.get_used_counts(current_user) |     used_counts = packs |> ActivityLog.get_used_counts(current_user) | ||||||
|     original_counts = ammo_groups |> Ammo.get_original_counts(current_user) |     original_counts = packs |> Ammo.get_original_counts(current_user) | ||||||
|     cprs = ammo_groups |> Ammo.get_cprs(current_user) |     cprs = packs |> Ammo.get_cprs(current_user) | ||||||
|     percentages_remaining = ammo_groups |> Ammo.get_percentages_remaining(current_user) |     percentages_remaining = packs |> Ammo.get_percentages_remaining(current_user) | ||||||
|  |  | ||||||
|     ammo_groups = |     packs = | ||||||
|       ammo_groups |       packs | ||||||
|       |> Enum.map(fn %{id: ammo_group_id} = ammo_group -> |       |> Enum.map(fn %{id: pack_id} = pack -> | ||||||
|         ammo_group |         pack | ||||||
|         |> Jason.encode!() |         |> Jason.encode!() | ||||||
|         |> Jason.decode!() |         |> Jason.decode!() | ||||||
|         |> Map.merge(%{ |         |> Map.merge(%{ | ||||||
|           "used_count" => Map.get(used_counts, ammo_group_id), |           "used_count" => Map.get(used_counts, pack_id), | ||||||
|           "percentage_remaining" => Map.fetch!(percentages_remaining, ammo_group_id), |           "percentage_remaining" => Map.fetch!(percentages_remaining, pack_id), | ||||||
|           "original_count" => Map.get(original_counts, ammo_group_id), |           "original_count" => Map.get(original_counts, pack_id), | ||||||
|           "cpr" => Map.get(cprs, ammo_group_id) |           "cpr" => Map.get(cprs, pack_id) | ||||||
|         }) |         }) | ||||||
|       end) |       end) | ||||||
|  |  | ||||||
| @@ -53,14 +52,14 @@ defmodule CanneryWeb.ExportController do | |||||||
|     containers = |     containers = | ||||||
|       Containers.list_containers(current_user) |       Containers.list_containers(current_user) | ||||||
|       |> Enum.map(fn container -> |       |> Enum.map(fn container -> | ||||||
|         ammo_group_count = container |> Ammo.get_ammo_groups_count_for_container!(current_user) |         pack_count = container |> Ammo.get_packs_count_for_container!(current_user) | ||||||
|         round_count = container |> Ammo.get_round_count_for_container!(current_user) |         round_count = container |> Ammo.get_round_count_for_container!(current_user) | ||||||
|  |  | ||||||
|         container |         container | ||||||
|         |> Jason.encode!() |         |> Jason.encode!() | ||||||
|         |> Jason.decode!() |         |> Jason.decode!() | ||||||
|         |> Map.merge(%{ |         |> Map.merge(%{ | ||||||
|           "ammo_group_count" => ammo_group_count, |           "pack_count" => pack_count, | ||||||
|           "round_count" => round_count |           "round_count" => round_count | ||||||
|         }) |         }) | ||||||
|       end) |       end) | ||||||
| @@ -68,7 +67,7 @@ defmodule CanneryWeb.ExportController do | |||||||
|     json(conn, %{ |     json(conn, %{ | ||||||
|       user: current_user, |       user: current_user, | ||||||
|       ammo_types: ammo_types, |       ammo_types: ammo_types, | ||||||
|       ammo_groups: ammo_groups, |       packs: packs, | ||||||
|       shot_groups: shot_groups, |       shot_groups: shot_groups, | ||||||
|       containers: containers |       containers: containers | ||||||
|     }) |     }) | ||||||
|   | |||||||
| @@ -55,7 +55,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do | |||||||
|         ammo_type |> Map.get(field) != default_value |         ammo_type |> Map.get(field) != default_value | ||||||
|       end) |       end) | ||||||
|  |  | ||||||
|     ammo_groups = ammo_type |> Ammo.list_ammo_groups_for_type(current_user, show_used) |     packs = ammo_type |> Ammo.list_packs_for_type(current_user, show_used) | ||||||
|  |  | ||||||
|     [ |     [ | ||||||
|       original_counts, |       original_counts, | ||||||
| @@ -66,9 +66,9 @@ defmodule CanneryWeb.AmmoTypeLive.Show do | |||||||
|     ] = |     ] = | ||||||
|       if show_used do |       if show_used do | ||||||
|         [ |         [ | ||||||
|           ammo_groups |> Ammo.get_original_counts(current_user), |           packs |> Ammo.get_original_counts(current_user), | ||||||
|           ammo_type |> Ammo.get_used_ammo_groups_count_for_type(current_user), |           ammo_type |> Ammo.get_used_packs_count_for_type(current_user), | ||||||
|           ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true), |           ammo_type |> Ammo.get_packs_count_for_type(current_user, true), | ||||||
|           ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user), |           ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user), | ||||||
|           ammo_type |> Ammo.get_historical_count_for_ammo_type(current_user) |           ammo_type |> Ammo.get_historical_count_for_ammo_type(current_user) | ||||||
|         ] |         ] | ||||||
| @@ -83,7 +83,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do | |||||||
|       end |       end | ||||||
|  |  | ||||||
|     containers = |     containers = | ||||||
|       ammo_groups |       packs | ||||||
|       |> Enum.map(fn %{container_id: container_id} -> container_id end) |       |> Enum.map(fn %{container_id: container_id} -> container_id end) | ||||||
|       |> Containers.get_containers(current_user) |       |> Containers.get_containers(current_user) | ||||||
|  |  | ||||||
| @@ -91,16 +91,16 @@ defmodule CanneryWeb.AmmoTypeLive.Show do | |||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: page_title, |       page_title: page_title, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       ammo_groups: ammo_groups, |       packs: packs, | ||||||
|       containers: containers, |       containers: containers, | ||||||
|       cprs: ammo_groups |> Ammo.get_cprs(current_user), |       cprs: packs |> Ammo.get_cprs(current_user), | ||||||
|       last_used_dates: ammo_groups |> ActivityLog.get_last_used_dates(current_user), |       last_used_dates: packs |> ActivityLog.get_last_used_dates(current_user), | ||||||
|       avg_cost_per_round: ammo_type |> Ammo.get_average_cost_for_ammo_type(current_user), |       avg_cost_per_round: ammo_type |> Ammo.get_average_cost_for_ammo_type(current_user), | ||||||
|       rounds: ammo_type |> Ammo.get_round_count_for_ammo_type(current_user), |       rounds: ammo_type |> Ammo.get_round_count_for_ammo_type(current_user), | ||||||
|       original_counts: original_counts, |       original_counts: original_counts, | ||||||
|       used_rounds: used_rounds, |       used_rounds: used_rounds, | ||||||
|       historical_round_count: historical_round_count, |       historical_round_count: historical_round_count, | ||||||
|       packs_count: ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user), |       packs_count: ammo_type |> Ammo.get_packs_count_for_type(current_user), | ||||||
|       used_packs_count: used_packs_count, |       used_packs_count: used_packs_count, | ||||||
|       historical_packs_count: historical_packs_count, |       historical_packs_count: historical_packs_count, | ||||||
|       fields_to_display: fields_to_display(ammo_type), |       fields_to_display: fields_to_display(ammo_type), | ||||||
|   | |||||||
| @@ -175,7 +175,7 @@ | |||||||
|   </div> |   </div> | ||||||
|  |  | ||||||
|   <div class="w-full p-4"> |   <div class="w-full p-4"> | ||||||
|     <%= if @ammo_groups |> Enum.empty?() do %> |     <%= if @packs |> Enum.empty?() do %> | ||||||
|       <h2 class="px-4 title text-lg text-primary-600"> |       <h2 class="px-4 title text-lg text-primary-600"> | ||||||
|         <%= gettext("No ammo for this type") %> |         <%= gettext("No ammo for this type") %> | ||||||
|         <%= display_emoji("😔") %> |         <%= display_emoji("😔") %> | ||||||
| @@ -183,13 +183,13 @@ | |||||||
|     <% else %> |     <% else %> | ||||||
|       <%= if @view_table do %> |       <%= if @view_table do %> | ||||||
|         <.live_component |         <.live_component | ||||||
|           module={CanneryWeb.Components.AmmoGroupTableComponent} |           module={CanneryWeb.Components.PackTableComponent} | ||||||
|           id="ammo-type-show-table" |           id="ammo-type-show-table" | ||||||
|           ammo_groups={@ammo_groups} |           packs={@packs} | ||||||
|           current_user={@current_user} |           current_user={@current_user} | ||||||
|           show_used={@show_used} |           show_used={@show_used} | ||||||
|         > |         > | ||||||
|           <:container :let={{_ammo_group, %{name: container_name} = container}}> |           <:container :let={{_pack, %{name: container_name} = container}}> | ||||||
|             <.link |             <.link | ||||||
|               navigate={Routes.container_show_path(Endpoint, :show, container)} |               navigate={Routes.container_show_path(Endpoint, :show, container)} | ||||||
|               class="mx-2 my-1 link" |               class="mx-2 my-1 link" | ||||||
| @@ -197,15 +197,13 @@ | |||||||
|               <%= container_name %> |               <%= container_name %> | ||||||
|             </.link> |             </.link> | ||||||
|           </:container> |           </:container> | ||||||
|           <:actions :let={%{count: ammo_group_count} = ammo_group}> |           <:actions :let={%{count: pack_count} = pack}> | ||||||
|             <div class="py-2 px-4 h-full space-x-4 flex justify-center items-center"> |             <div class="py-2 px-4 h-full space-x-4 flex justify-center items-center"> | ||||||
|               <.link |               <.link | ||||||
|                 navigate={Routes.ammo_group_show_path(Endpoint, :show, ammo_group)} |                 navigate={Routes.pack_show_path(Endpoint, :show, pack)} | ||||||
|                 class="text-primary-600 link" |                 class="text-primary-600 link" | ||||||
|                 aria-label={ |                 aria-label={ | ||||||
|                   dgettext("actions", "View ammo group of %{ammo_group_count} bullets", |                   dgettext("actions", "View pack of %{pack_count} bullets", pack_count: pack_count) | ||||||
|                     ammo_group_count: ammo_group_count |  | ||||||
|                   ) |  | ||||||
|                 } |                 } | ||||||
|               > |               > | ||||||
|                 <i class="fa-fw fa-lg fas fa-eye"></i> |                 <i class="fa-fw fa-lg fas fa-eye"></i> | ||||||
| @@ -215,12 +213,12 @@ | |||||||
|         </.live_component> |         </.live_component> | ||||||
|       <% else %> |       <% else %> | ||||||
|         <div class="flex flex-wrap justify-center items-stretch"> |         <div class="flex flex-wrap justify-center items-stretch"> | ||||||
|           <.ammo_group_card |           <.pack_card | ||||||
|             :for={%{id: ammo_group_id, container_id: container_id} = ammo_group <- @ammo_groups} |             :for={%{id: pack_id, container_id: container_id} = pack <- @packs} | ||||||
|             ammo_group={ammo_group} |             pack={pack} | ||||||
|             original_count={@original_counts && Map.fetch!(@original_counts, ammo_group_id)} |             original_count={@original_counts && Map.fetch!(@original_counts, pack_id)} | ||||||
|             cpr={Map.get(@cprs, ammo_group_id)} |             cpr={Map.get(@cprs, pack_id)} | ||||||
|             last_used_date={Map.get(@last_used_dates, ammo_group_id)} |             last_used_date={Map.get(@last_used_dates, pack_id)} | ||||||
|             current_user={@current_user} |             current_user={@current_user} | ||||||
|             container={Map.fetch!(@containers, container_id)} |             container={Map.fetch!(@containers, container_id)} | ||||||
|           /> |           /> | ||||||
|   | |||||||
| @@ -79,15 +79,15 @@ defmodule CanneryWeb.ContainerLive.Index do | |||||||
|               prompt = dgettext("prompts", "%{name} has been deleted", name: container_name) |               prompt = dgettext("prompts", "%{name} has been deleted", name: container_name) | ||||||
|               socket |> put_flash(:info, prompt) |> display_containers() |               socket |> put_flash(:info, prompt) |> display_containers() | ||||||
|  |  | ||||||
|             {:error, %{action: :delete, errors: [ammo_groups: _error], valid?: false} = changeset} -> |             {:error, %{action: :delete, errors: [packs: _error], valid?: false} = changeset} -> | ||||||
|               ammo_groups_error = changeset |> changeset_errors(:ammo_groups) |> Enum.join(", ") |               packs_error = changeset |> changeset_errors(:packs) |> Enum.join(", ") | ||||||
|  |  | ||||||
|               prompt = |               prompt = | ||||||
|                 dgettext( |                 dgettext( | ||||||
|                   "errors", |                   "errors", | ||||||
|                   "Could not delete %{name}: %{error}", |                   "Could not delete %{name}: %{error}", | ||||||
|                   name: changeset |> Changeset.get_field(:name, "container"), |                   name: changeset |> Changeset.get_field(:name, "container"), | ||||||
|                   error: ammo_groups_error |                   error: packs_error | ||||||
|                 ) |                 ) | ||||||
|  |  | ||||||
|               socket |> put_flash(:error, prompt) |               socket |> put_flash(:error, prompt) | ||||||
|   | |||||||
| @@ -64,13 +64,13 @@ defmodule CanneryWeb.ContainerLive.Show do | |||||||
|           |> put_flash(:info, prompt) |           |> put_flash(:info, prompt) | ||||||
|           |> push_navigate(to: Routes.container_index_path(socket, :index)) |           |> push_navigate(to: Routes.container_index_path(socket, :index)) | ||||||
|  |  | ||||||
|         {:error, %{action: :delete, errors: [ammo_groups: _error], valid?: false} = changeset} -> |         {:error, %{action: :delete, errors: [packs: _error], valid?: false} = changeset} -> | ||||||
|           ammo_groups_error = changeset |> changeset_errors(:ammo_groups) |> Enum.join(", ") |           packs_error = changeset |> changeset_errors(:packs) |> Enum.join(", ") | ||||||
|  |  | ||||||
|           prompt = |           prompt = | ||||||
|             dgettext("errors", "Could not delete %{name}: %{error}", |             dgettext("errors", "Could not delete %{name}: %{error}", | ||||||
|               name: changeset |> Changeset.get_field(:name, "container"), |               name: changeset |> Changeset.get_field(:name, "container"), | ||||||
|               error: ammo_groups_error |               error: packs_error | ||||||
|             ) |             ) | ||||||
|  |  | ||||||
|           socket |> put_flash(:error, prompt) |           socket |> put_flash(:error, prompt) | ||||||
| @@ -109,10 +109,10 @@ defmodule CanneryWeb.ContainerLive.Show do | |||||||
|          current_user |          current_user | ||||||
|        ) do |        ) do | ||||||
|     %{name: container_name} = container = Containers.get_container!(id, current_user) |     %{name: container_name} = container = Containers.get_container!(id, current_user) | ||||||
|     ammo_groups = Ammo.list_ammo_groups_for_container(container, class, current_user) |     packs = Ammo.list_packs_for_container(container, class, current_user) | ||||||
|     original_counts = ammo_groups |> Ammo.get_original_counts(current_user) |     original_counts = packs |> Ammo.get_original_counts(current_user) | ||||||
|     cprs = ammo_groups |> Ammo.get_cprs(current_user) |     cprs = packs |> Ammo.get_cprs(current_user) | ||||||
|     last_used_dates = ammo_groups |> ActivityLog.get_last_used_dates(current_user) |     last_used_dates = packs |> ActivityLog.get_last_used_dates(current_user) | ||||||
|  |  | ||||||
|     page_title = |     page_title = | ||||||
|       case live_action do |       case live_action do | ||||||
| @@ -125,8 +125,8 @@ defmodule CanneryWeb.ContainerLive.Show do | |||||||
|     |> assign( |     |> assign( | ||||||
|       container: container, |       container: container, | ||||||
|       round_count: Ammo.get_round_count_for_container!(container, current_user), |       round_count: Ammo.get_round_count_for_container!(container, current_user), | ||||||
|       ammo_groups_count: Ammo.get_ammo_groups_count_for_container!(container, current_user), |       packs_count: Ammo.get_packs_count_for_container!(container, current_user), | ||||||
|       ammo_groups: ammo_groups, |       packs: packs, | ||||||
|       original_counts: original_counts, |       original_counts: original_counts, | ||||||
|       cprs: cprs, |       cprs: cprs, | ||||||
|       last_used_dates: last_used_dates, |       last_used_dates: last_used_dates, | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ | |||||||
|  |  | ||||||
|   <span class="rounded-lg title text-lg"> |   <span class="rounded-lg title text-lg"> | ||||||
|     <%= gettext("Packs:") %> |     <%= gettext("Packs:") %> | ||||||
|     <%= @ammo_groups_count %> |     <%= @packs_count %> | ||||||
|   </span> |   </span> | ||||||
|  |  | ||||||
|   <span class="rounded-lg title text-lg"> |   <span class="rounded-lg title text-lg"> | ||||||
| @@ -118,16 +118,16 @@ | |||||||
|   </div> |   </div> | ||||||
|  |  | ||||||
|   <div class="w-full p-4"> |   <div class="w-full p-4"> | ||||||
|     <%= if @ammo_groups |> Enum.empty?() do %> |     <%= if @packs |> Enum.empty?() do %> | ||||||
|       <h2 class="mx-4 title text-lg text-primary-600 text-center"> |       <h2 class="mx-4 title text-lg text-primary-600 text-center"> | ||||||
|         <%= gettext("No ammo in this container") %> |         <%= gettext("No ammo in this container") %> | ||||||
|       </h2> |       </h2> | ||||||
|     <% else %> |     <% else %> | ||||||
|       <%= if @view_table do %> |       <%= if @view_table do %> | ||||||
|         <.live_component |         <.live_component | ||||||
|           module={CanneryWeb.Components.AmmoGroupTableComponent} |           module={CanneryWeb.Components.PackTableComponent} | ||||||
|           id="ammo-type-show-table" |           id="ammo-type-show-table" | ||||||
|           ammo_groups={@ammo_groups} |           packs={@packs} | ||||||
|           current_user={@current_user} |           current_user={@current_user} | ||||||
|           show_used={false} |           show_used={false} | ||||||
|         > |         > | ||||||
| @@ -139,12 +139,12 @@ | |||||||
|         </.live_component> |         </.live_component> | ||||||
|       <% else %> |       <% else %> | ||||||
|         <div class="flex flex-wrap justify-center items-stretch"> |         <div class="flex flex-wrap justify-center items-stretch"> | ||||||
|           <.ammo_group_card |           <.pack_card | ||||||
|             :for={%{id: ammo_group_id} = ammo_group <- @ammo_groups} |             :for={%{id: pack_id} = pack <- @packs} | ||||||
|             ammo_group={ammo_group} |             pack={pack} | ||||||
|             original_count={Map.fetch!(@original_counts, ammo_group_id)} |             original_count={Map.fetch!(@original_counts, pack_id)} | ||||||
|             cpr={Map.get(@cprs, ammo_group_id)} |             cpr={Map.get(@cprs, pack_id)} | ||||||
|             last_used_date={Map.get(@last_used_dates, ammo_group_id)} |             last_used_date={Map.get(@last_used_dates, pack_id)} | ||||||
|             current_user={@current_user} |             current_user={@current_user} | ||||||
|           /> |           /> | ||||||
|         </div> |         </div> | ||||||
|   | |||||||
| @@ -1,22 +1,22 @@ | |||||||
| defmodule CanneryWeb.AmmoGroupLive.FormComponent do | defmodule CanneryWeb.PackLive.FormComponent do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   Livecomponent that can update or create an Cannery.Ammo.AmmoGroup |   Livecomponent that can update or create an Cannery.Ammo.Pack | ||||||
|   """ |   """ | ||||||
| 
 | 
 | ||||||
|   use CanneryWeb, :live_component |   use CanneryWeb, :live_component | ||||||
|   alias Cannery.Ammo.{AmmoGroup, AmmoType} |   alias Cannery.Ammo.{AmmoType, Pack} | ||||||
|   alias Cannery.{Accounts.User, Ammo, Containers, Containers.Container} |   alias Cannery.{Accounts.User, Ammo, Containers, Containers.Container} | ||||||
|   alias Ecto.Changeset |   alias Ecto.Changeset | ||||||
|   alias Phoenix.LiveView.Socket |   alias Phoenix.LiveView.Socket | ||||||
| 
 | 
 | ||||||
|   @ammo_group_create_limit 10_000 |   @pack_create_limit 10_000 | ||||||
| 
 | 
 | ||||||
|   @impl true |   @impl true | ||||||
|   @spec update( |   @spec update( | ||||||
|           %{:ammo_group => AmmoGroup.t(), :current_user => User.t(), optional(any) => any}, |           %{:pack => Pack.t(), :current_user => User.t(), optional(any) => any}, | ||||||
|           Socket.t() |           Socket.t() | ||||||
|         ) :: {:ok, Socket.t()} |         ) :: {:ok, Socket.t()} | ||||||
|   def update(%{ammo_group: _ammo_group} = assigns, socket) do |   def update(%{pack: _pack} = assigns, socket) do | ||||||
|     socket |> assign(assigns) |> update() |     socket |> assign(assigns) |> update() | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -25,7 +25,7 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
|     %{assigns: %{ammo_types: ammo_types, containers: containers}} = |     %{assigns: %{ammo_types: ammo_types, containers: containers}} = | ||||||
|       socket = |       socket = | ||||||
|       socket |       socket | ||||||
|       |> assign(:ammo_group_create_limit, @ammo_group_create_limit) |       |> assign(:pack_create_limit, @pack_create_limit) | ||||||
|       |> assign(:ammo_types, Ammo.list_ammo_types(current_user, :all)) |       |> assign(:ammo_types, Ammo.list_ammo_types(current_user, :all)) | ||||||
|       |> assign_new(:containers, fn -> Containers.list_containers(current_user) end) |       |> assign_new(:containers, fn -> Containers.list_containers(current_user) end) | ||||||
| 
 | 
 | ||||||
| @@ -43,16 +43,16 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @impl true |   @impl true | ||||||
|   def handle_event("validate", %{"ammo_group" => ammo_group_params}, socket) do |   def handle_event("validate", %{"pack" => pack_params}, socket) do | ||||||
|     {:noreply, socket |> assign_changeset(ammo_group_params, :validate)} |     {:noreply, socket |> assign_changeset(pack_params, :validate)} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event( |   def handle_event( | ||||||
|         "save", |         "save", | ||||||
|         %{"ammo_group" => ammo_group_params}, |         %{"pack" => pack_params}, | ||||||
|         %{assigns: %{action: action}} = socket |         %{assigns: %{action: action}} = socket | ||||||
|       ) do |       ) do | ||||||
|     save_ammo_group(socket, action, ammo_group_params) |     save_pack(socket, action, pack_params) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   # HTML Helpers |   # HTML Helpers | ||||||
| @@ -70,8 +70,8 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
|   # Save Helpers |   # Save Helpers | ||||||
| 
 | 
 | ||||||
|   defp assign_changeset( |   defp assign_changeset( | ||||||
|          %{assigns: %{action: action, ammo_group: ammo_group, current_user: user}} = socket, |          %{assigns: %{action: action, pack: pack, current_user: user}} = socket, | ||||||
|          ammo_group_params, |          pack_params, | ||||||
|          changeset_action \\ nil |          changeset_action \\ nil | ||||||
|        ) do |        ) do | ||||||
|     default_action = |     default_action = | ||||||
| @@ -83,12 +83,12 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
|     changeset = |     changeset = | ||||||
|       case default_action do |       case default_action do | ||||||
|         :insert -> |         :insert -> | ||||||
|           ammo_type = maybe_get_ammo_type(ammo_group_params, user) |           ammo_type = maybe_get_ammo_type(pack_params, user) | ||||||
|           container = maybe_get_container(ammo_group_params, user) |           container = maybe_get_container(pack_params, user) | ||||||
|           ammo_group |> AmmoGroup.create_changeset(ammo_type, container, user, ammo_group_params) |           pack |> Pack.create_changeset(ammo_type, container, user, pack_params) | ||||||
| 
 | 
 | ||||||
|         :update -> |         :update -> | ||||||
|           ammo_group |> AmmoGroup.update_changeset(ammo_group_params, user) |           pack |> Pack.update_changeset(pack_params, user) | ||||||
|       end |       end | ||||||
| 
 | 
 | ||||||
|     changeset = |     changeset = | ||||||
| @@ -114,15 +114,14 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
| 
 | 
 | ||||||
|   defp maybe_get_ammo_type(_params_not_found, _user), do: nil |   defp maybe_get_ammo_type(_params_not_found, _user), do: nil | ||||||
| 
 | 
 | ||||||
|   defp save_ammo_group( |   defp save_pack( | ||||||
|          %{assigns: %{ammo_group: ammo_group, current_user: current_user, return_to: return_to}} = |          %{assigns: %{pack: pack, current_user: current_user, return_to: return_to}} = socket, | ||||||
|            socket, |  | ||||||
|          :edit, |          :edit, | ||||||
|          ammo_group_params |          pack_params | ||||||
|        ) do |        ) do | ||||||
|     socket = |     socket = | ||||||
|       case Ammo.update_ammo_group(ammo_group, ammo_group_params, current_user) do |       case Ammo.update_pack(pack, pack_params, current_user) do | ||||||
|         {:ok, _ammo_group} -> |         {:ok, _pack} -> | ||||||
|           prompt = dgettext("prompts", "Ammo updated successfully") |           prompt = dgettext("prompts", "Ammo updated successfully") | ||||||
|           socket |> put_flash(:info, prompt) |> push_navigate(to: return_to) |           socket |> put_flash(:info, prompt) |> push_navigate(to: return_to) | ||||||
| 
 | 
 | ||||||
| @@ -133,24 +132,24 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
|     {:noreply, socket} |     {:noreply, socket} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp save_ammo_group( |   defp save_pack( | ||||||
|          %{assigns: %{changeset: changeset}} = socket, |          %{assigns: %{changeset: changeset}} = socket, | ||||||
|          action, |          action, | ||||||
|          %{"multiplier" => multiplier_str} = ammo_group_params |          %{"multiplier" => multiplier_str} = pack_params | ||||||
|        ) |        ) | ||||||
|        when action in [:new, :clone] do |        when action in [:new, :clone] do | ||||||
|     socket = |     socket = | ||||||
|       case multiplier_str |> Integer.parse() do |       case multiplier_str |> Integer.parse() do | ||||||
|         {multiplier, _remainder} |         {multiplier, _remainder} | ||||||
|         when multiplier >= 1 and multiplier <= @ammo_group_create_limit -> |         when multiplier >= 1 and multiplier <= @pack_create_limit -> | ||||||
|           socket |> create_multiple(ammo_group_params, multiplier) |           socket |> create_multiple(pack_params, multiplier) | ||||||
| 
 | 
 | ||||||
|         {multiplier, _remainder} -> |         {multiplier, _remainder} -> | ||||||
|           error_msg = |           error_msg = | ||||||
|             dgettext( |             dgettext( | ||||||
|               "errors", |               "errors", | ||||||
|               "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}", |               "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}", | ||||||
|               max: @ammo_group_create_limit, |               max: @pack_create_limit, | ||||||
|               multiplier: multiplier |               multiplier: multiplier | ||||||
|             ) |             ) | ||||||
| 
 | 
 | ||||||
| @@ -176,11 +175,11 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do | |||||||
| 
 | 
 | ||||||
|   defp create_multiple( |   defp create_multiple( | ||||||
|          %{assigns: %{current_user: current_user, return_to: return_to}} = socket, |          %{assigns: %{current_user: current_user, return_to: return_to}} = socket, | ||||||
|          ammo_group_params, |          pack_params, | ||||||
|          multiplier |          multiplier | ||||||
|        ) do |        ) do | ||||||
|     case Ammo.create_ammo_groups(ammo_group_params, multiplier, current_user) do |     case Ammo.create_packs(pack_params, multiplier, current_user) do | ||||||
|       {:ok, {count, _ammo_groups}} -> |       {:ok, {count, _packs}} -> | ||||||
|         prompt = |         prompt = | ||||||
|           dngettext( |           dngettext( | ||||||
|             "prompts", |             "prompts", | ||||||
| @@ -6,7 +6,7 @@ | |||||||
|   <.form |   <.form | ||||||
|     :let={f} |     :let={f} | ||||||
|     for={@changeset} |     for={@changeset} | ||||||
|     id="ammo_group-form" |     id="pack-form" | ||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
| @@ -68,7 +68,7 @@ | |||||||
| 
 | 
 | ||||||
|         <%= label(f, :multiplier, gettext("Copies"), class: "title text-lg text-primary-600") %> |         <%= label(f, :multiplier, gettext("Copies"), class: "title text-lg text-primary-600") %> | ||||||
|         <%= number_input(f, :multiplier, |         <%= number_input(f, :multiplier, | ||||||
|           max: @ammo_group_create_limit, |           max: @pack_create_limit, | ||||||
|           class: "text-center input input-primary", |           class: "text-center input input-primary", | ||||||
|           value: 1, |           value: 1, | ||||||
|           phx_update: "ignore" |           phx_update: "ignore" | ||||||
| @@ -1,28 +1,28 @@ | |||||||
| defmodule CanneryWeb.AmmoGroupLive.Index do | defmodule CanneryWeb.PackLive.Index do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   Liveview to show a Cannery.Ammo.AmmoGroup index |   Liveview to show a Cannery.Ammo.Pack index | ||||||
|   """ |   """ | ||||||
| 
 | 
 | ||||||
|   use CanneryWeb, :live_view |   use CanneryWeb, :live_view | ||||||
|   alias Cannery.{Ammo, Ammo.AmmoGroup, Containers} |   alias Cannery.{Ammo, Ammo.Pack, Containers} | ||||||
| 
 | 
 | ||||||
|   @impl true |   @impl true | ||||||
|   def mount(%{"search" => search}, _session, socket) do |   def mount(%{"search" => search}, _session, socket) do | ||||||
|     socket = |     socket = | ||||||
|       socket |       socket | ||||||
|       |> assign(class: :all, show_used: false, search: search) |       |> assign(class: :all, show_used: false, search: search) | ||||||
|       |> display_ammo_groups() |       |> display_packs() | ||||||
| 
 | 
 | ||||||
|     {:ok, socket} |     {:ok, socket} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def mount(_params, _session, socket) do |   def mount(_params, _session, socket) do | ||||||
|     {:ok, socket |> assign(class: :all, show_used: false, search: nil) |> display_ammo_groups()} |     {:ok, socket |> assign(class: :all, show_used: false, search: nil) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @impl true |   @impl true | ||||||
|   def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do |   def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do | ||||||
|     {:noreply, apply_action(socket, live_action, params) |> display_ammo_groups()} |     {:noreply, apply_action(socket, live_action, params) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp apply_action( |   defp apply_action( | ||||||
| @@ -33,7 +33,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: gettext("Record shots"), |       page_title: gettext("Record shots"), | ||||||
|       ammo_group: Ammo.get_ammo_group!(id, current_user) |       pack: Ammo.get_pack!(id, current_user) | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -41,7 +41,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: gettext("Move ammo"), |       page_title: gettext("Move ammo"), | ||||||
|       ammo_group: Ammo.get_ammo_group!(id, current_user) |       pack: Ammo.get_pack!(id, current_user) | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -49,7 +49,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: gettext("Edit ammo"), |       page_title: gettext("Edit ammo"), | ||||||
|       ammo_group: Ammo.get_ammo_group!(id, current_user) |       pack: Ammo.get_pack!(id, current_user) | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -57,7 +57,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: dgettext("actions", "Add Ammo"), |       page_title: dgettext("actions", "Add Ammo"), | ||||||
|       ammo_group: %{Ammo.get_ammo_group!(id, current_user) | id: nil} |       pack: %{Ammo.get_pack!(id, current_user) | id: nil} | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -65,7 +65,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: dgettext("actions", "Add Ammo"), |       page_title: dgettext("actions", "Add Ammo"), | ||||||
|       ammo_group: %AmmoGroup{} |       pack: %Pack{} | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -74,7 +74,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: gettext("Ammo"), |       page_title: gettext("Ammo"), | ||||||
|       search: nil, |       search: nil, | ||||||
|       ammo_group: nil |       pack: nil | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
| @@ -83,64 +83,62 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: gettext("Ammo"), |       page_title: gettext("Ammo"), | ||||||
|       search: search, |       search: search, | ||||||
|       ammo_group: nil |       pack: nil | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @impl true |   @impl true | ||||||
|   def handle_event("delete", %{"id" => id}, %{assigns: %{current_user: current_user}} = socket) do |   def handle_event("delete", %{"id" => id}, %{assigns: %{current_user: current_user}} = socket) do | ||||||
|     Ammo.get_ammo_group!(id, current_user) |> Ammo.delete_ammo_group!(current_user) |     Ammo.get_pack!(id, current_user) |> Ammo.delete_pack!(current_user) | ||||||
| 
 | 
 | ||||||
|     prompt = dgettext("prompts", "Ammo deleted succesfully") |     prompt = dgettext("prompts", "Ammo deleted succesfully") | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket |> put_flash(:info, prompt) |> display_ammo_groups()} |     {:noreply, socket |> put_flash(:info, prompt) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event( |   def handle_event( | ||||||
|         "toggle_staged", |         "toggle_staged", | ||||||
|         %{"ammo_group_id" => id}, |         %{"pack_id" => id}, | ||||||
|         %{assigns: %{current_user: current_user}} = socket |         %{assigns: %{current_user: current_user}} = socket | ||||||
|       ) do |       ) do | ||||||
|     ammo_group = Ammo.get_ammo_group!(id, current_user) |     pack = Ammo.get_pack!(id, current_user) | ||||||
| 
 | 
 | ||||||
|     {:ok, _ammo_group} = |     {:ok, _pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user) | ||||||
|       ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user) |  | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket |> display_ammo_groups()} |     {:noreply, socket |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("toggle_show_used", _params, %{assigns: %{show_used: show_used}} = socket) do |   def handle_event("toggle_show_used", _params, %{assigns: %{show_used: show_used}} = socket) do | ||||||
|     {:noreply, socket |> assign(:show_used, !show_used) |> display_ammo_groups()} |     {:noreply, socket |> assign(:show_used, !show_used) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do |   def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do | ||||||
|     {:noreply, socket |> push_patch(to: Routes.ammo_group_index_path(Endpoint, :index))} |     {:noreply, socket |> push_patch(to: Routes.pack_index_path(Endpoint, :index))} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do |   def handle_event("search", %{"search" => %{"search_term" => search_term}}, socket) do | ||||||
|     socket = |     socket = socket |> push_patch(to: Routes.pack_index_path(Endpoint, :search, search_term)) | ||||||
|       socket |> push_patch(to: Routes.ammo_group_index_path(Endpoint, :search, search_term)) |  | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket} |     {:noreply, socket} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("change_class", %{"ammo_type" => %{"class" => "rifle"}}, socket) do |   def handle_event("change_class", %{"ammo_type" => %{"class" => "rifle"}}, socket) do | ||||||
|     {:noreply, socket |> assign(:class, :rifle) |> display_ammo_groups()} |     {:noreply, socket |> assign(:class, :rifle) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("change_class", %{"ammo_type" => %{"class" => "shotgun"}}, socket) do |   def handle_event("change_class", %{"ammo_type" => %{"class" => "shotgun"}}, socket) do | ||||||
|     {:noreply, socket |> assign(:class, :shotgun) |> display_ammo_groups()} |     {:noreply, socket |> assign(:class, :shotgun) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("change_class", %{"ammo_type" => %{"class" => "pistol"}}, socket) do |   def handle_event("change_class", %{"ammo_type" => %{"class" => "pistol"}}, socket) do | ||||||
|     {:noreply, socket |> assign(:class, :pistol) |> display_ammo_groups()} |     {:noreply, socket |> assign(:class, :pistol) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event("change_class", %{"ammo_type" => %{"class" => _all}}, socket) do |   def handle_event("change_class", %{"ammo_type" => %{"class" => _all}}, socket) do | ||||||
|     {:noreply, socket |> assign(:class, :all) |> display_ammo_groups()} |     {:noreply, socket |> assign(:class, :all) |> display_packs()} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp display_ammo_groups( |   defp display_packs( | ||||||
|          %{ |          %{ | ||||||
|            assigns: %{ |            assigns: %{ | ||||||
|              class: class, |              class: class, | ||||||
| @@ -150,19 +148,19 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|            } |            } | ||||||
|          } = socket |          } = socket | ||||||
|        ) do |        ) do | ||||||
|     # get total number of ammo groups to determine whether to display onboarding |     # get total number of packs to determine whether to display onboarding | ||||||
|     # prompts |     # prompts | ||||||
|     ammo_groups_count = Ammo.get_ammo_groups_count!(current_user, true) |     packs_count = Ammo.get_packs_count!(current_user, true) | ||||||
|     ammo_groups = Ammo.list_ammo_groups(search, class, current_user, show_used) |     packs = Ammo.list_packs(search, class, current_user, show_used) | ||||||
|     ammo_types_count = Ammo.get_ammo_types_count!(current_user) |     ammo_types_count = Ammo.get_ammo_types_count!(current_user) | ||||||
|     containers_count = Containers.get_containers_count!(current_user) |     containers_count = Containers.get_containers_count!(current_user) | ||||||
| 
 | 
 | ||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       ammo_groups: ammo_groups, |       packs: packs, | ||||||
|       ammo_types_count: ammo_types_count, |       ammo_types_count: ammo_types_count, | ||||||
|       containers_count: containers_count, |       containers_count: containers_count, | ||||||
|       ammo_groups_count: ammo_groups_count |       packs_count: packs_count | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| end | end | ||||||
| @@ -24,17 +24,17 @@ | |||||||
|           <%= dgettext("actions", "add an ammo type first") %> |           <%= dgettext("actions", "add an ammo type first") %> | ||||||
|         </.link> |         </.link> | ||||||
|       </div> |       </div> | ||||||
|     <% @ammo_groups_count == 0 -> %> |     <% @packs_count == 0 -> %> | ||||||
|       <h2 class="title text-xl text-primary-600"> |       <h2 class="title text-xl text-primary-600"> | ||||||
|         <%= gettext("No ammo") %> |         <%= gettext("No ammo") %> | ||||||
|         <%= display_emoji("😔") %> |         <%= display_emoji("😔") %> | ||||||
|       </h2> |       </h2> | ||||||
| 
 | 
 | ||||||
|       <.link patch={Routes.ammo_group_index_path(Endpoint, :new)} class="btn btn-primary"> |       <.link patch={Routes.pack_index_path(Endpoint, :new)} class="btn btn-primary"> | ||||||
|         <%= dgettext("actions", "Add your first box!") %> |         <%= dgettext("actions", "Add your first box!") %> | ||||||
|       </.link> |       </.link> | ||||||
|     <% true -> %> |     <% true -> %> | ||||||
|       <.link patch={Routes.ammo_group_index_path(Endpoint, :new)} class="btn btn-primary"> |       <.link patch={Routes.pack_index_path(Endpoint, :new)} class="btn btn-primary"> | ||||||
|         <%= dgettext("actions", "Add Ammo") %> |         <%= dgettext("actions", "Add Ammo") %> | ||||||
|       </.link> |       </.link> | ||||||
| 
 | 
 | ||||||
| @@ -89,16 +89,16 @@ | |||||||
|         </.toggle_button> |         </.toggle_button> | ||||||
|       </div> |       </div> | ||||||
| 
 | 
 | ||||||
|       <%= if @ammo_groups |> Enum.empty?() do %> |       <%= if @packs |> Enum.empty?() do %> | ||||||
|         <h2 class="title text-xl text-primary-600"> |         <h2 class="title text-xl text-primary-600"> | ||||||
|           <%= gettext("No Ammo") %> |           <%= gettext("No Ammo") %> | ||||||
|           <%= display_emoji("😔") %> |           <%= display_emoji("😔") %> | ||||||
|         </h2> |         </h2> | ||||||
|       <% else %> |       <% else %> | ||||||
|         <.live_component |         <.live_component | ||||||
|           module={CanneryWeb.Components.AmmoGroupTableComponent} |           module={CanneryWeb.Components.PackTableComponent} | ||||||
|           id="ammo-group-index-table" |           id="ammo-group-index-table" | ||||||
|           ammo_groups={@ammo_groups} |           packs={@packs} | ||||||
|           current_user={@current_user} |           current_user={@current_user} | ||||||
|           show_used={@show_used} |           show_used={@show_used} | ||||||
|         > |         > | ||||||
| @@ -107,28 +107,28 @@ | |||||||
|               <%= ammo_type_name %> |               <%= ammo_type_name %> | ||||||
|             </.link> |             </.link> | ||||||
|           </:ammo_type> |           </:ammo_type> | ||||||
|           <:range :let={ammo_group}> |           <:range :let={pack}> | ||||||
|             <div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center"> |             <div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center"> | ||||||
|               <button |               <button | ||||||
|                 type="button" |                 type="button" | ||||||
|                 class="mx-2 my-1 text-sm btn btn-primary" |                 class="mx-2 my-1 text-sm btn btn-primary" | ||||||
|                 phx-click="toggle_staged" |                 phx-click="toggle_staged" | ||||||
|                 phx-value-ammo_group_id={ammo_group.id} |                 phx-value-pack_id={pack.id} | ||||||
|               > |               > | ||||||
|                 <%= if ammo_group.staged, |                 <%= if pack.staged, | ||||||
|                   do: dgettext("actions", "Unstage"), |                   do: dgettext("actions", "Unstage"), | ||||||
|                   else: dgettext("actions", "Stage") %> |                   else: dgettext("actions", "Stage") %> | ||||||
|               </button> |               </button> | ||||||
| 
 | 
 | ||||||
|               <.link |               <.link | ||||||
|                 patch={Routes.ammo_group_index_path(Endpoint, :add_shot_group, ammo_group)} |                 patch={Routes.pack_index_path(Endpoint, :add_shot_group, pack)} | ||||||
|                 class="mx-2 my-1 text-sm btn btn-primary" |                 class="mx-2 my-1 text-sm btn btn-primary" | ||||||
|               > |               > | ||||||
|                 <%= dgettext("actions", "Record shots") %> |                 <%= dgettext("actions", "Record shots") %> | ||||||
|               </.link> |               </.link> | ||||||
|             </div> |             </div> | ||||||
|           </:range> |           </:range> | ||||||
|           <:container :let={{ammo_group, %{name: container_name} = container}}> |           <:container :let={{pack, %{name: container_name} = container}}> | ||||||
|             <div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center"> |             <div class="min-w-20 py-2 px-4 h-full flex flew-wrap justify-center items-center"> | ||||||
|               <.link |               <.link | ||||||
|                 navigate={Routes.container_show_path(Endpoint, :show, container)} |                 navigate={Routes.container_show_path(Endpoint, :show, container)} | ||||||
| @@ -138,45 +138,41 @@ | |||||||
|               </.link> |               </.link> | ||||||
| 
 | 
 | ||||||
|               <.link |               <.link | ||||||
|                 patch={Routes.ammo_group_index_path(Endpoint, :move, ammo_group)} |                 patch={Routes.pack_index_path(Endpoint, :move, pack)} | ||||||
|                 class="mx-2 my-1 text-sm btn btn-primary" |                 class="mx-2 my-1 text-sm btn btn-primary" | ||||||
|               > |               > | ||||||
|                 <%= dgettext("actions", "Move ammo") %> |                 <%= dgettext("actions", "Move ammo") %> | ||||||
|               </.link> |               </.link> | ||||||
|             </div> |             </div> | ||||||
|           </:container> |           </:container> | ||||||
|           <:actions :let={%{count: ammo_group_count} = ammo_group}> |           <:actions :let={%{count: pack_count} = pack}> | ||||||
|             <div class="py-2 px-4 h-full space-x-4 flex justify-center items-center"> |             <div class="py-2 px-4 h-full space-x-4 flex justify-center items-center"> | ||||||
|               <.link |               <.link | ||||||
|                 navigate={Routes.ammo_group_show_path(Endpoint, :show, ammo_group)} |                 navigate={Routes.pack_show_path(Endpoint, :show, pack)} | ||||||
|                 class="text-primary-600 link" |                 class="text-primary-600 link" | ||||||
|                 aria-label={ |                 aria-label={ | ||||||
|                   dgettext("actions", "View ammo group of %{ammo_group_count} bullets", |                   dgettext("actions", "View pack of %{pack_count} bullets", pack_count: pack_count) | ||||||
|                     ammo_group_count: ammo_group_count |  | ||||||
|                   ) |  | ||||||
|                 } |                 } | ||||||
|               > |               > | ||||||
|                 <i class="fa-fw fa-lg fas fa-eye"></i> |                 <i class="fa-fw fa-lg fas fa-eye"></i> | ||||||
|               </.link> |               </.link> | ||||||
| 
 | 
 | ||||||
|               <.link |               <.link | ||||||
|                 patch={Routes.ammo_group_index_path(Endpoint, :edit, ammo_group)} |                 patch={Routes.pack_index_path(Endpoint, :edit, pack)} | ||||||
|                 class="text-primary-600 link" |                 class="text-primary-600 link" | ||||||
|                 aria-label={ |                 aria-label={ | ||||||
|                   dgettext("actions", "Edit ammo group of %{ammo_group_count} bullets", |                   dgettext("actions", "Edit pack of %{pack_count} bullets", pack_count: pack_count) | ||||||
|                     ammo_group_count: ammo_group_count |  | ||||||
|                   ) |  | ||||||
|                 } |                 } | ||||||
|               > |               > | ||||||
|                 <i class="fa-fw fa-lg fas fa-edit"></i> |                 <i class="fa-fw fa-lg fas fa-edit"></i> | ||||||
|               </.link> |               </.link> | ||||||
| 
 | 
 | ||||||
|               <.link |               <.link | ||||||
|                 patch={Routes.ammo_group_index_path(Endpoint, :clone, ammo_group)} |                 patch={Routes.pack_index_path(Endpoint, :clone, pack)} | ||||||
|                 class="text-primary-600 link" |                 class="text-primary-600 link" | ||||||
|                 aria-label={ |                 aria-label={ | ||||||
|                   dgettext("actions", "Clone ammo group of %{ammo_group_count} bullets", |                   dgettext("actions", "Clone pack of %{pack_count} bullets", | ||||||
|                     ammo_group_count: ammo_group_count |                     pack_count: pack_count | ||||||
|                   ) |                   ) | ||||||
|                 } |                 } | ||||||
|               > |               > | ||||||
| @@ -187,11 +183,11 @@ | |||||||
|                 href="#" |                 href="#" | ||||||
|                 class="text-primary-600 link" |                 class="text-primary-600 link" | ||||||
|                 phx-click="delete" |                 phx-click="delete" | ||||||
|                 phx-value-id={ammo_group.id} |                 phx-value-id={pack.id} | ||||||
|                 data-confirm={dgettext("prompts", "Are you sure you want to delete this ammo?")} |                 data-confirm={dgettext("prompts", "Are you sure you want to delete this ammo?")} | ||||||
|                 aria-label={ |                 aria-label={ | ||||||
|                   dgettext("actions", "Delete ammo group of %{ammo_group_count} bullets", |                   dgettext("actions", "Delete pack of %{pack_count} bullets", | ||||||
|                     ammo_group_count: ammo_group_count |                     pack_count: pack_count | ||||||
|                   ) |                   ) | ||||||
|                 } |                 } | ||||||
|               > |               > | ||||||
| @@ -206,38 +202,38 @@ | |||||||
| 
 | 
 | ||||||
| <%= case @live_action do %> | <%= case @live_action do %> | ||||||
|   <% create when create in [:new, :edit, :clone] -> %> |   <% create when create in [:new, :edit, :clone] -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_index_path(Endpoint, :index)}> |     <.modal return_to={Routes.pack_index_path(Endpoint, :index)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.AmmoGroupLive.FormComponent} |         module={CanneryWeb.PackLive.FormComponent} | ||||||
|         id={@ammo_group.id || :new} |         id={@pack.id || :new} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.ammo_group_index_path(Endpoint, :index)} |         return_to={Routes.pack_index_path(Endpoint, :index)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
|   <% :add_shot_group -> %> |   <% :add_shot_group -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_index_path(Endpoint, :index)}> |     <.modal return_to={Routes.pack_index_path(Endpoint, :index)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.Components.AddShotGroupComponent} |         module={CanneryWeb.Components.AddShotGroupComponent} | ||||||
|         id={:new} |         id={:new} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.ammo_group_index_path(Endpoint, :index)} |         return_to={Routes.pack_index_path(Endpoint, :index)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
|   <% :move -> %> |   <% :move -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_index_path(Endpoint, :index)}> |     <.modal return_to={Routes.pack_index_path(Endpoint, :index)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.Components.MoveAmmoGroupComponent} |         module={CanneryWeb.Components.MovePackComponent} | ||||||
|         id={@ammo_group.id} |         id={@pack.id} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.ammo_group_index_path(Endpoint, :index)} |         return_to={Routes.pack_index_path(Endpoint, :index)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
| @@ -1,11 +1,11 @@ | |||||||
| defmodule CanneryWeb.AmmoGroupLive.Show do | defmodule CanneryWeb.PackLive.Show do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   Liveview for showing and editing an Cannery.Ammo.AmmoGroup |   Liveview for showing and editing an Cannery.Ammo.Pack | ||||||
|   """ |   """ | ||||||
| 
 | 
 | ||||||
|   use CanneryWeb, :live_view |   use CanneryWeb, :live_view | ||||||
|   alias Cannery.{ActivityLog, ActivityLog.ShotGroup} |   alias Cannery.{ActivityLog, ActivityLog.ShotGroup} | ||||||
|   alias Cannery.{Ammo, Ammo.AmmoGroup} |   alias Cannery.{Ammo, Ammo.Pack} | ||||||
|   alias Cannery.{ComparableDate, Containers} |   alias Cannery.{ComparableDate, Containers} | ||||||
|   alias CanneryWeb.Endpoint |   alias CanneryWeb.Endpoint | ||||||
|   alias Phoenix.LiveView.Socket |   alias Phoenix.LiveView.Socket | ||||||
| @@ -24,7 +24,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|     socket = |     socket = | ||||||
|       socket |       socket | ||||||
|       |> assign(page_title: page_title(live_action), shot_group: shot_group) |       |> assign(page_title: page_title(live_action), shot_group: shot_group) | ||||||
|       |> display_ammo_group(id) |       |> display_pack(id) | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket} |     {:noreply, socket} | ||||||
|   end |   end | ||||||
| @@ -33,7 +33,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|     socket = |     socket = | ||||||
|       socket |       socket | ||||||
|       |> assign(page_title: page_title(live_action)) |       |> assign(page_title: page_title(live_action)) | ||||||
|       |> display_ammo_group(id) |       |> display_pack(id) | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket} |     {:noreply, socket} | ||||||
|   end |   end | ||||||
| @@ -48,12 +48,12 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|   def handle_event( |   def handle_event( | ||||||
|         "delete", |         "delete", | ||||||
|         _params, |         _params, | ||||||
|         %{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket |         %{assigns: %{pack: pack, current_user: current_user}} = socket | ||||||
|       ) do |       ) do | ||||||
|     ammo_group |> Ammo.delete_ammo_group!(current_user) |     pack |> Ammo.delete_pack!(current_user) | ||||||
| 
 | 
 | ||||||
|     prompt = dgettext("prompts", "Ammo deleted succesfully") |     prompt = dgettext("prompts", "Ammo deleted succesfully") | ||||||
|     redirect_to = Routes.ammo_group_index_path(socket, :index) |     redirect_to = Routes.pack_index_path(socket, :index) | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket |> put_flash(:info, prompt) |> push_navigate(to: redirect_to)} |     {:noreply, socket |> put_flash(:info, prompt) |> push_navigate(to: redirect_to)} | ||||||
|   end |   end | ||||||
| @@ -61,31 +61,30 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|   def handle_event( |   def handle_event( | ||||||
|         "toggle_staged", |         "toggle_staged", | ||||||
|         _params, |         _params, | ||||||
|         %{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket |         %{assigns: %{pack: pack, current_user: current_user}} = socket | ||||||
|       ) do |       ) do | ||||||
|     {:ok, ammo_group} = |     {:ok, pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user) | ||||||
|       ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user) |  | ||||||
| 
 | 
 | ||||||
|     {:noreply, socket |> display_ammo_group(ammo_group)} |     {:noreply, socket |> display_pack(pack)} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   def handle_event( |   def handle_event( | ||||||
|         "delete_shot_group", |         "delete_shot_group", | ||||||
|         %{"id" => id}, |         %{"id" => id}, | ||||||
|         %{assigns: %{ammo_group: %{id: ammo_group_id}, current_user: current_user}} = socket |         %{assigns: %{pack: %{id: pack_id}, current_user: current_user}} = socket | ||||||
|       ) do |       ) do | ||||||
|     {:ok, _} = |     {:ok, _} = | ||||||
|       ActivityLog.get_shot_group!(id, current_user) |       ActivityLog.get_shot_group!(id, current_user) | ||||||
|       |> ActivityLog.delete_shot_group(current_user) |       |> ActivityLog.delete_shot_group(current_user) | ||||||
| 
 | 
 | ||||||
|     prompt = dgettext("prompts", "Shot records deleted succesfully") |     prompt = dgettext("prompts", "Shot records deleted succesfully") | ||||||
|     {:noreply, socket |> put_flash(:info, prompt) |> display_ammo_group(ammo_group_id)} |     {:noreply, socket |> put_flash(:info, prompt) |> display_pack(pack_id)} | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   @spec display_ammo_group(Socket.t(), AmmoGroup.t() | AmmoGroup.id()) :: Socket.t() |   @spec display_pack(Socket.t(), Pack.t() | Pack.id()) :: Socket.t() | ||||||
|   defp display_ammo_group( |   defp display_pack( | ||||||
|          %{assigns: %{current_user: current_user}} = socket, |          %{assigns: %{current_user: current_user}} = socket, | ||||||
|          %AmmoGroup{container_id: container_id} = ammo_group |          %Pack{container_id: container_id} = pack | ||||||
|        ) do |        ) do | ||||||
|     columns = [ |     columns = [ | ||||||
|       %{label: gettext("Rounds shot"), key: :count}, |       %{label: gettext("Rounds shot"), key: :count}, | ||||||
| @@ -94,19 +93,19 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|       %{label: gettext("Actions"), key: :actions, sortable: false} |       %{label: gettext("Actions"), key: :actions, sortable: false} | ||||||
|     ] |     ] | ||||||
| 
 | 
 | ||||||
|     shot_groups = ActivityLog.list_shot_groups_for_ammo_group(ammo_group, current_user) |     shot_groups = ActivityLog.list_shot_groups_for_pack(pack, current_user) | ||||||
| 
 | 
 | ||||||
|     rows = |     rows = | ||||||
|       shot_groups |       shot_groups | ||||||
|       |> Enum.map(fn shot_group -> |       |> Enum.map(fn shot_group -> | ||||||
|         ammo_group |> get_table_row_for_shot_group(shot_group, columns) |         pack |> get_table_row_for_shot_group(shot_group, columns) | ||||||
|       end) |       end) | ||||||
| 
 | 
 | ||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       original_count: Ammo.get_original_count(ammo_group, current_user), |       original_count: Ammo.get_original_count(pack, current_user), | ||||||
|       percentage_remaining: Ammo.get_percentage_remaining(ammo_group, current_user), |       percentage_remaining: Ammo.get_percentage_remaining(pack, current_user), | ||||||
|       container: container_id && Containers.get_container!(container_id, current_user), |       container: container_id && Containers.get_container!(container_id, current_user), | ||||||
|       shot_groups: shot_groups, |       shot_groups: shot_groups, | ||||||
|       columns: columns, |       columns: columns, | ||||||
| @@ -114,15 +113,15 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   defp display_ammo_group(%{assigns: %{current_user: current_user}} = socket, id), |   defp display_pack(%{assigns: %{current_user: current_user}} = socket, id), | ||||||
|     do: display_ammo_group(socket, Ammo.get_ammo_group!(id, current_user)) |     do: display_pack(socket, Ammo.get_pack!(id, current_user)) | ||||||
| 
 | 
 | ||||||
|   @spec display_currency(float()) :: String.t() |   @spec display_currency(float()) :: String.t() | ||||||
|   defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) |   defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) | ||||||
| 
 | 
 | ||||||
|   @spec get_table_row_for_shot_group(AmmoGroup.t(), ShotGroup.t(), [map()]) :: map() |   @spec get_table_row_for_shot_group(Pack.t(), ShotGroup.t(), [map()]) :: map() | ||||||
|   defp get_table_row_for_shot_group(ammo_group, %{id: id, date: date} = shot_group, columns) do |   defp get_table_row_for_shot_group(pack, %{id: id, date: date} = shot_group, columns) do | ||||||
|     assigns = %{ammo_group: ammo_group, shot_group: shot_group} |     assigns = %{pack: pack, shot_group: shot_group} | ||||||
| 
 | 
 | ||||||
|     columns |     columns | ||||||
|     |> Map.new(fn %{key: key} -> |     |> Map.new(fn %{key: key} -> | ||||||
| @@ -140,7 +139,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do | |||||||
|             ~H""" |             ~H""" | ||||||
|             <div class="px-4 py-2 space-x-4 flex justify-center items-center"> |             <div class="px-4 py-2 space-x-4 flex justify-center items-center"> | ||||||
|               <.link |               <.link | ||||||
|                 patch={Routes.ammo_group_show_path(Endpoint, :edit_shot_group, @ammo_group, @shot_group)} |                 patch={Routes.pack_show_path(Endpoint, :edit_shot_group, @pack, @shot_group)} | ||||||
|                 class="text-primary-600 link" |                 class="text-primary-600 link" | ||||||
|                 aria-label={ |                 aria-label={ | ||||||
|                   dgettext("actions", "Edit shot group of %{shot_group_count} shots", |                   dgettext("actions", "Edit shot group of %{shot_group_count} shots", | ||||||
| @@ -1,12 +1,12 @@ | |||||||
| <div class="mx-auto space-y-4 max-w-3xl flex flex-col justify-center items-center"> | <div class="mx-auto space-y-4 max-w-3xl flex flex-col justify-center items-center"> | ||||||
|   <h1 class="title text-2xl title-primary-500"> |   <h1 class="title text-2xl title-primary-500"> | ||||||
|     <%= @ammo_group.ammo_type.name %> |     <%= @pack.ammo_type.name %> | ||||||
|   </h1> |   </h1> | ||||||
| 
 | 
 | ||||||
|   <div class="space-y-2 flex flex-col justify-center items-center"> |   <div class="space-y-2 flex flex-col justify-center items-center"> | ||||||
|     <span class="rounded-lg title text-lg"> |     <span class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Count:") %> |       <%= gettext("Count:") %> | ||||||
|       <%= @ammo_group.count %> |       <%= @pack.count %> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <span class="rounded-lg title text-lg"> |     <span class="rounded-lg title text-lg"> | ||||||
| @@ -19,28 +19,28 @@ | |||||||
|       <%= gettext("%{percentage}%", percentage: @percentage_remaining) %> |       <%= gettext("%{percentage}%", percentage: @percentage_remaining) %> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <%= if @ammo_group.notes do %> |     <%= if @pack.notes do %> | ||||||
|       <span class="rounded-lg title text-lg"> |       <span class="rounded-lg title text-lg"> | ||||||
|         <%= gettext("Notes:") %> |         <%= gettext("Notes:") %> | ||||||
|         <%= @ammo_group.notes %> |         <%= @pack.notes %> | ||||||
|       </span> |       </span> | ||||||
|     <% end %> |     <% end %> | ||||||
| 
 | 
 | ||||||
|     <span class="rounded-lg title text-lg"> |     <span class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Purchased on:") %> |       <%= gettext("Purchased on:") %> | ||||||
|       <.date id={"#{@ammo_group.id}-purchased-on"} date={@ammo_group.purchased_on} /> |       <.date id={"#{@pack.id}-purchased-on"} date={@pack.purchased_on} /> | ||||||
|     </span> |     </span> | ||||||
| 
 | 
 | ||||||
|     <%= if @ammo_group.price_paid do %> |     <%= if @pack.price_paid do %> | ||||||
|       <span class="rounded-lg title text-lg"> |       <span class="rounded-lg title text-lg"> | ||||||
|         <%= gettext("Original cost:") %> |         <%= gettext("Original cost:") %> | ||||||
|         <%= gettext("$%{amount}", amount: display_currency(@ammo_group.price_paid)) %> |         <%= gettext("$%{amount}", amount: display_currency(@pack.price_paid)) %> | ||||||
|       </span> |       </span> | ||||||
| 
 | 
 | ||||||
|       <span class="rounded-lg title text-lg"> |       <span class="rounded-lg title text-lg"> | ||||||
|         <%= gettext("Current value:") %> |         <%= gettext("Current value:") %> | ||||||
|         <%= gettext("$%{amount}", |         <%= gettext("$%{amount}", | ||||||
|           amount: display_currency(@ammo_group.price_paid * @percentage_remaining / 100) |           amount: display_currency(@pack.price_paid * @percentage_remaining / 100) | ||||||
|         ) %> |         ) %> | ||||||
|       </span> |       </span> | ||||||
|     <% end %> |     <% end %> | ||||||
| @@ -49,19 +49,17 @@ | |||||||
|   <div class="flex flex-col justify-center items-center"> |   <div class="flex flex-col justify-center items-center"> | ||||||
|     <div class="flex flex-wrap justify-center items-center text-primary-600"> |     <div class="flex flex-wrap justify-center items-center text-primary-600"> | ||||||
|       <.link |       <.link | ||||||
|         navigate={Routes.ammo_type_show_path(Endpoint, :show, @ammo_group.ammo_type)} |         navigate={Routes.ammo_type_show_path(Endpoint, :show, @pack.ammo_type)} | ||||||
|         class="mx-4 my-2 btn btn-primary" |         class="mx-4 my-2 btn btn-primary" | ||||||
|       > |       > | ||||||
|         <%= dgettext("actions", "View in Catalog") %> |         <%= dgettext("actions", "View in Catalog") %> | ||||||
|       </.link> |       </.link> | ||||||
| 
 | 
 | ||||||
|       <.link |       <.link | ||||||
|         patch={Routes.ammo_group_show_path(Endpoint, :edit, @ammo_group)} |         patch={Routes.pack_show_path(Endpoint, :edit, @pack)} | ||||||
|         class="mx-4 my-2 text-primary-600 link" |         class="mx-4 my-2 text-primary-600 link" | ||||||
|         aria-label={ |         aria-label={ | ||||||
|           dgettext("actions", "Edit ammo group of %{ammo_group_count} bullets", |           dgettext("actions", "Edit pack of %{pack_count} bullets", pack_count: @pack.count) | ||||||
|             ammo_group_count: @ammo_group.count |  | ||||||
|           ) |  | ||||||
|         } |         } | ||||||
|       > |       > | ||||||
|         <i class="fa-fw fa-lg fas fa-edit"></i> |         <i class="fa-fw fa-lg fas fa-edit"></i> | ||||||
| @@ -73,9 +71,7 @@ | |||||||
|         phx-click="delete" |         phx-click="delete" | ||||||
|         data-confirm={dgettext("prompts", "Are you sure you want to delete this ammo?")} |         data-confirm={dgettext("prompts", "Are you sure you want to delete this ammo?")} | ||||||
|         aria-label={ |         aria-label={ | ||||||
|           dgettext("actions", "Delete ammo group of %{ammo_group_count} bullets", |           dgettext("actions", "Delete pack of %{pack_count} bullets", pack_count: @pack.count) | ||||||
|             ammo_group_count: @ammo_group.count |  | ||||||
|           ) |  | ||||||
|         } |         } | ||||||
|       > |       > | ||||||
|         <i class="fa-fw fa-lg fas fa-trash"></i> |         <i class="fa-fw fa-lg fas fa-trash"></i> | ||||||
| @@ -84,20 +80,17 @@ | |||||||
| 
 | 
 | ||||||
|     <div class="flex flex-wrap justify-center items-center text-primary-600"> |     <div class="flex flex-wrap justify-center items-center text-primary-600"> | ||||||
|       <button type="button" class="mx-4 my-2 btn btn-primary" phx-click="toggle_staged"> |       <button type="button" class="mx-4 my-2 btn btn-primary" phx-click="toggle_staged"> | ||||||
|         <%= if @ammo_group.staged, |         <%= if @pack.staged, | ||||||
|           do: dgettext("actions", "Unstage from range"), |           do: dgettext("actions", "Unstage from range"), | ||||||
|           else: dgettext("actions", "Stage for range") %> |           else: dgettext("actions", "Stage for range") %> | ||||||
|       </button> |       </button> | ||||||
| 
 | 
 | ||||||
|       <.link |       <.link patch={Routes.pack_show_path(Endpoint, :move, @pack)} class="btn btn-primary"> | ||||||
|         patch={Routes.ammo_group_show_path(Endpoint, :move, @ammo_group)} |  | ||||||
|         class="btn btn-primary" |  | ||||||
|       > |  | ||||||
|         <%= dgettext("actions", "Move ammo") %> |         <%= dgettext("actions", "Move ammo") %> | ||||||
|       </.link> |       </.link> | ||||||
| 
 | 
 | ||||||
|       <.link |       <.link | ||||||
|         patch={Routes.ammo_group_show_path(Endpoint, :add_shot_group, @ammo_group)} |         patch={Routes.pack_show_path(Endpoint, :add_shot_group, @pack)} | ||||||
|         class="mx-4 my-2 btn btn-primary" |         class="mx-4 my-2 btn btn-primary" | ||||||
|       > |       > | ||||||
|         <%= dgettext("actions", "Record shots") %> |         <%= dgettext("actions", "Record shots") %> | ||||||
| @@ -128,7 +121,7 @@ | |||||||
| 
 | 
 | ||||||
|     <.live_component |     <.live_component | ||||||
|       module={CanneryWeb.Components.TableComponent} |       module={CanneryWeb.Components.TableComponent} | ||||||
|       id="ammo_group_shot_groups_table" |       id="pack_shot_groups_table" | ||||||
|       columns={@columns} |       columns={@columns} | ||||||
|       rows={@rows} |       rows={@rows} | ||||||
|     /> |     /> | ||||||
| @@ -137,50 +130,50 @@ | |||||||
| 
 | 
 | ||||||
| <%= case @live_action do %> | <%= case @live_action do %> | ||||||
|   <% :edit -> %> |   <% :edit -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}> |     <.modal return_to={Routes.pack_show_path(Endpoint, :show, @pack)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.AmmoGroupLive.FormComponent} |         module={CanneryWeb.PackLive.FormComponent} | ||||||
|         id={@ammo_group.id} |         id={@pack.id} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} |         return_to={Routes.pack_show_path(Endpoint, :show, @pack)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
|   <% :edit_shot_group -> %> |   <% :edit_shot_group -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}> |     <.modal return_to={Routes.pack_show_path(Endpoint, :show, @pack)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.RangeLive.FormComponent} |         module={CanneryWeb.RangeLive.FormComponent} | ||||||
|         id={@shot_group.id} |         id={@shot_group.id} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         shot_group={@shot_group} |         shot_group={@shot_group} | ||||||
|         return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} |         return_to={Routes.pack_show_path(Endpoint, :show, @pack)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
|   <% :add_shot_group -> %> |   <% :add_shot_group -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}> |     <.modal return_to={Routes.pack_show_path(Endpoint, :show, @pack)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.Components.AddShotGroupComponent} |         module={CanneryWeb.Components.AddShotGroupComponent} | ||||||
|         id={:new} |         id={:new} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} |         return_to={Routes.pack_show_path(Endpoint, :show, @pack)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
|   <% :move -> %> |   <% :move -> %> | ||||||
|     <.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}> |     <.modal return_to={Routes.pack_show_path(Endpoint, :show, @pack)}> | ||||||
|       <.live_component |       <.live_component | ||||||
|         module={CanneryWeb.Components.MoveAmmoGroupComponent} |         module={CanneryWeb.Components.MovePackComponent} | ||||||
|         id={@ammo_group.id} |         id={@pack.id} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)} |         return_to={Routes.pack_show_path(Endpoint, :show, @pack)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|     </.modal> |     </.modal> | ||||||
| @@ -4,33 +4,33 @@ defmodule CanneryWeb.RangeLive.FormComponent do | |||||||
|   """ |   """ | ||||||
|  |  | ||||||
|   use CanneryWeb, :live_component |   use CanneryWeb, :live_component | ||||||
|   alias Cannery.{Accounts.User, ActivityLog, ActivityLog.ShotGroup, Ammo, Ammo.AmmoGroup} |   alias Cannery.{Accounts.User, ActivityLog, ActivityLog.ShotGroup, Ammo, Ammo.Pack} | ||||||
|   alias Ecto.Changeset |   alias Ecto.Changeset | ||||||
|   alias Phoenix.LiveView.Socket |   alias Phoenix.LiveView.Socket | ||||||
|  |  | ||||||
|   @impl true |   @impl true | ||||||
|   def mount(socket), do: {:ok, socket |> assign(:ammo_group, nil)} |   def mount(socket), do: {:ok, socket |> assign(:pack, nil)} | ||||||
|  |  | ||||||
|   @impl true |   @impl true | ||||||
|   @spec update( |   @spec update( | ||||||
|           %{ |           %{ | ||||||
|             required(:shot_group) => ShotGroup.t(), |             required(:shot_group) => ShotGroup.t(), | ||||||
|             required(:current_user) => User.t(), |             required(:current_user) => User.t(), | ||||||
|             optional(:ammo_group) => AmmoGroup.t(), |             optional(:pack) => Pack.t(), | ||||||
|             optional(any()) => any() |             optional(any()) => any() | ||||||
|           }, |           }, | ||||||
|           Socket.t() |           Socket.t() | ||||||
|         ) :: {:ok, Socket.t()} |         ) :: {:ok, Socket.t()} | ||||||
|   def update( |   def update( | ||||||
|         %{ |         %{ | ||||||
|           shot_group: %ShotGroup{ammo_group_id: ammo_group_id}, |           shot_group: %ShotGroup{pack_id: pack_id}, | ||||||
|           current_user: current_user |           current_user: current_user | ||||||
|         } = assigns, |         } = assigns, | ||||||
|         socket |         socket | ||||||
|       ) |       ) | ||||||
|       when is_binary(ammo_group_id) do |       when is_binary(pack_id) do | ||||||
|     ammo_group = Ammo.get_ammo_group!(ammo_group_id, current_user) |     pack = Ammo.get_pack!(pack_id, current_user) | ||||||
|     {:ok, socket |> assign(assigns) |> assign(:ammo_group, ammo_group) |> assign_changeset(%{})} |     {:ok, socket |> assign(assigns) |> assign(:pack, pack) |> assign_changeset(%{})} | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   def update(%{shot_group: %ShotGroup{}} = assigns, socket) do |   def update(%{shot_group: %ShotGroup{}} = assigns, socket) do | ||||||
| @@ -66,7 +66,7 @@ defmodule CanneryWeb.RangeLive.FormComponent do | |||||||
|            assigns: %{ |            assigns: %{ | ||||||
|              action: live_action, |              action: live_action, | ||||||
|              current_user: user, |              current_user: user, | ||||||
|              ammo_group: ammo_group, |              pack: pack, | ||||||
|              shot_group: shot_group |              shot_group: shot_group | ||||||
|            } |            } | ||||||
|          } = socket, |          } = socket, | ||||||
| @@ -81,7 +81,7 @@ defmodule CanneryWeb.RangeLive.FormComponent do | |||||||
|  |  | ||||||
|     changeset = |     changeset = | ||||||
|       case default_action do |       case default_action do | ||||||
|         :insert -> shot_group |> ShotGroup.create_changeset(user, ammo_group, shot_group_params) |         :insert -> shot_group |> ShotGroup.create_changeset(user, pack, shot_group_params) | ||||||
|         :update -> shot_group |> ShotGroup.update_changeset(user, shot_group_params) |         :update -> shot_group |> ShotGroup.update_changeset(user, shot_group_params) | ||||||
|       end |       end | ||||||
|  |  | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ | |||||||
|     <%= label(f, :count, gettext("Shots fired"), class: "title text-lg text-primary-600") %> |     <%= label(f, :count, gettext("Shots fired"), class: "title text-lg text-primary-600") %> | ||||||
|     <%= number_input(f, :count, |     <%= number_input(f, :count, | ||||||
|       min: 1, |       min: 1, | ||||||
|       max: @shot_group.count + @ammo_group.count, |       max: @shot_group.count + @pack.count, | ||||||
|       class: "input input-primary col-span-2" |       class: "input input-primary col-span-2" | ||||||
|     ) %> |     ) %> | ||||||
|     <%= error_tag(f, :count, "col-span-3") %> |     <%= error_tag(f, :count, "col-span-3") %> | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| defmodule CanneryWeb.RangeLive.Index do | defmodule CanneryWeb.RangeLive.Index do | ||||||
|   @moduledoc """ |   @moduledoc """ | ||||||
|   Main page for range day mode, where `AmmoGroup`s can be used up. |   Main page for range day mode, where `Pack`s can be used up. | ||||||
|   """ |   """ | ||||||
|  |  | ||||||
|   use CanneryWeb, :live_view |   use CanneryWeb, :live_view | ||||||
| @@ -30,7 +30,7 @@ defmodule CanneryWeb.RangeLive.Index do | |||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       page_title: gettext("Record Shots"), |       page_title: gettext("Record Shots"), | ||||||
|       ammo_group: Ammo.get_ammo_group!(id, current_user) |       pack: Ammo.get_pack!(id, current_user) | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
|  |  | ||||||
| @@ -82,13 +82,12 @@ defmodule CanneryWeb.RangeLive.Index do | |||||||
|  |  | ||||||
|   def handle_event( |   def handle_event( | ||||||
|         "toggle_staged", |         "toggle_staged", | ||||||
|         %{"ammo_group_id" => ammo_group_id}, |         %{"pack_id" => pack_id}, | ||||||
|         %{assigns: %{current_user: current_user}} = socket |         %{assigns: %{current_user: current_user}} = socket | ||||||
|       ) do |       ) do | ||||||
|     ammo_group = Ammo.get_ammo_group!(ammo_group_id, current_user) |     pack = Ammo.get_pack!(pack_id, current_user) | ||||||
|  |  | ||||||
|     {:ok, _ammo_group} = |     {:ok, _pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user) | ||||||
|       ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user) |  | ||||||
|  |  | ||||||
|     prompt = dgettext("prompts", "Ammo unstaged succesfully") |     prompt = dgettext("prompts", "Ammo unstaged succesfully") | ||||||
|     {:noreply, socket |> put_flash(:info, prompt) |> display_shot_groups()} |     {:noreply, socket |> put_flash(:info, prompt) |> display_shot_groups()} | ||||||
| @@ -123,20 +122,22 @@ defmodule CanneryWeb.RangeLive.Index do | |||||||
|          %{assigns: %{class: class, search: search, current_user: current_user}} = socket |          %{assigns: %{class: class, search: search, current_user: current_user}} = socket | ||||||
|        ) do |        ) do | ||||||
|     shot_groups = ActivityLog.list_shot_groups(search, class, current_user) |     shot_groups = ActivityLog.list_shot_groups(search, class, current_user) | ||||||
|     ammo_groups = Ammo.list_staged_ammo_groups(current_user) |     packs = Ammo.list_staged_packs(current_user) | ||||||
|     chart_data = shot_groups |> get_chart_data_for_shot_group() |     chart_data = shot_groups |> get_chart_data_for_shot_group() | ||||||
|     original_counts = ammo_groups |> Ammo.get_original_counts(current_user) |     original_counts = packs |> Ammo.get_original_counts(current_user) | ||||||
|     cprs = ammo_groups |> Ammo.get_cprs(current_user) |     cprs = packs |> Ammo.get_cprs(current_user) | ||||||
|     last_used_dates = ammo_groups |> ActivityLog.get_last_used_dates(current_user) |     last_used_dates = packs |> ActivityLog.get_last_used_dates(current_user) | ||||||
|  |     shot_record_count = ActivityLog.get_shot_record_count!(current_user) | ||||||
|  |  | ||||||
|     socket |     socket | ||||||
|     |> assign( |     |> assign( | ||||||
|       ammo_groups: ammo_groups, |       packs: packs, | ||||||
|       original_counts: original_counts, |       original_counts: original_counts, | ||||||
|       cprs: cprs, |       cprs: cprs, | ||||||
|       last_used_dates: last_used_dates, |       last_used_dates: last_used_dates, | ||||||
|       chart_data: chart_data, |       chart_data: chart_data, | ||||||
|       shot_groups: shot_groups |       shot_groups: shot_groups, | ||||||
|  |       shot_record_count: shot_record_count | ||||||
|     ) |     ) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   | |||||||
| @@ -3,54 +3,54 @@ | |||||||
|     <%= gettext("Range day") %> |     <%= gettext("Range day") %> | ||||||
|   </h1> |   </h1> | ||||||
|  |  | ||||||
|   <%= if @ammo_groups |> Enum.empty?() do %> |   <%= if @packs |> Enum.empty?() do %> | ||||||
|     <h1 class="title text-xl text-primary-600"> |     <h1 class="title text-xl text-primary-600"> | ||||||
|       <%= gettext("No ammo staged") %> |       <%= gettext("No ammo staged") %> | ||||||
|       <%= display_emoji("😔") %> |       <%= display_emoji("😔") %> | ||||||
|     </h1> |     </h1> | ||||||
|  |  | ||||||
|     <.link navigate={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary"> |     <.link navigate={Routes.pack_index_path(Endpoint, :index)} class="btn btn-primary"> | ||||||
|       <%= dgettext("actions", "Why not get some ready to shoot?") %> |       <%= dgettext("actions", "Why not get some ready to shoot?") %> | ||||||
|     </.link> |     </.link> | ||||||
|   <% else %> |   <% else %> | ||||||
|     <.link navigate={Routes.ammo_group_index_path(Endpoint, :index)} class="btn btn-primary"> |     <.link navigate={Routes.pack_index_path(Endpoint, :index)} class="btn btn-primary"> | ||||||
|       <%= dgettext("actions", "Stage ammo") %> |       <%= dgettext("actions", "Stage ammo") %> | ||||||
|     </.link> |     </.link> | ||||||
|  |  | ||||||
|     <div class="w-full flex flex-row flex-wrap justify-center items-stretch"> |     <div class="w-full flex flex-row flex-wrap justify-center items-stretch"> | ||||||
|       <.ammo_group_card |       <.pack_card | ||||||
|         :for={%{id: ammo_group_id} = ammo_group <- @ammo_groups} |         :for={%{id: pack_id} = pack <- @packs} | ||||||
|         ammo_group={ammo_group} |         pack={pack} | ||||||
|         original_count={Map.fetch!(@original_counts, ammo_group_id)} |         original_count={Map.fetch!(@original_counts, pack_id)} | ||||||
|         cpr={Map.get(@cprs, ammo_group_id)} |         cpr={Map.get(@cprs, pack_id)} | ||||||
|         last_used_date={Map.get(@last_used_dates, ammo_group_id)} |         last_used_date={Map.get(@last_used_dates, pack_id)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       > |       > | ||||||
|         <button |         <button | ||||||
|           type="button" |           type="button" | ||||||
|           class="btn btn-primary" |           class="btn btn-primary" | ||||||
|           phx-click="toggle_staged" |           phx-click="toggle_staged" | ||||||
|           phx-value-ammo_group_id={ammo_group.id} |           phx-value-pack_id={pack.id} | ||||||
|           data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"} |           data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"} | ||||||
|         > |         > | ||||||
|           <%= if ammo_group.staged, |           <%= if pack.staged, | ||||||
|             do: dgettext("actions", "Unstage from range"), |             do: dgettext("actions", "Unstage from range"), | ||||||
|             else: dgettext("actions", "Stage for range") %> |             else: dgettext("actions", "Stage for range") %> | ||||||
|         </button> |         </button> | ||||||
|  |  | ||||||
|         <.link |         <.link | ||||||
|           patch={Routes.range_index_path(Endpoint, :add_shot_group, ammo_group)} |           patch={Routes.range_index_path(Endpoint, :add_shot_group, pack)} | ||||||
|           class="btn btn-primary" |           class="btn btn-primary" | ||||||
|         > |         > | ||||||
|           <%= dgettext("actions", "Record shots") %> |           <%= dgettext("actions", "Record shots") %> | ||||||
|         </.link> |         </.link> | ||||||
|       </.ammo_group_card> |       </.pack_card> | ||||||
|     </div> |     </div> | ||||||
|   <% end %> |   <% end %> | ||||||
|  |  | ||||||
|   <hr class="hr" /> |   <hr class="hr" /> | ||||||
|  |  | ||||||
|   <%= if @shot_groups |> Enum.empty?() and @search |> is_nil() do %> |   <%= if @shot_record_count == 0 do %> | ||||||
|     <h1 class="title text-xl text-primary-600"> |     <h1 class="title text-xl text-primary-600"> | ||||||
|       <%= gettext("No shots recorded") %> |       <%= gettext("No shots recorded") %> | ||||||
|       <%= display_emoji("😔") %> |       <%= display_emoji("😔") %> | ||||||
| @@ -186,7 +186,7 @@ | |||||||
|         id={:new} |         id={:new} | ||||||
|         title={@page_title} |         title={@page_title} | ||||||
|         action={@live_action} |         action={@live_action} | ||||||
|         ammo_group={@ammo_group} |         pack={@pack} | ||||||
|         return_to={Routes.range_index_path(Endpoint, :index)} |         return_to={Routes.range_index_path(Endpoint, :index)} | ||||||
|         current_user={@current_user} |         current_user={@current_user} | ||||||
|       /> |       /> | ||||||
|   | |||||||
| @@ -89,19 +89,19 @@ defmodule CanneryWeb.Router do | |||||||
|     live "/container/edit/:id", ContainerLive.Show, :edit |     live "/container/edit/:id", ContainerLive.Show, :edit | ||||||
|     live "/container/edit_tags/:id", ContainerLive.Show, :edit_tags |     live "/container/edit_tags/:id", ContainerLive.Show, :edit_tags | ||||||
|  |  | ||||||
|     live "/ammo", AmmoGroupLive.Index, :index |     live "/ammo", PackLive.Index, :index | ||||||
|     live "/ammo/new", AmmoGroupLive.Index, :new |     live "/ammo/new", PackLive.Index, :new | ||||||
|     live "/ammo/edit/:id", AmmoGroupLive.Index, :edit |     live "/ammo/edit/:id", PackLive.Index, :edit | ||||||
|     live "/ammo/clone/:id", AmmoGroupLive.Index, :clone |     live "/ammo/clone/:id", PackLive.Index, :clone | ||||||
|     live "/ammo/add_shot_group/:id", AmmoGroupLive.Index, :add_shot_group |     live "/ammo/add_shot_group/:id", PackLive.Index, :add_shot_group | ||||||
|     live "/ammo/move/:id", AmmoGroupLive.Index, :move |     live "/ammo/move/:id", PackLive.Index, :move | ||||||
|     live "/ammo/search/:search", AmmoGroupLive.Index, :search |     live "/ammo/search/:search", PackLive.Index, :search | ||||||
|  |  | ||||||
|     live "/ammo/show/:id", AmmoGroupLive.Show, :show |     live "/ammo/show/:id", PackLive.Show, :show | ||||||
|     live "/ammo/show/edit/:id", AmmoGroupLive.Show, :edit |     live "/ammo/show/edit/:id", PackLive.Show, :edit | ||||||
|     live "/ammo/show/add_shot_group/:id", AmmoGroupLive.Show, :add_shot_group |     live "/ammo/show/add_shot_group/:id", PackLive.Show, :add_shot_group | ||||||
|     live "/ammo/show/move/:id", AmmoGroupLive.Show, :move |     live "/ammo/show/move/:id", PackLive.Show, :move | ||||||
|     live "/ammo/show/:id/edit/:shot_group_id", AmmoGroupLive.Show, :edit_shot_group |     live "/ammo/show/:id/edit/:shot_group_id", PackLive.Show, :edit_shot_group | ||||||
|  |  | ||||||
|     live "/range", RangeLive.Index, :index |     live "/range", RangeLive.Index, :index | ||||||
|     live "/range/edit/:id", RangeLive.Index, :edit |     live "/range/edit/:id", RangeLive.Index, :edit | ||||||
|   | |||||||
| @@ -10,14 +10,14 @@ | |||||||
| msgid "" | msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:59 | #: lib/cannery_web/live/pack_live/index.ex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:67 | #: lib/cannery_web/live/pack_live/index.ex:67 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:38 | #: lib/cannery_web/live/pack_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add Ammo" | msgid "Add Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:34 | #: lib/cannery_web/live/pack_live/index.html.heex:34 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add your first box!" | msgid "Add your first box!" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -121,10 +121,10 @@ msgid "Reset password" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:84 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:57 | #: lib/cannery_web/live/container_live/form_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:45 | #: lib/cannery_web/live/range_live/form_component.html.heex:45 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -156,19 +156,19 @@ msgstr "" | |||||||
| msgid "Why not get some ready to shoot?" | msgid "Why not get some ready to shoot?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:127 | #: lib/cannery_web/live/pack_live/index.html.heex:127 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:103 | #: lib/cannery_web/live/pack_live/show.html.heex:96 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:45 | #: lib/cannery_web/live/range_live/index.html.heex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:90 | #: lib/cannery_web/components/move_pack_component.ex:88 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add another container!" | msgid "Add another container!" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:126 | #: lib/cannery_web/components/move_pack_component.ex:124 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Select" | msgid "Select" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -178,12 +178,12 @@ msgstr "" | |||||||
| msgid "Copy to clipboard" | msgid "Copy to clipboard" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:14 | #: lib/cannery_web/live/pack_live/index.html.heex:14 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add a container first" | msgid "add a container first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:77 | #: lib/cannery_web/live/pack_live/form_component.html.heex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Create" | msgid "Create" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -198,19 +198,19 @@ msgstr "" | |||||||
| msgid "Change language" | msgid "Change language" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:55 | #: lib/cannery_web/live/pack_live/show.html.heex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View in Catalog" | msgid "View in Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:24 | #: lib/cannery_web/live/pack_live/index.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add an ammo type first" | msgid "add an ammo type first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | #: lib/cannery_web/components/move_pack_component.ex:78 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:144 | #: lib/cannery_web/live/pack_live/index.html.heex:144 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:96 | #: lib/cannery_web/live/pack_live/show.html.heex:89 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -220,13 +220,13 @@ msgstr "" | |||||||
| msgid "Set Unlimited" | msgid "Set Unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:89 | #: lib/cannery_web/live/pack_live/show.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:38 | #: lib/cannery_web/live/range_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage for range" | msgid "Stage for range" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:88 | #: lib/cannery_web/live/pack_live/show.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:37 | #: lib/cannery_web/live/range_live/index.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage from range" | msgid "Unstage from range" | ||||||
| @@ -276,7 +276,7 @@ msgstr "" | |||||||
| msgid "Delete invite for %{invite_name}" | msgid "Delete invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:161 | #: lib/cannery_web/live/pack_live/show.ex:160 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:155 | #: lib/cannery_web/live/range_live/index.html.heex:155 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete shot record of %{shot_group_count} shots" | msgid "Delete shot record of %{shot_group_count} shots" | ||||||
| @@ -300,18 +300,12 @@ msgstr "" | |||||||
| msgid "Edit %{tag_name}" | msgid "Edit %{tag_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:166 |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:62 |  | ||||||
| #, elixir-autogen, elixir-format |  | ||||||
| msgid "Edit ammo group of %{ammo_group_count} bullets" |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/invite_live/index.html.heex:46 | #: lib/cannery_web/live/invite_live/index.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit invite for %{invite_name}" | msgid "Edit invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:146 | #: lib/cannery_web/live/pack_live/show.ex:145 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit shot group of %{shot_group_count} shots" | msgid "Edit shot group of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -321,7 +315,7 @@ msgstr "" | |||||||
| msgid "Edit shot record of %{shot_group_count} shots" | msgid "Edit shot record of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:120 | #: lib/cannery_web/live/pack_live/index.html.heex:120 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage" | msgid "Stage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -332,7 +326,7 @@ msgstr "" | |||||||
| msgid "Tag %{container_name}" | msgid "Tag %{container_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:119 | #: lib/cannery_web/live/pack_live/index.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage" | msgid "Unstage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -342,19 +336,25 @@ msgstr "" | |||||||
| msgid "View %{ammo_type_name}" | msgid "View %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:178 | #: lib/cannery_web/live/pack_live/index.html.heex:174 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Clone ammo group of %{ammo_group_count} bullets" | msgid "Clone pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:193 | #: lib/cannery_web/live/pack_live/index.html.heex:189 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:76 | #: lib/cannery_web/live/pack_live/show.html.heex:74 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete ammo group of %{ammo_group_count} bullets" | msgid "Delete pack of %{pack_count} bullets" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:164 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:62 | ||||||
|  | #, elixir-autogen, elixir-format | ||||||
|  | msgid "Edit pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:154 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:154 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View ammo group of %{ammo_group_count} bullets" | msgid "View pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -23,14 +23,14 @@ msgstr "" | |||||||
| ## Run "mix gettext.extract" to bring this file up to | ## Run "mix gettext.extract" to bring this file up to | ||||||
| ## date. Leave "msgstr"s empty as changing them here has no | ## date. Leave "msgstr"s empty as changing them here has no | ||||||
| ## effect: edit them in PO (.po) files instead. | ## effect: edit them in PO (.po) files instead. | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:59 | #: lib/cannery_web/live/pack_live/index.ex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:67 | #: lib/cannery_web/live/pack_live/index.ex:67 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:38 | #: lib/cannery_web/live/pack_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add Ammo" | msgid "Add Ammo" | ||||||
| msgstr "Munition hinzufügen" | msgstr "Munition hinzufügen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:34 | #: lib/cannery_web/live/pack_live/index.html.heex:34 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add your first box!" | msgid "Add your first box!" | ||||||
| msgstr "Fügen Sie ihre erste Box hinzu!" | msgstr "Fügen Sie ihre erste Box hinzu!" | ||||||
| @@ -134,10 +134,10 @@ msgid "Reset password" | |||||||
| msgstr "Passwort zurücksetzen" | msgstr "Passwort zurücksetzen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:84 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:57 | #: lib/cannery_web/live/container_live/form_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:45 | #: lib/cannery_web/live/range_live/form_component.html.heex:45 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -169,19 +169,19 @@ msgstr "Munition markieren" | |||||||
| msgid "Why not get some ready to shoot?" | msgid "Why not get some ready to shoot?" | ||||||
| msgstr "Warum nicht einige für den Schießstand auswählen?" | msgstr "Warum nicht einige für den Schießstand auswählen?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:127 | #: lib/cannery_web/live/pack_live/index.html.heex:127 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:103 | #: lib/cannery_web/live/pack_live/show.html.heex:96 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:45 | #: lib/cannery_web/live/range_live/index.html.heex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "Schüsse dokumentieren" | msgstr "Schüsse dokumentieren" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:90 | #: lib/cannery_web/components/move_pack_component.ex:88 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add another container!" | msgid "Add another container!" | ||||||
| msgstr "Einen weiteren Behälter hinzufügen!" | msgstr "Einen weiteren Behälter hinzufügen!" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:126 | #: lib/cannery_web/components/move_pack_component.ex:124 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Select" | msgid "Select" | ||||||
| msgstr "Markieren" | msgstr "Markieren" | ||||||
| @@ -191,12 +191,12 @@ msgstr "Markieren" | |||||||
| msgid "Copy to clipboard" | msgid "Copy to clipboard" | ||||||
| msgstr "In die Zwischenablage kopieren" | msgstr "In die Zwischenablage kopieren" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:14 | #: lib/cannery_web/live/pack_live/index.html.heex:14 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add a container first" | msgid "add a container first" | ||||||
| msgstr "Zuerst einen Behälter hinzufügen" | msgstr "Zuerst einen Behälter hinzufügen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:77 | #: lib/cannery_web/live/pack_live/form_component.html.heex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Create" | msgid "Create" | ||||||
| msgstr "Erstellen" | msgstr "Erstellen" | ||||||
| @@ -211,19 +211,19 @@ msgstr "Sprache wechseln" | |||||||
| msgid "Change language" | msgid "Change language" | ||||||
| msgstr "Sprache wechseln" | msgstr "Sprache wechseln" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:55 | #: lib/cannery_web/live/pack_live/show.html.heex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View in Catalog" | msgid "View in Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:24 | #: lib/cannery_web/live/pack_live/index.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add an ammo type first" | msgid "add an ammo type first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | #: lib/cannery_web/components/move_pack_component.ex:78 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:144 | #: lib/cannery_web/live/pack_live/index.html.heex:144 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:96 | #: lib/cannery_web/live/pack_live/show.html.heex:89 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -233,13 +233,13 @@ msgstr "" | |||||||
| msgid "Set Unlimited" | msgid "Set Unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:89 | #: lib/cannery_web/live/pack_live/show.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:38 | #: lib/cannery_web/live/range_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage for range" | msgid "Stage for range" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:88 | #: lib/cannery_web/live/pack_live/show.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:37 | #: lib/cannery_web/live/range_live/index.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage from range" | msgid "Unstage from range" | ||||||
| @@ -289,7 +289,7 @@ msgstr "" | |||||||
| msgid "Delete invite for %{invite_name}" | msgid "Delete invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:161 | #: lib/cannery_web/live/pack_live/show.ex:160 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:155 | #: lib/cannery_web/live/range_live/index.html.heex:155 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete shot record of %{shot_group_count} shots" | msgid "Delete shot record of %{shot_group_count} shots" | ||||||
| @@ -313,18 +313,12 @@ msgstr "" | |||||||
| msgid "Edit %{tag_name}" | msgid "Edit %{tag_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:166 |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:62 |  | ||||||
| #, elixir-autogen, elixir-format |  | ||||||
| msgid "Edit ammo group of %{ammo_group_count} bullets" |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/invite_live/index.html.heex:46 | #: lib/cannery_web/live/invite_live/index.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit invite for %{invite_name}" | msgid "Edit invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:146 | #: lib/cannery_web/live/pack_live/show.ex:145 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit shot group of %{shot_group_count} shots" | msgid "Edit shot group of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -334,7 +328,7 @@ msgstr "" | |||||||
| msgid "Edit shot record of %{shot_group_count} shots" | msgid "Edit shot record of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:120 | #: lib/cannery_web/live/pack_live/index.html.heex:120 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Stage" | msgid "Stage" | ||||||
| msgstr "Munition markieren" | msgstr "Munition markieren" | ||||||
| @@ -345,7 +339,7 @@ msgstr "Munition markieren" | |||||||
| msgid "Tag %{container_name}" | msgid "Tag %{container_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:119 | #: lib/cannery_web/live/pack_live/index.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage" | msgid "Unstage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -355,19 +349,25 @@ msgstr "" | |||||||
| msgid "View %{ammo_type_name}" | msgid "View %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:178 | #: lib/cannery_web/live/pack_live/index.html.heex:174 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Clone ammo group of %{ammo_group_count} bullets" | msgid "Clone pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:193 | #: lib/cannery_web/live/pack_live/index.html.heex:189 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:76 | #: lib/cannery_web/live/pack_live/show.html.heex:74 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Delete ammo group of %{ammo_group_count} bullets" | msgid "Delete pack of %{pack_count} bullets" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:164 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:62 | ||||||
|  | #, elixir-autogen, elixir-format, fuzzy | ||||||
|  | msgid "Edit pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:154 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "View ammo group of %{ammo_group_count} bullets" | msgid "View pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -31,15 +31,15 @@ msgstr "Admins:" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:58 | #: lib/cannery_web/components/core_components/topbar.html.heex:58 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:41 | #: lib/cannery_web/components/shot_group_table_component.ex:41 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:75 | #: lib/cannery_web/live/pack_live/index.ex:75 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | #: lib/cannery_web/live/pack_live/index.ex:84 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 | #: lib/cannery_web/live/pack_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo" | msgid "Ammo" | ||||||
| msgstr "Munition" | msgstr "Munition" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:96 | #: lib/cannery_web/components/pack_table_component.ex:95 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22 | #: lib/cannery_web/live/pack_live/form_component.html.heex:22 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo type" | msgid "Ammo type" | ||||||
| msgstr "Munitionsarten" | msgstr "Munitionsarten" | ||||||
| @@ -90,9 +90,9 @@ msgstr "Patrone" | |||||||
| msgid "Case material" | msgid "Case material" | ||||||
| msgstr "Gehäusematerial" | msgstr "Gehäusematerial" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:74 | #: lib/cannery_web/components/move_pack_component.ex:65 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | #: lib/cannery_web/components/pack_table_component.ex:73 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:59 | #: lib/cannery_web/live/pack_live/form_component.html.heex:59 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container" | msgid "Container" | ||||||
| msgstr "Behälter" | msgstr "Behälter" | ||||||
| @@ -111,14 +111,14 @@ msgstr "Behälter" | |||||||
| msgid "Corrosive" | msgid "Corrosive" | ||||||
| msgstr "Korrosiv" | msgstr "Korrosiv" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28 | #: lib/cannery_web/live/pack_live/form_component.html.heex:28 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count" | msgid "Count" | ||||||
| msgstr "Anzahl" | msgstr "Anzahl" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:16 | #: lib/cannery_web/components/core_components/pack_card.html.heex:16 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:8 | #: lib/cannery_web/live/pack_live/show.html.heex:8 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count:" | msgid "Count:" | ||||||
| msgstr "Anzahl:" | msgstr "Anzahl:" | ||||||
| @@ -196,7 +196,7 @@ msgid "Keep me logged in for 60 days" | |||||||
| msgstr "Für 60 Tage eingeloggt bleiben" | msgstr "Für 60 Tage eingeloggt bleiben" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:47 | #: lib/cannery_web/components/container_table_component.ex:47 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:69 | #: lib/cannery_web/components/move_pack_component.ex:67 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:47 | #: lib/cannery_web/live/container_live/form_component.html.heex:47 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Location" | msgid "Location" | ||||||
| @@ -262,7 +262,7 @@ msgstr "Neue Einladung" | |||||||
| msgid "New Tag" | msgid "New Tag" | ||||||
| msgstr "Neuer Tag" | msgstr "Neuer Tag" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:94 | #: lib/cannery_web/live/pack_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No Ammo" | msgid "No Ammo" | ||||||
| msgstr "Keine Munition" | msgstr "Keine Munition" | ||||||
| @@ -292,15 +292,15 @@ msgstr "Keine Tags" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:43 | #: lib/cannery_web/components/shot_group_table_component.ex:43 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:50 | #: lib/cannery_web/live/pack_live/form_component.html.heex:50 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:92 | #: lib/cannery_web/live/pack_live/show.ex:91 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:30 | #: lib/cannery_web/live/range_live/form_component.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes" | msgid "Notes" | ||||||
| msgstr "Bemerkungen" | msgstr "Bemerkungen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:29 | #: lib/cannery_web/components/core_components/pack_card.html.heex:26 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:24 | #: lib/cannery_web/live/pack_live/show.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes:" | msgid "Notes:" | ||||||
| msgstr "Bemerkungen:" | msgstr "Bemerkungen:" | ||||||
| @@ -316,13 +316,13 @@ msgstr "Auf dem Bücherregal" | |||||||
| msgid "Pressure" | msgid "Pressure" | ||||||
| msgstr "Druck" | msgstr "Druck" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:82 | #: lib/cannery_web/components/pack_table_component.ex:81 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35 | #: lib/cannery_web/live/pack_live/form_component.html.heex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid" | msgid "Price paid" | ||||||
| msgstr "Kaufpreis" | msgstr "Kaufpreis" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:44 | #: lib/cannery_web/components/core_components/pack_card.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid:" | msgid "Price paid:" | ||||||
| msgstr "Kaufpreis:" | msgstr "Kaufpreis:" | ||||||
| @@ -366,7 +366,7 @@ msgstr "Einfach:" | |||||||
| msgid "Steel" | msgid "Steel" | ||||||
| msgstr "Stahl" | msgstr "Stahl" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:113 | #: lib/cannery_web/live/pack_live/show.html.heex:106 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stored in" | msgid "Stored in" | ||||||
| msgstr "Gelagert in" | msgstr "Gelagert in" | ||||||
| @@ -402,7 +402,7 @@ msgid "Tracer" | |||||||
| msgstr "Leuchtspur" | msgstr "Leuchtspur" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:48 | #: lib/cannery_web/components/container_table_component.ex:48 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:68 | #: lib/cannery_web/components/move_pack_component.ex:66 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:39 | #: lib/cannery_web/live/container_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Type" | msgid "Type" | ||||||
| @@ -434,8 +434,8 @@ msgstr "Ihre Daten bleiben bei Ihnen, Punkt" | |||||||
| msgid "No tags for this container" | msgid "No tags for this container" | ||||||
| msgstr "Keine Tags für diesen Behälter" | msgstr "Keine Tags für diesen Behälter" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:78 |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:66 | #: lib/cannery_web/components/core_components/topbar.html.heex:66 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Range" | msgid "Range" | ||||||
| msgstr "Schießplatz" | msgstr "Schießplatz" | ||||||
| @@ -447,7 +447,7 @@ msgstr "Range Day" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:44 | #: lib/cannery_web/components/shot_group_table_component.ex:44 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:93 | #: lib/cannery_web/live/pack_live/show.ex:92 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:41 | #: lib/cannery_web/live/range_live/form_component.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Date" | msgid "Date" | ||||||
| @@ -464,12 +464,12 @@ msgid "No ammo staged" | |||||||
| msgstr "Keine Munition selektiert" | msgstr "Keine Munition selektiert" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:35 | #: lib/cannery_web/live/pack_live/index.ex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "Schüsse dokumentieren" | msgstr "Schüsse dokumentieren" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:42 | #: lib/cannery_web/live/pack_live/show.ex:42 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:40 | #: lib/cannery_web/live/range_live/index.ex:40 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Shot Records" | msgid "Edit Shot Records" | ||||||
| @@ -493,7 +493,7 @@ msgid "Rounds left" | |||||||
| msgstr "Patronen verbleibend" | msgstr "Patronen verbleibend" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:42 | #: lib/cannery_web/components/shot_group_table_component.ex:42 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:91 | #: lib/cannery_web/live/pack_live/show.ex:90 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:69 | #: lib/cannery_web/live/range_live/index.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot" | msgid "Rounds shot" | ||||||
| @@ -505,12 +505,12 @@ msgstr "Patronen abgefeuert" | |||||||
| msgid "Shot Records" | msgid "Shot Records" | ||||||
| msgstr "Schießkladde" | msgstr "Schießkladde" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:43 | #: lib/cannery_web/live/pack_live/index.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "Munition verschieben" | msgstr "Munition verschieben" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:85 | #: lib/cannery_web/components/move_pack_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No other containers" | msgid "No other containers" | ||||||
| msgstr "Kein weiterer Behälter" | msgstr "Kein weiterer Behälter" | ||||||
| @@ -520,14 +520,14 @@ msgstr "Kein weiterer Behälter" | |||||||
| msgid "Shot log" | msgid "Shot log" | ||||||
| msgstr "Schießkladde" | msgstr "Schießkladde" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:164 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:247 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:261 | #: lib/cannery_web/components/ammo_type_table_component.ex:261 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:45 | #: lib/cannery_web/components/core_components/pack_card.html.heex:42 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:50 | #: lib/cannery_web/components/core_components/pack_card.html.heex:47 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | #: lib/cannery_web/components/pack_table_component.ex:163 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:42 | #: lib/cannery_web/components/pack_table_component.ex:246 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "$%{amount}" | msgid "$%{amount}" | ||||||
| msgstr "$%{amount}" | msgstr "$%{amount}" | ||||||
| @@ -614,40 +614,40 @@ msgstr "Editiere %{name} Tags" | |||||||
| msgid "Rounds:" | msgid "Rounds:" | ||||||
| msgstr "Patronen:" | msgstr "Patronen:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:161 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:243 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:260 | #: lib/cannery_web/components/ammo_type_table_component.ex:260 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:160 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:242 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No cost information" | msgid "No cost information" | ||||||
| msgstr "Keine Preisinformationen" | msgstr "Keine Preisinformationen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:84 | #: lib/cannery_web/components/pack_table_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "% left" | msgid "% left" | ||||||
| msgstr "% verbleibend" | msgstr "% verbleibend" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:41 | #: lib/cannery_web/live/pack_live/show.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current value:" | msgid "Current value:" | ||||||
| msgstr "Derzeitiger Wert:" | msgstr "Derzeitiger Wert:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:36 | #: lib/cannery_web/live/pack_live/show.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original cost:" | msgid "Original cost:" | ||||||
| msgstr "Originalpreis:" | msgstr "Originalpreis:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:13 | #: lib/cannery_web/live/pack_live/show.html.heex:13 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original count:" | msgid "Original count:" | ||||||
| msgstr "Ursprüngliche Anzahl:" | msgstr "Ursprüngliche Anzahl:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:18 | #: lib/cannery_web/live/pack_live/show.html.heex:18 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Percentage left:" | msgid "Percentage left:" | ||||||
| msgstr "Prozent verbleibend:" | msgstr "Prozent verbleibend:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:126 | #: lib/cannery_web/live/pack_live/show.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds used" | msgid "Rounds used" | ||||||
| msgstr "Patronen verbraucht" | msgstr "Patronen verbraucht" | ||||||
| @@ -677,13 +677,13 @@ msgstr "Registrieren" | |||||||
| msgid "Reset your password" | msgid "Reset your password" | ||||||
| msgstr "Passwort zurücksetzen" | msgstr "Passwort zurücksetzen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:41 | #: lib/cannery_web/live/pack_live/show.ex:41 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:32 | #: lib/cannery_web/live/range_live/index.ex:32 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record Shots" | msgid "Record Shots" | ||||||
| msgstr "Schüsse dokumentieren" | msgstr "Schüsse dokumentieren" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:69 | #: lib/cannery_web/live/pack_live/form_component.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Copies" | msgid "Copies" | ||||||
| msgstr "Kopien" | msgstr "Kopien" | ||||||
| @@ -742,12 +742,12 @@ msgstr "Quellcode ansehen" | |||||||
| msgid "Catalog" | msgid "Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:45 | #: lib/cannery_web/live/pack_live/show.ex:45 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit Ammo" | msgid "Edit Ammo" | ||||||
| msgstr "Munitionstyp bearbeiten" | msgstr "Munitionstyp bearbeiten" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:43 | #: lib/cannery_web/live/pack_live/show.ex:43 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Move Ammo" | msgid "Move Ammo" | ||||||
| msgstr "Munition verschieben" | msgstr "Munition verschieben" | ||||||
| @@ -757,12 +757,12 @@ msgstr "Munition verschieben" | |||||||
| msgid "No ammo in this container" | msgid "No ammo in this container" | ||||||
| msgstr "Keine Munitionsgruppe in diesem Behälter" | msgstr "Keine Munitionsgruppe in diesem Behälter" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:44 | #: lib/cannery_web/live/pack_live/show.ex:44 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Show Ammo" | msgid "Show Ammo" | ||||||
| msgstr "Zeige Munitionsarten" | msgstr "Zeige Munitionsarten" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:118 | #: lib/cannery_web/live/pack_live/show.html.heex:111 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "This ammo is not in a container" | msgid "This ammo is not in a container" | ||||||
| msgstr "Diese Munitionsgruppe ist nicht in einem Behälter" | msgstr "Diese Munitionsgruppe ist nicht in einem Behälter" | ||||||
| @@ -790,25 +790,25 @@ msgstr "" | |||||||
| msgid "Leave \"Uses left\" blank to make invite unlimited" | msgid "Leave \"Uses left\" blank to make invite unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:54 | #: lib/cannery_web/components/core_components/pack_card.html.heex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Container:" | msgid "Container:" | ||||||
| msgstr "Behälter" | msgstr "Behälter" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:87 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show used" | msgid "Show used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:202 | #: lib/cannery_web/components/pack_table_component.ex:201 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:19 | #: lib/cannery_web/live/pack_live/show.html.heex:19 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "%{percentage}%" | msgid "%{percentage}%" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:153 | #: lib/cannery_web/live/range_live/index.ex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Rounds shot: %{count}" | msgid "Rounds shot: %{count}" | ||||||
| msgstr "Patronen abgefeuert" | msgstr "Patronen abgefeuert" | ||||||
| @@ -989,28 +989,28 @@ msgstr "" | |||||||
| msgid "Edit %{ammo_type_name}" | msgid "Edit %{ammo_type_name}" | ||||||
| msgstr "%{name} bearbeiten" | msgstr "%{name} bearbeiten" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:251 | #: lib/cannery_web/components/core_components/pack_card.html.heex:17 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:17 | #: lib/cannery_web/components/pack_table_component.ex:250 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Empty" | msgid "Empty" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:81 | #: lib/cannery_web/components/pack_table_component.ex:80 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR" | msgid "CPR" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:49 | #: lib/cannery_web/components/core_components/pack_card.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR:" | msgid "CPR:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:88 | #: lib/cannery_web/components/pack_table_component.ex:87 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count" | msgid "Original Count" | ||||||
| msgstr "Ursprüngliche Anzahl:" | msgstr "Ursprüngliche Anzahl:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:24 | #: lib/cannery_web/components/core_components/pack_card.html.heex:21 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count:" | msgid "Original Count:" | ||||||
| msgstr "Ursprüngliche Anzahl:" | msgstr "Ursprüngliche Anzahl:" | ||||||
| @@ -1020,34 +1020,34 @@ msgstr "Ursprüngliche Anzahl:" | |||||||
| msgid "Home" | msgid "Home" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:64 | #: lib/cannery_web/components/pack_table_component.ex:63 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on" | msgid "Last used on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:39 | #: lib/cannery_web/components/core_components/pack_card.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on:" | msgid "Last used on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:182 | #: lib/cannery_web/components/pack_table_component.ex:181 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Never used" | msgid "Never used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:69 | #: lib/cannery_web/components/pack_table_component.ex:68 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42 | #: lib/cannery_web/live/pack_live/form_component.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on" | msgid "Purchased on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:34 | #: lib/cannery_web/components/core_components/pack_card.html.heex:31 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:30 | #: lib/cannery_web/live/pack_live/show.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on:" | msgid "Purchased on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:51 | #: lib/cannery_web/live/pack_live/index.ex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit ammo" | msgid "Edit ammo" | ||||||
| msgstr "Munitionstyp bearbeiten" | msgstr "Munitionstyp bearbeiten" | ||||||
| @@ -1063,7 +1063,7 @@ msgstr "Keine Munitionsarten" | |||||||
| msgid "Search catalog" | msgid "Search catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:81 | #: lib/cannery_web/live/pack_live/index.html.heex:81 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Search ammo" | msgid "Search ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1218,12 +1218,12 @@ msgstr "" | |||||||
| msgid "Really great weather" | msgid "Really great weather" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:60 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:100 | #: lib/cannery_web/components/ammo_type_table_component.ex:100 | ||||||
| #: lib/cannery_web/components/container_table_component.ex:67 | #: lib/cannery_web/components/container_table_component.ex:67 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:70 | #: lib/cannery_web/components/move_pack_component.ex:68 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:59 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:45 | #: lib/cannery_web/components/shot_group_table_component.ex:45 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:94 | #: lib/cannery_web/live/pack_live/show.ex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1238,7 +1238,7 @@ msgstr "" | |||||||
| msgid "Log out" | msgid "Log out" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current Count" | msgid "Current Count" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1249,9 +1249,9 @@ msgstr "" | |||||||
| msgid "Close modal" | msgid "Close modal" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:58 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:103 | #: lib/cannery_web/live/container_live/show.html.heex:103 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:58 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:92 | #: lib/cannery_web/live/range_live/index.html.heex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "All" | msgid "All" | ||||||
| @@ -1323,7 +1323,7 @@ msgstr "" | |||||||
| msgid "Load grains:" | msgid "Load grains:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:29 | #: lib/cannery_web/live/pack_live/index.html.heex:29 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "No ammo" | msgid "No ammo" | ||||||
| msgstr "Keine Munition" | msgstr "Keine Munition" | ||||||
| @@ -1333,11 +1333,11 @@ msgstr "Keine Munition" | |||||||
| msgid "None specified" | msgid "None specified" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:61 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:106 | #: lib/cannery_web/live/container_live/show.html.heex:106 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:61 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:95 | #: lib/cannery_web/live/range_live/index.html.heex:95 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Pistol" | msgid "Pistol" | ||||||
| @@ -1358,11 +1358,11 @@ msgstr "Zündertyp" | |||||||
| msgid "Projectile" | msgid "Projectile" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:59 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:104 | #: lib/cannery_web/live/container_live/show.html.heex:104 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:59 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:93 | #: lib/cannery_web/live/range_live/index.html.heex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rifle" | msgid "Rifle" | ||||||
| @@ -1412,11 +1412,11 @@ msgstr "" | |||||||
| msgid "Shot type:" | msgid "Shot type:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:60 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:105 | #: lib/cannery_web/live/container_live/show.html.heex:105 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:60 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:94 | #: lib/cannery_web/live/range_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shotgun" | msgid "Shotgun" | ||||||
| @@ -1456,11 +1456,11 @@ msgid "Wadding:" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:150 | #: lib/cannery_web/components/ammo_type_table_component.ex:150 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:50 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:97 | #: lib/cannery_web/live/container_live/show.html.heex:97 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:50 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:86 | #: lib/cannery_web/live/range_live/index.html.heex:86 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Class" | msgid "Class" | ||||||
|   | |||||||
| @@ -161,12 +161,12 @@ msgstr "" | |||||||
| msgid "Tag could not be removed" | msgid "Tag could not be removed" | ||||||
| msgstr "Tag konnte nicht gelöscht werden" | msgstr "Tag konnte nicht gelöscht werden" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:160 | #: lib/cannery_web/live/pack_live/form_component.ex:159 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Could not parse number of copies" | msgid "Could not parse number of copies" | ||||||
| msgstr "Konnte die Anzahl der Kopien nicht verstehen" | msgstr "Konnte die Anzahl der Kopien nicht verstehen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:150 | #: lib/cannery_web/live/pack_live/form_component.ex:149 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -178,7 +178,7 @@ msgstr "" | |||||||
| msgid "Invalid multiplier" | msgid "Invalid multiplier" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/ammo/ammo_group.ex:92 | #: lib/cannery/ammo/pack.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Please select an ammo type and container" | msgid "Please select an ammo type and container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -203,7 +203,7 @@ msgstr "" | |||||||
| msgid "Ammo left must be at least 0" | msgid "Ammo left must be at least 0" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/activity_log/shot_group.ex:122 | #: lib/cannery/activity_log/shot_group.ex:119 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Count can be at most %{count} shots" | msgid "Count can be at most %{count} shots" | ||||||
| msgstr "Anzahl muss weniger als %{count} betragen" | msgstr "Anzahl muss weniger als %{count} betragen" | ||||||
|   | |||||||
| @@ -73,8 +73,8 @@ msgstr "" | |||||||
| msgid "Are you sure you want to delete %{name}?" | msgid "Are you sure you want to delete %{name}?" | ||||||
| msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?" | msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:191 | #: lib/cannery_web/live/pack_live/index.html.heex:187 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:74 | #: lib/cannery_web/live/pack_live/show.html.heex:72 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this ammo?" | msgid "Are you sure you want to delete this ammo?" | ||||||
| msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?" | msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?" | ||||||
| @@ -129,10 +129,10 @@ msgid "Please check your email to verify your account" | |||||||
| msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto" | msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:85 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:59 | #: lib/cannery_web/live/container_live/form_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:47 | #: lib/cannery_web/live/range_live/form_component.html.heex:47 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -176,13 +176,13 @@ msgstr "Schüsse erfolgreich dokumentiert" | |||||||
| msgid "Are you sure you want to unstage this ammo?" | msgid "Are you sure you want to unstage this ammo?" | ||||||
| msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?" | msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:159 | #: lib/cannery_web/live/pack_live/show.ex:158 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:152 | #: lib/cannery_web/live/range_live/index.html.heex:152 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this shot record?" | msgid "Are you sure you want to delete this shot record?" | ||||||
| msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?" | msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:81 | #: lib/cannery_web/live/pack_live/show.ex:80 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:79 | #: lib/cannery_web/live/range_live/index.ex:79 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shot records deleted succesfully" | msgid "Shot records deleted succesfully" | ||||||
| @@ -198,7 +198,7 @@ msgstr "Schießkladde erfolgreich aktualisiert" | |||||||
| msgid "%{email} confirmed successfully." | msgid "%{email} confirmed successfully." | ||||||
| msgstr "%{email} erfolgreich bestätigt." | msgstr "%{email} erfolgreich bestätigt." | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:54 | #: lib/cannery_web/components/move_pack_component.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo moved to %{name} successfully" | msgid "Ammo moved to %{name} successfully" | ||||||
| msgstr "Munition erfolgreich zu %{name} verschoben" | msgstr "Munition erfolgreich zu %{name} verschoben" | ||||||
| @@ -213,13 +213,13 @@ msgstr "Der Zwischenablage hinzugefügt" | |||||||
| msgid "%{name} removed successfully" | msgid "%{name} removed successfully" | ||||||
| msgstr "%{name} erfolgreich entfernt" | msgstr "%{name} erfolgreich entfernt" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:10 | #: lib/cannery_web/live/pack_live/index.html.heex:10 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:20 | #: lib/cannery_web/live/pack_live/index.html.heex:20 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "You'll need to" | msgid "You'll need to" | ||||||
| msgstr "Sie müssen" | msgstr "Sie müssen" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:78 | #: lib/cannery_web/live/pack_live/form_component.html.heex:78 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Creating..." | msgid "Creating..." | ||||||
| msgstr "Erstellen..." | msgstr "Erstellen..." | ||||||
| @@ -234,23 +234,23 @@ msgstr "Möchten Sie die Sprache wechseln?" | |||||||
| msgid "Language updated successfully." | msgid "Language updated successfully." | ||||||
| msgstr "Spracheinstellung gespeichert." | msgstr "Spracheinstellung gespeichert." | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | #: lib/cannery_web/live/pack_live/index.ex:94 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:55 | #: lib/cannery_web/live/pack_live/show.ex:55 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo deleted succesfully" | msgid "Ammo deleted succesfully" | ||||||
| msgstr "Munitionsgruppe erfolgreich gelöscht" | msgstr "Munitionsgruppe erfolgreich gelöscht" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:93 | #: lib/cannery_web/live/range_live/index.ex:92 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo unstaged succesfully" | msgid "Ammo unstaged succesfully" | ||||||
| msgstr "Munition erfolgreich demarkiert" | msgstr "Munition erfolgreich demarkiert" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:126 | #: lib/cannery_web/live/pack_live/form_component.ex:125 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo updated successfully" | msgid "Ammo updated successfully" | ||||||
| msgstr "Munitionsgruppe erfolgreich aktualisiert" | msgstr "Munitionsgruppe erfolgreich aktualisiert" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:185 | #: lib/cannery_web/live/pack_live/form_component.ex:184 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo added successfully" | msgid "Ammo added successfully" | ||||||
| msgid_plural "Ammo added successfully" | msgid_plural "Ammo added successfully" | ||||||
|   | |||||||
| @@ -27,15 +27,15 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:58 | #: lib/cannery_web/components/core_components/topbar.html.heex:58 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:41 | #: lib/cannery_web/components/shot_group_table_component.ex:41 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:75 | #: lib/cannery_web/live/pack_live/index.ex:75 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | #: lib/cannery_web/live/pack_live/index.ex:84 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 | #: lib/cannery_web/live/pack_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo" | msgid "Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:96 | #: lib/cannery_web/components/pack_table_component.ex:95 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22 | #: lib/cannery_web/live/pack_live/form_component.html.heex:22 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo type" | msgid "Ammo type" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -86,9 +86,9 @@ msgstr "" | |||||||
| msgid "Case material" | msgid "Case material" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:74 | #: lib/cannery_web/components/move_pack_component.ex:65 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | #: lib/cannery_web/components/pack_table_component.ex:73 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:59 | #: lib/cannery_web/live/pack_live/form_component.html.heex:59 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container" | msgid "Container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -107,14 +107,14 @@ msgstr "" | |||||||
| msgid "Corrosive" | msgid "Corrosive" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28 | #: lib/cannery_web/live/pack_live/form_component.html.heex:28 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count" | msgid "Count" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:16 | #: lib/cannery_web/components/core_components/pack_card.html.heex:16 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:8 | #: lib/cannery_web/live/pack_live/show.html.heex:8 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count:" | msgid "Count:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -192,7 +192,7 @@ msgid "Keep me logged in for 60 days" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:47 | #: lib/cannery_web/components/container_table_component.ex:47 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:69 | #: lib/cannery_web/components/move_pack_component.ex:67 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:47 | #: lib/cannery_web/live/container_live/form_component.html.heex:47 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Location" | msgid "Location" | ||||||
| @@ -258,7 +258,7 @@ msgstr "" | |||||||
| msgid "New Tag" | msgid "New Tag" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:94 | #: lib/cannery_web/live/pack_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No Ammo" | msgid "No Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -288,15 +288,15 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:43 | #: lib/cannery_web/components/shot_group_table_component.ex:43 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:50 | #: lib/cannery_web/live/pack_live/form_component.html.heex:50 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:92 | #: lib/cannery_web/live/pack_live/show.ex:91 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:30 | #: lib/cannery_web/live/range_live/form_component.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes" | msgid "Notes" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:29 | #: lib/cannery_web/components/core_components/pack_card.html.heex:26 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:24 | #: lib/cannery_web/live/pack_live/show.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes:" | msgid "Notes:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -312,13 +312,13 @@ msgstr "" | |||||||
| msgid "Pressure" | msgid "Pressure" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:82 | #: lib/cannery_web/components/pack_table_component.ex:81 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35 | #: lib/cannery_web/live/pack_live/form_component.html.heex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid" | msgid "Price paid" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:44 | #: lib/cannery_web/components/core_components/pack_card.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid:" | msgid "Price paid:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -360,7 +360,7 @@ msgstr "" | |||||||
| msgid "Steel" | msgid "Steel" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:113 | #: lib/cannery_web/live/pack_live/show.html.heex:106 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stored in" | msgid "Stored in" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -396,7 +396,7 @@ msgid "Tracer" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:48 | #: lib/cannery_web/components/container_table_component.ex:48 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:68 | #: lib/cannery_web/components/move_pack_component.ex:66 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:39 | #: lib/cannery_web/live/container_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Type" | msgid "Type" | ||||||
| @@ -428,8 +428,8 @@ msgstr "" | |||||||
| msgid "No tags for this container" | msgid "No tags for this container" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:78 |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:66 | #: lib/cannery_web/components/core_components/topbar.html.heex:66 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Range" | msgid "Range" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -441,7 +441,7 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:44 | #: lib/cannery_web/components/shot_group_table_component.ex:44 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:93 | #: lib/cannery_web/live/pack_live/show.ex:92 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:41 | #: lib/cannery_web/live/range_live/form_component.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Date" | msgid "Date" | ||||||
| @@ -458,12 +458,12 @@ msgid "No ammo staged" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:35 | #: lib/cannery_web/live/pack_live/index.ex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:42 | #: lib/cannery_web/live/pack_live/show.ex:42 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:40 | #: lib/cannery_web/live/range_live/index.ex:40 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Shot Records" | msgid "Edit Shot Records" | ||||||
| @@ -487,7 +487,7 @@ msgid "Rounds left" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:42 | #: lib/cannery_web/components/shot_group_table_component.ex:42 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:91 | #: lib/cannery_web/live/pack_live/show.ex:90 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:69 | #: lib/cannery_web/live/range_live/index.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot" | msgid "Rounds shot" | ||||||
| @@ -499,12 +499,12 @@ msgstr "" | |||||||
| msgid "Shot Records" | msgid "Shot Records" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:43 | #: lib/cannery_web/live/pack_live/index.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:85 | #: lib/cannery_web/components/move_pack_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No other containers" | msgid "No other containers" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -514,14 +514,14 @@ msgstr "" | |||||||
| msgid "Shot log" | msgid "Shot log" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:164 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:247 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:261 | #: lib/cannery_web/components/ammo_type_table_component.ex:261 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:45 | #: lib/cannery_web/components/core_components/pack_card.html.heex:42 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:50 | #: lib/cannery_web/components/core_components/pack_card.html.heex:47 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | #: lib/cannery_web/components/pack_table_component.ex:163 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:42 | #: lib/cannery_web/components/pack_table_component.ex:246 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "$%{amount}" | msgid "$%{amount}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -608,40 +608,40 @@ msgstr "" | |||||||
| msgid "Rounds:" | msgid "Rounds:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:161 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:243 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:260 | #: lib/cannery_web/components/ammo_type_table_component.ex:260 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:160 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:242 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No cost information" | msgid "No cost information" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:84 | #: lib/cannery_web/components/pack_table_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "% left" | msgid "% left" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:41 | #: lib/cannery_web/live/pack_live/show.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current value:" | msgid "Current value:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:36 | #: lib/cannery_web/live/pack_live/show.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original cost:" | msgid "Original cost:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:13 | #: lib/cannery_web/live/pack_live/show.html.heex:13 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original count:" | msgid "Original count:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:18 | #: lib/cannery_web/live/pack_live/show.html.heex:18 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Percentage left:" | msgid "Percentage left:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:126 | #: lib/cannery_web/live/pack_live/show.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds used" | msgid "Rounds used" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -671,13 +671,13 @@ msgstr "" | |||||||
| msgid "Reset your password" | msgid "Reset your password" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:41 | #: lib/cannery_web/live/pack_live/show.ex:41 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:32 | #: lib/cannery_web/live/range_live/index.ex:32 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record Shots" | msgid "Record Shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:69 | #: lib/cannery_web/live/pack_live/form_component.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Copies" | msgid "Copies" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -736,12 +736,12 @@ msgstr "" | |||||||
| msgid "Catalog" | msgid "Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:45 | #: lib/cannery_web/live/pack_live/show.ex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Ammo" | msgid "Edit Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:43 | #: lib/cannery_web/live/pack_live/show.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move Ammo" | msgid "Move Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -751,12 +751,12 @@ msgstr "" | |||||||
| msgid "No ammo in this container" | msgid "No ammo in this container" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:44 | #: lib/cannery_web/live/pack_live/show.ex:44 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show Ammo" | msgid "Show Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:118 | #: lib/cannery_web/live/pack_live/show.html.heex:111 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "This ammo is not in a container" | msgid "This ammo is not in a container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -784,25 +784,25 @@ msgstr "" | |||||||
| msgid "Leave \"Uses left\" blank to make invite unlimited" | msgid "Leave \"Uses left\" blank to make invite unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:54 | #: lib/cannery_web/components/core_components/pack_card.html.heex:51 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container:" | msgid "Container:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:87 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show used" | msgid "Show used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:202 | #: lib/cannery_web/components/pack_table_component.ex:201 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:19 | #: lib/cannery_web/live/pack_live/show.html.heex:19 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "%{percentage}%" | msgid "%{percentage}%" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:153 | #: lib/cannery_web/live/range_live/index.ex:154 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot: %{count}" | msgid "Rounds shot: %{count}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -983,28 +983,28 @@ msgstr "" | |||||||
| msgid "Edit %{ammo_type_name}" | msgid "Edit %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:251 | #: lib/cannery_web/components/core_components/pack_card.html.heex:17 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:17 | #: lib/cannery_web/components/pack_table_component.ex:250 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Empty" | msgid "Empty" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:81 | #: lib/cannery_web/components/pack_table_component.ex:80 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR" | msgid "CPR" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:49 | #: lib/cannery_web/components/core_components/pack_card.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR:" | msgid "CPR:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:88 | #: lib/cannery_web/components/pack_table_component.ex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original Count" | msgid "Original Count" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:24 | #: lib/cannery_web/components/core_components/pack_card.html.heex:21 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original Count:" | msgid "Original Count:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1014,34 +1014,34 @@ msgstr "" | |||||||
| msgid "Home" | msgid "Home" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:64 | #: lib/cannery_web/components/pack_table_component.ex:63 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on" | msgid "Last used on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:39 | #: lib/cannery_web/components/core_components/pack_card.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on:" | msgid "Last used on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:182 | #: lib/cannery_web/components/pack_table_component.ex:181 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Never used" | msgid "Never used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:69 | #: lib/cannery_web/components/pack_table_component.ex:68 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42 | #: lib/cannery_web/live/pack_live/form_component.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on" | msgid "Purchased on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:34 | #: lib/cannery_web/components/core_components/pack_card.html.heex:31 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:30 | #: lib/cannery_web/live/pack_live/show.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on:" | msgid "Purchased on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:51 | #: lib/cannery_web/live/pack_live/index.ex:51 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit ammo" | msgid "Edit ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1057,7 +1057,7 @@ msgstr "" | |||||||
| msgid "Search catalog" | msgid "Search catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:81 | #: lib/cannery_web/live/pack_live/index.html.heex:81 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Search ammo" | msgid "Search ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1201,12 +1201,12 @@ msgstr "" | |||||||
| msgid "Really great weather" | msgid "Really great weather" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:60 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:100 | #: lib/cannery_web/components/ammo_type_table_component.ex:100 | ||||||
| #: lib/cannery_web/components/container_table_component.ex:67 | #: lib/cannery_web/components/container_table_component.ex:67 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:70 | #: lib/cannery_web/components/move_pack_component.ex:68 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:59 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:45 | #: lib/cannery_web/components/shot_group_table_component.ex:45 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:94 | #: lib/cannery_web/live/pack_live/show.ex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1221,7 +1221,7 @@ msgstr "" | |||||||
| msgid "Log out" | msgid "Log out" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current Count" | msgid "Current Count" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1232,9 +1232,9 @@ msgstr "" | |||||||
| msgid "Close modal" | msgid "Close modal" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:58 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:103 | #: lib/cannery_web/live/container_live/show.html.heex:103 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:58 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:92 | #: lib/cannery_web/live/range_live/index.html.heex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "All" | msgid "All" | ||||||
| @@ -1306,7 +1306,7 @@ msgstr "" | |||||||
| msgid "Load grains:" | msgid "Load grains:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:29 | #: lib/cannery_web/live/pack_live/index.html.heex:29 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No ammo" | msgid "No ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1316,11 +1316,11 @@ msgstr "" | |||||||
| msgid "None specified" | msgid "None specified" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:61 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:106 | #: lib/cannery_web/live/container_live/show.html.heex:106 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:61 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:95 | #: lib/cannery_web/live/range_live/index.html.heex:95 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Pistol" | msgid "Pistol" | ||||||
| @@ -1341,11 +1341,11 @@ msgstr "" | |||||||
| msgid "Projectile" | msgid "Projectile" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:59 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:104 | #: lib/cannery_web/live/container_live/show.html.heex:104 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:59 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:93 | #: lib/cannery_web/live/range_live/index.html.heex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rifle" | msgid "Rifle" | ||||||
| @@ -1395,11 +1395,11 @@ msgstr "" | |||||||
| msgid "Shot type:" | msgid "Shot type:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:60 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:105 | #: lib/cannery_web/live/container_live/show.html.heex:105 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:60 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:94 | #: lib/cannery_web/live/range_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shotgun" | msgid "Shotgun" | ||||||
| @@ -1439,11 +1439,11 @@ msgid "Wadding:" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:150 | #: lib/cannery_web/components/ammo_type_table_component.ex:150 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:50 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:97 | #: lib/cannery_web/live/container_live/show.html.heex:97 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:50 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:86 | #: lib/cannery_web/live/range_live/index.html.heex:86 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Class" | msgid "Class" | ||||||
|   | |||||||
| @@ -10,14 +10,14 @@ msgid "" | |||||||
| msgstr "" | msgstr "" | ||||||
| "Language: en\n" | "Language: en\n" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:59 | #: lib/cannery_web/live/pack_live/index.ex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:67 | #: lib/cannery_web/live/pack_live/index.ex:67 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:38 | #: lib/cannery_web/live/pack_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add Ammo" | msgid "Add Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:34 | #: lib/cannery_web/live/pack_live/index.html.heex:34 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add your first box!" | msgid "Add your first box!" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -121,10 +121,10 @@ msgid "Reset password" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:84 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:57 | #: lib/cannery_web/live/container_live/form_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:45 | #: lib/cannery_web/live/range_live/form_component.html.heex:45 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -156,19 +156,19 @@ msgstr "" | |||||||
| msgid "Why not get some ready to shoot?" | msgid "Why not get some ready to shoot?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:127 | #: lib/cannery_web/live/pack_live/index.html.heex:127 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:103 | #: lib/cannery_web/live/pack_live/show.html.heex:96 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:45 | #: lib/cannery_web/live/range_live/index.html.heex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:90 | #: lib/cannery_web/components/move_pack_component.ex:88 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add another container!" | msgid "Add another container!" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:126 | #: lib/cannery_web/components/move_pack_component.ex:124 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Select" | msgid "Select" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -178,12 +178,12 @@ msgstr "" | |||||||
| msgid "Copy to clipboard" | msgid "Copy to clipboard" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:14 | #: lib/cannery_web/live/pack_live/index.html.heex:14 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add a container first" | msgid "add a container first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:77 | #: lib/cannery_web/live/pack_live/form_component.html.heex:77 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Create" | msgid "Create" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -198,19 +198,19 @@ msgstr "" | |||||||
| msgid "Change language" | msgid "Change language" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:55 | #: lib/cannery_web/live/pack_live/show.html.heex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View in Catalog" | msgid "View in Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:24 | #: lib/cannery_web/live/pack_live/index.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add an ammo type first" | msgid "add an ammo type first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | #: lib/cannery_web/components/move_pack_component.ex:78 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:144 | #: lib/cannery_web/live/pack_live/index.html.heex:144 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:96 | #: lib/cannery_web/live/pack_live/show.html.heex:89 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -220,13 +220,13 @@ msgstr "" | |||||||
| msgid "Set Unlimited" | msgid "Set Unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:89 | #: lib/cannery_web/live/pack_live/show.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:38 | #: lib/cannery_web/live/range_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage for range" | msgid "Stage for range" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:88 | #: lib/cannery_web/live/pack_live/show.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:37 | #: lib/cannery_web/live/range_live/index.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage from range" | msgid "Unstage from range" | ||||||
| @@ -276,7 +276,7 @@ msgstr "" | |||||||
| msgid "Delete invite for %{invite_name}" | msgid "Delete invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:161 | #: lib/cannery_web/live/pack_live/show.ex:160 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:155 | #: lib/cannery_web/live/range_live/index.html.heex:155 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete shot record of %{shot_group_count} shots" | msgid "Delete shot record of %{shot_group_count} shots" | ||||||
| @@ -300,18 +300,12 @@ msgstr "" | |||||||
| msgid "Edit %{tag_name}" | msgid "Edit %{tag_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:166 |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:62 |  | ||||||
| #, elixir-autogen, elixir-format |  | ||||||
| msgid "Edit ammo group of %{ammo_group_count} bullets" |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/invite_live/index.html.heex:46 | #: lib/cannery_web/live/invite_live/index.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit invite for %{invite_name}" | msgid "Edit invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:146 | #: lib/cannery_web/live/pack_live/show.ex:145 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit shot group of %{shot_group_count} shots" | msgid "Edit shot group of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -321,7 +315,7 @@ msgstr "" | |||||||
| msgid "Edit shot record of %{shot_group_count} shots" | msgid "Edit shot record of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:120 | #: lib/cannery_web/live/pack_live/index.html.heex:120 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Stage" | msgid "Stage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -332,7 +326,7 @@ msgstr "" | |||||||
| msgid "Tag %{container_name}" | msgid "Tag %{container_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:119 | #: lib/cannery_web/live/pack_live/index.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage" | msgid "Unstage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -342,19 +336,25 @@ msgstr "" | |||||||
| msgid "View %{ammo_type_name}" | msgid "View %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:178 | #: lib/cannery_web/live/pack_live/index.html.heex:174 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Clone ammo group of %{ammo_group_count} bullets" | msgid "Clone pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:193 | #: lib/cannery_web/live/pack_live/index.html.heex:189 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:76 | #: lib/cannery_web/live/pack_live/show.html.heex:74 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Delete ammo group of %{ammo_group_count} bullets" | msgid "Delete pack of %{pack_count} bullets" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:164 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:62 | ||||||
|  | #, elixir-autogen, elixir-format, fuzzy | ||||||
|  | msgid "Edit pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:154 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "View ammo group of %{ammo_group_count} bullets" | msgid "View pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -27,15 +27,15 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:58 | #: lib/cannery_web/components/core_components/topbar.html.heex:58 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:41 | #: lib/cannery_web/components/shot_group_table_component.ex:41 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:75 | #: lib/cannery_web/live/pack_live/index.ex:75 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | #: lib/cannery_web/live/pack_live/index.ex:84 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 | #: lib/cannery_web/live/pack_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo" | msgid "Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:96 | #: lib/cannery_web/components/pack_table_component.ex:95 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22 | #: lib/cannery_web/live/pack_live/form_component.html.heex:22 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo type" | msgid "Ammo type" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -86,9 +86,9 @@ msgstr "" | |||||||
| msgid "Case material" | msgid "Case material" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:74 | #: lib/cannery_web/components/move_pack_component.ex:65 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | #: lib/cannery_web/components/pack_table_component.ex:73 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:59 | #: lib/cannery_web/live/pack_live/form_component.html.heex:59 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container" | msgid "Container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -107,14 +107,14 @@ msgstr "" | |||||||
| msgid "Corrosive" | msgid "Corrosive" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28 | #: lib/cannery_web/live/pack_live/form_component.html.heex:28 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count" | msgid "Count" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:16 | #: lib/cannery_web/components/core_components/pack_card.html.heex:16 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:8 | #: lib/cannery_web/live/pack_live/show.html.heex:8 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count:" | msgid "Count:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -192,7 +192,7 @@ msgid "Keep me logged in for 60 days" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:47 | #: lib/cannery_web/components/container_table_component.ex:47 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:69 | #: lib/cannery_web/components/move_pack_component.ex:67 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:47 | #: lib/cannery_web/live/container_live/form_component.html.heex:47 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Location" | msgid "Location" | ||||||
| @@ -258,7 +258,7 @@ msgstr "" | |||||||
| msgid "New Tag" | msgid "New Tag" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:94 | #: lib/cannery_web/live/pack_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No Ammo" | msgid "No Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -288,15 +288,15 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:43 | #: lib/cannery_web/components/shot_group_table_component.ex:43 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:50 | #: lib/cannery_web/live/pack_live/form_component.html.heex:50 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:92 | #: lib/cannery_web/live/pack_live/show.ex:91 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:30 | #: lib/cannery_web/live/range_live/form_component.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes" | msgid "Notes" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:29 | #: lib/cannery_web/components/core_components/pack_card.html.heex:26 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:24 | #: lib/cannery_web/live/pack_live/show.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes:" | msgid "Notes:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -312,13 +312,13 @@ msgstr "" | |||||||
| msgid "Pressure" | msgid "Pressure" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:82 | #: lib/cannery_web/components/pack_table_component.ex:81 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35 | #: lib/cannery_web/live/pack_live/form_component.html.heex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid" | msgid "Price paid" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:44 | #: lib/cannery_web/components/core_components/pack_card.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid:" | msgid "Price paid:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -360,7 +360,7 @@ msgstr "" | |||||||
| msgid "Steel" | msgid "Steel" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:113 | #: lib/cannery_web/live/pack_live/show.html.heex:106 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stored in" | msgid "Stored in" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -396,7 +396,7 @@ msgid "Tracer" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:48 | #: lib/cannery_web/components/container_table_component.ex:48 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:68 | #: lib/cannery_web/components/move_pack_component.ex:66 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:39 | #: lib/cannery_web/live/container_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Type" | msgid "Type" | ||||||
| @@ -428,8 +428,8 @@ msgstr "" | |||||||
| msgid "No tags for this container" | msgid "No tags for this container" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:78 |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:66 | #: lib/cannery_web/components/core_components/topbar.html.heex:66 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Range" | msgid "Range" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -441,7 +441,7 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:44 | #: lib/cannery_web/components/shot_group_table_component.ex:44 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:93 | #: lib/cannery_web/live/pack_live/show.ex:92 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:41 | #: lib/cannery_web/live/range_live/form_component.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Date" | msgid "Date" | ||||||
| @@ -458,12 +458,12 @@ msgid "No ammo staged" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:35 | #: lib/cannery_web/live/pack_live/index.ex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:42 | #: lib/cannery_web/live/pack_live/show.ex:42 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:40 | #: lib/cannery_web/live/range_live/index.ex:40 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Shot Records" | msgid "Edit Shot Records" | ||||||
| @@ -487,7 +487,7 @@ msgid "Rounds left" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:42 | #: lib/cannery_web/components/shot_group_table_component.ex:42 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:91 | #: lib/cannery_web/live/pack_live/show.ex:90 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:69 | #: lib/cannery_web/live/range_live/index.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot" | msgid "Rounds shot" | ||||||
| @@ -499,12 +499,12 @@ msgstr "" | |||||||
| msgid "Shot Records" | msgid "Shot Records" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:43 | #: lib/cannery_web/live/pack_live/index.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:85 | #: lib/cannery_web/components/move_pack_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No other containers" | msgid "No other containers" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -514,14 +514,14 @@ msgstr "" | |||||||
| msgid "Shot log" | msgid "Shot log" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:164 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:247 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:261 | #: lib/cannery_web/components/ammo_type_table_component.ex:261 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:45 | #: lib/cannery_web/components/core_components/pack_card.html.heex:42 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:50 | #: lib/cannery_web/components/core_components/pack_card.html.heex:47 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | #: lib/cannery_web/components/pack_table_component.ex:163 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:42 | #: lib/cannery_web/components/pack_table_component.ex:246 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "$%{amount}" | msgid "$%{amount}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -608,40 +608,40 @@ msgstr "" | |||||||
| msgid "Rounds:" | msgid "Rounds:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:161 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:243 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:260 | #: lib/cannery_web/components/ammo_type_table_component.ex:260 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:160 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:242 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No cost information" | msgid "No cost information" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:84 | #: lib/cannery_web/components/pack_table_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "% left" | msgid "% left" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:41 | #: lib/cannery_web/live/pack_live/show.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current value:" | msgid "Current value:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:36 | #: lib/cannery_web/live/pack_live/show.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original cost:" | msgid "Original cost:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:13 | #: lib/cannery_web/live/pack_live/show.html.heex:13 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original count:" | msgid "Original count:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:18 | #: lib/cannery_web/live/pack_live/show.html.heex:18 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Percentage left:" | msgid "Percentage left:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:126 | #: lib/cannery_web/live/pack_live/show.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Rounds used" | msgid "Rounds used" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -671,13 +671,13 @@ msgstr "" | |||||||
| msgid "Reset your password" | msgid "Reset your password" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:41 | #: lib/cannery_web/live/pack_live/show.ex:41 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:32 | #: lib/cannery_web/live/range_live/index.ex:32 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Record Shots" | msgid "Record Shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:69 | #: lib/cannery_web/live/pack_live/form_component.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Copies" | msgid "Copies" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -736,12 +736,12 @@ msgstr "" | |||||||
| msgid "Catalog" | msgid "Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:45 | #: lib/cannery_web/live/pack_live/show.ex:45 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit Ammo" | msgid "Edit Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:43 | #: lib/cannery_web/live/pack_live/show.ex:43 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Move Ammo" | msgid "Move Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -751,12 +751,12 @@ msgstr "" | |||||||
| msgid "No ammo in this container" | msgid "No ammo in this container" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:44 | #: lib/cannery_web/live/pack_live/show.ex:44 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Show Ammo" | msgid "Show Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:118 | #: lib/cannery_web/live/pack_live/show.html.heex:111 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "This ammo is not in a container" | msgid "This ammo is not in a container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -784,25 +784,25 @@ msgstr "" | |||||||
| msgid "Leave \"Uses left\" blank to make invite unlimited" | msgid "Leave \"Uses left\" blank to make invite unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:54 | #: lib/cannery_web/components/core_components/pack_card.html.heex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Container:" | msgid "Container:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:87 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show used" | msgid "Show used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:202 | #: lib/cannery_web/components/pack_table_component.ex:201 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:19 | #: lib/cannery_web/live/pack_live/show.html.heex:19 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "%{percentage}%" | msgid "%{percentage}%" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:153 | #: lib/cannery_web/live/range_live/index.ex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Rounds shot: %{count}" | msgid "Rounds shot: %{count}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -983,28 +983,28 @@ msgstr "" | |||||||
| msgid "Edit %{ammo_type_name}" | msgid "Edit %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:251 | #: lib/cannery_web/components/core_components/pack_card.html.heex:17 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:17 | #: lib/cannery_web/components/pack_table_component.ex:250 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Empty" | msgid "Empty" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:81 | #: lib/cannery_web/components/pack_table_component.ex:80 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR" | msgid "CPR" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:49 | #: lib/cannery_web/components/core_components/pack_card.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR:" | msgid "CPR:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:88 | #: lib/cannery_web/components/pack_table_component.ex:87 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count" | msgid "Original Count" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:24 | #: lib/cannery_web/components/core_components/pack_card.html.heex:21 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count:" | msgid "Original Count:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1014,34 +1014,34 @@ msgstr "" | |||||||
| msgid "Home" | msgid "Home" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:64 | #: lib/cannery_web/components/pack_table_component.ex:63 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on" | msgid "Last used on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:39 | #: lib/cannery_web/components/core_components/pack_card.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on:" | msgid "Last used on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:182 | #: lib/cannery_web/components/pack_table_component.ex:181 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Never used" | msgid "Never used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:69 | #: lib/cannery_web/components/pack_table_component.ex:68 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42 | #: lib/cannery_web/live/pack_live/form_component.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on" | msgid "Purchased on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:34 | #: lib/cannery_web/components/core_components/pack_card.html.heex:31 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:30 | #: lib/cannery_web/live/pack_live/show.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on:" | msgid "Purchased on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:51 | #: lib/cannery_web/live/pack_live/index.ex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit ammo" | msgid "Edit ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1057,7 +1057,7 @@ msgstr "" | |||||||
| msgid "Search catalog" | msgid "Search catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:81 | #: lib/cannery_web/live/pack_live/index.html.heex:81 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Search ammo" | msgid "Search ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1201,12 +1201,12 @@ msgstr "" | |||||||
| msgid "Really great weather" | msgid "Really great weather" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:60 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:100 | #: lib/cannery_web/components/ammo_type_table_component.ex:100 | ||||||
| #: lib/cannery_web/components/container_table_component.ex:67 | #: lib/cannery_web/components/container_table_component.ex:67 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:70 | #: lib/cannery_web/components/move_pack_component.ex:68 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:59 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:45 | #: lib/cannery_web/components/shot_group_table_component.ex:45 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:94 | #: lib/cannery_web/live/pack_live/show.ex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1221,7 +1221,7 @@ msgstr "" | |||||||
| msgid "Log out" | msgid "Log out" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current Count" | msgid "Current Count" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1232,9 +1232,9 @@ msgstr "" | |||||||
| msgid "Close modal" | msgid "Close modal" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:58 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:103 | #: lib/cannery_web/live/container_live/show.html.heex:103 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:58 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:92 | #: lib/cannery_web/live/range_live/index.html.heex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "All" | msgid "All" | ||||||
| @@ -1306,7 +1306,7 @@ msgstr "" | |||||||
| msgid "Load grains:" | msgid "Load grains:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:29 | #: lib/cannery_web/live/pack_live/index.html.heex:29 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "No ammo" | msgid "No ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1316,11 +1316,11 @@ msgstr "" | |||||||
| msgid "None specified" | msgid "None specified" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:61 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:106 | #: lib/cannery_web/live/container_live/show.html.heex:106 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:61 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:95 | #: lib/cannery_web/live/range_live/index.html.heex:95 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Pistol" | msgid "Pistol" | ||||||
| @@ -1341,11 +1341,11 @@ msgstr "" | |||||||
| msgid "Projectile" | msgid "Projectile" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:59 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:104 | #: lib/cannery_web/live/container_live/show.html.heex:104 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:59 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:93 | #: lib/cannery_web/live/range_live/index.html.heex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rifle" | msgid "Rifle" | ||||||
| @@ -1395,11 +1395,11 @@ msgstr "" | |||||||
| msgid "Shot type:" | msgid "Shot type:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:60 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:105 | #: lib/cannery_web/live/container_live/show.html.heex:105 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:60 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:94 | #: lib/cannery_web/live/range_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shotgun" | msgid "Shotgun" | ||||||
| @@ -1439,11 +1439,11 @@ msgid "Wadding:" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:150 | #: lib/cannery_web/components/ammo_type_table_component.ex:150 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:50 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:97 | #: lib/cannery_web/live/container_live/show.html.heex:97 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:50 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:86 | #: lib/cannery_web/live/range_live/index.html.heex:86 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Class" | msgid "Class" | ||||||
|   | |||||||
| @@ -146,12 +146,12 @@ msgstr "" | |||||||
| msgid "Tag could not be removed" | msgid "Tag could not be removed" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:160 | #: lib/cannery_web/live/pack_live/form_component.ex:159 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Could not parse number of copies" | msgid "Could not parse number of copies" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:150 | #: lib/cannery_web/live/pack_live/form_component.ex:149 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -161,7 +161,7 @@ msgstr "" | |||||||
| msgid "Invalid multiplier" | msgid "Invalid multiplier" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/ammo/ammo_group.ex:92 | #: lib/cannery/ammo/pack.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Please select an ammo type and container" | msgid "Please select an ammo type and container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -186,7 +186,7 @@ msgstr "" | |||||||
| msgid "Ammo left must be at least 0" | msgid "Ammo left must be at least 0" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/activity_log/shot_group.ex:122 | #: lib/cannery/activity_log/shot_group.ex:119 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Count can be at most %{count} shots" | msgid "Count can be at most %{count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -58,8 +58,8 @@ msgstr "" | |||||||
| msgid "Are you sure you want to delete %{name}?" | msgid "Are you sure you want to delete %{name}?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:191 | #: lib/cannery_web/live/pack_live/index.html.heex:187 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:74 | #: lib/cannery_web/live/pack_live/show.html.heex:72 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this ammo?" | msgid "Are you sure you want to delete this ammo?" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -110,10 +110,10 @@ msgid "Please check your email to verify your account" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:85 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:59 | #: lib/cannery_web/live/container_live/form_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:47 | #: lib/cannery_web/live/range_live/form_component.html.heex:47 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -155,13 +155,13 @@ msgstr "" | |||||||
| msgid "Are you sure you want to unstage this ammo?" | msgid "Are you sure you want to unstage this ammo?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:159 | #: lib/cannery_web/live/pack_live/show.ex:158 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:152 | #: lib/cannery_web/live/range_live/index.html.heex:152 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this shot record?" | msgid "Are you sure you want to delete this shot record?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:81 | #: lib/cannery_web/live/pack_live/show.ex:80 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:79 | #: lib/cannery_web/live/range_live/index.ex:79 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shot records deleted succesfully" | msgid "Shot records deleted succesfully" | ||||||
| @@ -177,7 +177,7 @@ msgstr "" | |||||||
| msgid "%{email} confirmed successfully." | msgid "%{email} confirmed successfully." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:54 | #: lib/cannery_web/components/move_pack_component.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo moved to %{name} successfully" | msgid "Ammo moved to %{name} successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -192,13 +192,13 @@ msgstr "" | |||||||
| msgid "%{name} removed successfully" | msgid "%{name} removed successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:10 | #: lib/cannery_web/live/pack_live/index.html.heex:10 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:20 | #: lib/cannery_web/live/pack_live/index.html.heex:20 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "You'll need to" | msgid "You'll need to" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:78 | #: lib/cannery_web/live/pack_live/form_component.html.heex:78 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Creating..." | msgid "Creating..." | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -213,23 +213,23 @@ msgstr "" | |||||||
| msgid "Language updated successfully." | msgid "Language updated successfully." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | #: lib/cannery_web/live/pack_live/index.ex:94 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:55 | #: lib/cannery_web/live/pack_live/show.ex:55 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo deleted succesfully" | msgid "Ammo deleted succesfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:93 | #: lib/cannery_web/live/range_live/index.ex:92 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo unstaged succesfully" | msgid "Ammo unstaged succesfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:126 | #: lib/cannery_web/live/pack_live/form_component.ex:125 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo updated successfully" | msgid "Ammo updated successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:185 | #: lib/cannery_web/live/pack_live/form_component.ex:184 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo added successfully" | msgid "Ammo added successfully" | ||||||
| msgid_plural "Ammo added successfully" | msgid_plural "Ammo added successfully" | ||||||
|   | |||||||
| @@ -145,12 +145,12 @@ msgstr "" | |||||||
| msgid "Tag could not be removed" | msgid "Tag could not be removed" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:160 | #: lib/cannery_web/live/pack_live/form_component.ex:159 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Could not parse number of copies" | msgid "Could not parse number of copies" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:150 | #: lib/cannery_web/live/pack_live/form_component.ex:149 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -160,7 +160,7 @@ msgstr "" | |||||||
| msgid "Invalid multiplier" | msgid "Invalid multiplier" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/ammo/ammo_group.ex:92 | #: lib/cannery/ammo/pack.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Please select an ammo type and container" | msgid "Please select an ammo type and container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -185,7 +185,7 @@ msgstr "" | |||||||
| msgid "Ammo left must be at least 0" | msgid "Ammo left must be at least 0" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/activity_log/shot_group.ex:122 | #: lib/cannery/activity_log/shot_group.ex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count can be at most %{count} shots" | msgid "Count can be at most %{count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -23,14 +23,14 @@ msgstr "" | |||||||
| ## Run "mix gettext.extract" to bring this file up to | ## Run "mix gettext.extract" to bring this file up to | ||||||
| ## date. Leave "msgstr"s empty as changing them here has no | ## date. Leave "msgstr"s empty as changing them here has no | ||||||
| ## effect: edit them in PO (.po) files instead. | ## effect: edit them in PO (.po) files instead. | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:59 | #: lib/cannery_web/live/pack_live/index.ex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:67 | #: lib/cannery_web/live/pack_live/index.ex:67 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:38 | #: lib/cannery_web/live/pack_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add Ammo" | msgid "Add Ammo" | ||||||
| msgstr "Añadir Munición" | msgstr "Añadir Munición" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:34 | #: lib/cannery_web/live/pack_live/index.html.heex:34 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add your first box!" | msgid "Add your first box!" | ||||||
| msgstr "¡Añade tu primera caja!" | msgstr "¡Añade tu primera caja!" | ||||||
| @@ -134,10 +134,10 @@ msgid "Reset password" | |||||||
| msgstr "Resetear contraseña" | msgstr "Resetear contraseña" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:84 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:57 | #: lib/cannery_web/live/container_live/form_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:45 | #: lib/cannery_web/live/range_live/form_component.html.heex:45 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -169,19 +169,19 @@ msgstr "Preparar munición" | |||||||
| msgid "Why not get some ready to shoot?" | msgid "Why not get some ready to shoot?" | ||||||
| msgstr "¿Por qué no preparar parte para disparar?" | msgstr "¿Por qué no preparar parte para disparar?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:127 | #: lib/cannery_web/live/pack_live/index.html.heex:127 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:103 | #: lib/cannery_web/live/pack_live/show.html.heex:96 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:45 | #: lib/cannery_web/live/range_live/index.html.heex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "Tiros récord" | msgstr "Tiros récord" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:90 | #: lib/cannery_web/components/move_pack_component.ex:88 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add another container!" | msgid "Add another container!" | ||||||
| msgstr "¡Añade otro contenedor!" | msgstr "¡Añade otro contenedor!" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:126 | #: lib/cannery_web/components/move_pack_component.ex:124 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Select" | msgid "Select" | ||||||
| msgstr "Seleccionar" | msgstr "Seleccionar" | ||||||
| @@ -191,12 +191,12 @@ msgstr "Seleccionar" | |||||||
| msgid "Copy to clipboard" | msgid "Copy to clipboard" | ||||||
| msgstr "Copiar al portapapeles" | msgstr "Copiar al portapapeles" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:14 | #: lib/cannery_web/live/pack_live/index.html.heex:14 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add a container first" | msgid "add a container first" | ||||||
| msgstr "añade primero un contenedor" | msgstr "añade primero un contenedor" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:77 | #: lib/cannery_web/live/pack_live/form_component.html.heex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Create" | msgid "Create" | ||||||
| msgstr "Crear" | msgstr "Crear" | ||||||
| @@ -211,19 +211,19 @@ msgstr "Cambiar Lenguaje" | |||||||
| msgid "Change language" | msgid "Change language" | ||||||
| msgstr "Cambiar lenguaje" | msgstr "Cambiar lenguaje" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:55 | #: lib/cannery_web/live/pack_live/show.html.heex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View in Catalog" | msgid "View in Catalog" | ||||||
| msgstr "Ver en Catalogo" | msgstr "Ver en Catalogo" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:24 | #: lib/cannery_web/live/pack_live/index.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add an ammo type first" | msgid "add an ammo type first" | ||||||
| msgstr "añade primero un tipo de munición" | msgstr "añade primero un tipo de munición" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | #: lib/cannery_web/components/move_pack_component.ex:78 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:144 | #: lib/cannery_web/live/pack_live/index.html.heex:144 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:96 | #: lib/cannery_web/live/pack_live/show.html.heex:89 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "Mover munición" | msgstr "Mover munición" | ||||||
| @@ -233,13 +233,13 @@ msgstr "Mover munición" | |||||||
| msgid "Set Unlimited" | msgid "Set Unlimited" | ||||||
| msgstr "Activar ilimitados" | msgstr "Activar ilimitados" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:89 | #: lib/cannery_web/live/pack_live/show.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:38 | #: lib/cannery_web/live/range_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage for range" | msgid "Stage for range" | ||||||
| msgstr "Preparar para el campo de tiro" | msgstr "Preparar para el campo de tiro" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:88 | #: lib/cannery_web/live/pack_live/show.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:37 | #: lib/cannery_web/live/range_live/index.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage from range" | msgid "Unstage from range" | ||||||
| @@ -289,7 +289,7 @@ msgstr "" | |||||||
| msgid "Delete invite for %{invite_name}" | msgid "Delete invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:161 | #: lib/cannery_web/live/pack_live/show.ex:160 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:155 | #: lib/cannery_web/live/range_live/index.html.heex:155 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete shot record of %{shot_group_count} shots" | msgid "Delete shot record of %{shot_group_count} shots" | ||||||
| @@ -313,18 +313,12 @@ msgstr "" | |||||||
| msgid "Edit %{tag_name}" | msgid "Edit %{tag_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:166 |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:62 |  | ||||||
| #, elixir-autogen, elixir-format |  | ||||||
| msgid "Edit ammo group of %{ammo_group_count} bullets" |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/invite_live/index.html.heex:46 | #: lib/cannery_web/live/invite_live/index.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit invite for %{invite_name}" | msgid "Edit invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:146 | #: lib/cannery_web/live/pack_live/show.ex:145 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit shot group of %{shot_group_count} shots" | msgid "Edit shot group of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -334,7 +328,7 @@ msgstr "" | |||||||
| msgid "Edit shot record of %{shot_group_count} shots" | msgid "Edit shot record of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:120 | #: lib/cannery_web/live/pack_live/index.html.heex:120 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Stage" | msgid "Stage" | ||||||
| msgstr "Preparar munición" | msgstr "Preparar munición" | ||||||
| @@ -345,7 +339,7 @@ msgstr "Preparar munición" | |||||||
| msgid "Tag %{container_name}" | msgid "Tag %{container_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:119 | #: lib/cannery_web/live/pack_live/index.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage" | msgid "Unstage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -355,19 +349,25 @@ msgstr "" | |||||||
| msgid "View %{ammo_type_name}" | msgid "View %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:178 | #: lib/cannery_web/live/pack_live/index.html.heex:174 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Clone ammo group of %{ammo_group_count} bullets" | msgid "Clone pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:193 | #: lib/cannery_web/live/pack_live/index.html.heex:189 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:76 | #: lib/cannery_web/live/pack_live/show.html.heex:74 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Delete ammo group of %{ammo_group_count} bullets" | msgid "Delete pack of %{pack_count} bullets" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:164 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:62 | ||||||
|  | #, elixir-autogen, elixir-format, fuzzy | ||||||
|  | msgid "Edit pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:154 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "View ammo group of %{ammo_group_count} bullets" | msgid "View pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -31,15 +31,15 @@ msgstr "Aministradores:" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:58 | #: lib/cannery_web/components/core_components/topbar.html.heex:58 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:41 | #: lib/cannery_web/components/shot_group_table_component.ex:41 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:75 | #: lib/cannery_web/live/pack_live/index.ex:75 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | #: lib/cannery_web/live/pack_live/index.ex:84 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 | #: lib/cannery_web/live/pack_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo" | msgid "Ammo" | ||||||
| msgstr "Munición" | msgstr "Munición" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:96 | #: lib/cannery_web/components/pack_table_component.ex:95 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22 | #: lib/cannery_web/live/pack_live/form_component.html.heex:22 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo type" | msgid "Ammo type" | ||||||
| msgstr "Tipo de munición" | msgstr "Tipo de munición" | ||||||
| @@ -90,9 +90,9 @@ msgstr "Cartucho" | |||||||
| msgid "Case material" | msgid "Case material" | ||||||
| msgstr "Material del casquillo" | msgstr "Material del casquillo" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:74 | #: lib/cannery_web/components/move_pack_component.ex:65 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | #: lib/cannery_web/components/pack_table_component.ex:73 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:59 | #: lib/cannery_web/live/pack_live/form_component.html.heex:59 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container" | msgid "Container" | ||||||
| msgstr "Contenedor" | msgstr "Contenedor" | ||||||
| @@ -111,14 +111,14 @@ msgstr "Contenedores" | |||||||
| msgid "Corrosive" | msgid "Corrosive" | ||||||
| msgstr "Corrosiva" | msgstr "Corrosiva" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28 | #: lib/cannery_web/live/pack_live/form_component.html.heex:28 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count" | msgid "Count" | ||||||
| msgstr "Cantidad" | msgstr "Cantidad" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:16 | #: lib/cannery_web/components/core_components/pack_card.html.heex:16 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:8 | #: lib/cannery_web/live/pack_live/show.html.heex:8 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count:" | msgid "Count:" | ||||||
| msgstr "Cantidad:" | msgstr "Cantidad:" | ||||||
| @@ -196,7 +196,7 @@ msgid "Keep me logged in for 60 days" | |||||||
| msgstr "Mantener registrado durante 60 días" | msgstr "Mantener registrado durante 60 días" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:47 | #: lib/cannery_web/components/container_table_component.ex:47 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:69 | #: lib/cannery_web/components/move_pack_component.ex:67 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:47 | #: lib/cannery_web/live/container_live/form_component.html.heex:47 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Location" | msgid "Location" | ||||||
| @@ -262,7 +262,7 @@ msgstr "Nueva Invitación" | |||||||
| msgid "New Tag" | msgid "New Tag" | ||||||
| msgstr "Nueva Etiqueta" | msgstr "Nueva Etiqueta" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:94 | #: lib/cannery_web/live/pack_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No Ammo" | msgid "No Ammo" | ||||||
| msgstr "Sin Munición" | msgstr "Sin Munición" | ||||||
| @@ -292,15 +292,15 @@ msgstr "Sin etiquetas" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:43 | #: lib/cannery_web/components/shot_group_table_component.ex:43 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:50 | #: lib/cannery_web/live/pack_live/form_component.html.heex:50 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:92 | #: lib/cannery_web/live/pack_live/show.ex:91 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:30 | #: lib/cannery_web/live/range_live/form_component.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes" | msgid "Notes" | ||||||
| msgstr "Notas" | msgstr "Notas" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:29 | #: lib/cannery_web/components/core_components/pack_card.html.heex:26 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:24 | #: lib/cannery_web/live/pack_live/show.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes:" | msgid "Notes:" | ||||||
| msgstr "Notas:" | msgstr "Notas:" | ||||||
| @@ -316,13 +316,13 @@ msgstr "En la estantería" | |||||||
| msgid "Pressure" | msgid "Pressure" | ||||||
| msgstr "Presión" | msgstr "Presión" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:82 | #: lib/cannery_web/components/pack_table_component.ex:81 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35 | #: lib/cannery_web/live/pack_live/form_component.html.heex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid" | msgid "Price paid" | ||||||
| msgstr "Precio pagado" | msgstr "Precio pagado" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:44 | #: lib/cannery_web/components/core_components/pack_card.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid:" | msgid "Price paid:" | ||||||
| msgstr "Precio pagado:" | msgstr "Precio pagado:" | ||||||
| @@ -366,7 +366,7 @@ msgstr "Simple:" | |||||||
| msgid "Steel" | msgid "Steel" | ||||||
| msgstr "Acero" | msgstr "Acero" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:113 | #: lib/cannery_web/live/pack_live/show.html.heex:106 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stored in" | msgid "Stored in" | ||||||
| msgstr "Guardado en" | msgstr "Guardado en" | ||||||
| @@ -403,7 +403,7 @@ msgid "Tracer" | |||||||
| msgstr "Trazadora" | msgstr "Trazadora" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:48 | #: lib/cannery_web/components/container_table_component.ex:48 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:68 | #: lib/cannery_web/components/move_pack_component.ex:66 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:39 | #: lib/cannery_web/live/container_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Type" | msgid "Type" | ||||||
| @@ -435,8 +435,8 @@ msgstr "Tus datos se quedan contigo, sin excepciones" | |||||||
| msgid "No tags for this container" | msgid "No tags for this container" | ||||||
| msgstr "Contenedor sin etiquetas" | msgstr "Contenedor sin etiquetas" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:78 |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:66 | #: lib/cannery_web/components/core_components/topbar.html.heex:66 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Range" | msgid "Range" | ||||||
| msgstr "Campo de tiro" | msgstr "Campo de tiro" | ||||||
| @@ -448,7 +448,7 @@ msgstr "Día de disparar" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:44 | #: lib/cannery_web/components/shot_group_table_component.ex:44 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:93 | #: lib/cannery_web/live/pack_live/show.ex:92 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:41 | #: lib/cannery_web/live/range_live/form_component.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Date" | msgid "Date" | ||||||
| @@ -465,12 +465,12 @@ msgid "No ammo staged" | |||||||
| msgstr "No hay munición preparada" | msgstr "No hay munición preparada" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:35 | #: lib/cannery_web/live/pack_live/index.ex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "Tiros récord" | msgstr "Tiros récord" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:42 | #: lib/cannery_web/live/pack_live/show.ex:42 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:40 | #: lib/cannery_web/live/range_live/index.ex:40 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Shot Records" | msgid "Edit Shot Records" | ||||||
| @@ -494,7 +494,7 @@ msgid "Rounds left" | |||||||
| msgstr "Balas restantes" | msgstr "Balas restantes" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:42 | #: lib/cannery_web/components/shot_group_table_component.ex:42 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:91 | #: lib/cannery_web/live/pack_live/show.ex:90 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:69 | #: lib/cannery_web/live/range_live/index.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot" | msgid "Rounds shot" | ||||||
| @@ -506,12 +506,12 @@ msgstr "Balas disparadas" | |||||||
| msgid "Shot Records" | msgid "Shot Records" | ||||||
| msgstr "Récords de Tiro" | msgstr "Récords de Tiro" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:43 | #: lib/cannery_web/live/pack_live/index.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "Mover munición" | msgstr "Mover munición" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:85 | #: lib/cannery_web/components/move_pack_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No other containers" | msgid "No other containers" | ||||||
| msgstr "No hay otros contenedores" | msgstr "No hay otros contenedores" | ||||||
| @@ -521,14 +521,14 @@ msgstr "No hay otros contenedores" | |||||||
| msgid "Shot log" | msgid "Shot log" | ||||||
| msgstr "Registro de tiros" | msgstr "Registro de tiros" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:164 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:247 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:261 | #: lib/cannery_web/components/ammo_type_table_component.ex:261 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:45 | #: lib/cannery_web/components/core_components/pack_card.html.heex:42 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:50 | #: lib/cannery_web/components/core_components/pack_card.html.heex:47 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | #: lib/cannery_web/components/pack_table_component.ex:163 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:42 | #: lib/cannery_web/components/pack_table_component.ex:246 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "$%{amount}" | msgid "$%{amount}" | ||||||
| msgstr "$%{amount}" | msgstr "$%{amount}" | ||||||
| @@ -615,40 +615,40 @@ msgstr "Editar etiquetas de %{name}" | |||||||
| msgid "Rounds:" | msgid "Rounds:" | ||||||
| msgstr "Balas:" | msgstr "Balas:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:161 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:243 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:260 | #: lib/cannery_web/components/ammo_type_table_component.ex:260 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:160 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:242 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No cost information" | msgid "No cost information" | ||||||
| msgstr "No hay información de coste" | msgstr "No hay información de coste" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:84 | #: lib/cannery_web/components/pack_table_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "% left" | msgid "% left" | ||||||
| msgstr "% restantes" | msgstr "% restantes" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:41 | #: lib/cannery_web/live/pack_live/show.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current value:" | msgid "Current value:" | ||||||
| msgstr "Valor actual:" | msgstr "Valor actual:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:36 | #: lib/cannery_web/live/pack_live/show.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original cost:" | msgid "Original cost:" | ||||||
| msgstr "Coste original:" | msgstr "Coste original:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:13 | #: lib/cannery_web/live/pack_live/show.html.heex:13 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original count:" | msgid "Original count:" | ||||||
| msgstr "Cantidad original:" | msgstr "Cantidad original:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:18 | #: lib/cannery_web/live/pack_live/show.html.heex:18 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Percentage left:" | msgid "Percentage left:" | ||||||
| msgstr "Pocentaje restante:" | msgstr "Pocentaje restante:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:126 | #: lib/cannery_web/live/pack_live/show.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds used" | msgid "Rounds used" | ||||||
| msgstr "Balas usadas" | msgstr "Balas usadas" | ||||||
| @@ -678,13 +678,13 @@ msgstr "Registrarse" | |||||||
| msgid "Reset your password" | msgid "Reset your password" | ||||||
| msgstr "Reestablecer contraseña" | msgstr "Reestablecer contraseña" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:41 | #: lib/cannery_web/live/pack_live/show.ex:41 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:32 | #: lib/cannery_web/live/range_live/index.ex:32 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record Shots" | msgid "Record Shots" | ||||||
| msgstr "Tiros Récord" | msgstr "Tiros Récord" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:69 | #: lib/cannery_web/live/pack_live/form_component.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Copies" | msgid "Copies" | ||||||
| msgstr "Copias" | msgstr "Copias" | ||||||
| @@ -743,12 +743,12 @@ msgstr "Ver código fuente" | |||||||
| msgid "Catalog" | msgid "Catalog" | ||||||
| msgstr "Catálogo" | msgstr "Catálogo" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:45 | #: lib/cannery_web/live/pack_live/show.ex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Ammo" | msgid "Edit Ammo" | ||||||
| msgstr "Editar Munición" | msgstr "Editar Munición" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:43 | #: lib/cannery_web/live/pack_live/show.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move Ammo" | msgid "Move Ammo" | ||||||
| msgstr "Mover Munición" | msgstr "Mover Munición" | ||||||
| @@ -758,12 +758,12 @@ msgstr "Mover Munición" | |||||||
| msgid "No ammo in this container" | msgid "No ammo in this container" | ||||||
| msgstr "No hay munición en este contenedor" | msgstr "No hay munición en este contenedor" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:44 | #: lib/cannery_web/live/pack_live/show.ex:44 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show Ammo" | msgid "Show Ammo" | ||||||
| msgstr "Mostrar Munición" | msgstr "Mostrar Munición" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:118 | #: lib/cannery_web/live/pack_live/show.html.heex:111 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "This ammo is not in a container" | msgid "This ammo is not in a container" | ||||||
| msgstr "Esta munición no está en un contenedor" | msgstr "Esta munición no está en un contenedor" | ||||||
| @@ -792,25 +792,25 @@ msgid "Leave \"Uses left\" blank to make invite unlimited" | |||||||
| msgstr "" | msgstr "" | ||||||
| "Deje \"Usos restantes\" en blanco para hacer las invitaciónes ilimitadas" | "Deje \"Usos restantes\" en blanco para hacer las invitaciónes ilimitadas" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:54 | #: lib/cannery_web/components/core_components/pack_card.html.heex:51 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container:" | msgid "Container:" | ||||||
| msgstr "Contenedor:" | msgstr "Contenedor:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:87 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show used" | msgid "Show used" | ||||||
| msgstr "Mostrar usadas" | msgstr "Mostrar usadas" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:202 | #: lib/cannery_web/components/pack_table_component.ex:201 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:19 | #: lib/cannery_web/live/pack_live/show.html.heex:19 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "%{percentage}%" | msgid "%{percentage}%" | ||||||
| msgstr "%{percentage}%" | msgstr "%{percentage}%" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:153 | #: lib/cannery_web/live/range_live/index.ex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Rounds shot: %{count}" | msgid "Rounds shot: %{count}" | ||||||
| msgstr "Balas disparadas: %{count}" | msgstr "Balas disparadas: %{count}" | ||||||
| @@ -991,28 +991,28 @@ msgstr "" | |||||||
| msgid "Edit %{ammo_type_name}" | msgid "Edit %{ammo_type_name}" | ||||||
| msgstr "Editar %{ammo_type_name}" | msgstr "Editar %{ammo_type_name}" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:251 | #: lib/cannery_web/components/core_components/pack_card.html.heex:17 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:17 | #: lib/cannery_web/components/pack_table_component.ex:250 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Empty" | msgid "Empty" | ||||||
| msgstr "Vacio" | msgstr "Vacio" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:81 | #: lib/cannery_web/components/pack_table_component.ex:80 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR" | msgid "CPR" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:49 | #: lib/cannery_web/components/core_components/pack_card.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR:" | msgid "CPR:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:88 | #: lib/cannery_web/components/pack_table_component.ex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original Count" | msgid "Original Count" | ||||||
| msgstr "Cantidad Original" | msgstr "Cantidad Original" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:24 | #: lib/cannery_web/components/core_components/pack_card.html.heex:21 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original Count:" | msgid "Original Count:" | ||||||
| msgstr "Cantidad Original:" | msgstr "Cantidad Original:" | ||||||
| @@ -1022,34 +1022,34 @@ msgstr "Cantidad Original:" | |||||||
| msgid "Home" | msgid "Home" | ||||||
| msgstr "Menu principal" | msgstr "Menu principal" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:64 | #: lib/cannery_web/components/pack_table_component.ex:63 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on" | msgid "Last used on" | ||||||
| msgstr "Usada por última vez en" | msgstr "Usada por última vez en" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:39 | #: lib/cannery_web/components/core_components/pack_card.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on:" | msgid "Last used on:" | ||||||
| msgstr "Usada por última vez en:" | msgstr "Usada por última vez en:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:182 | #: lib/cannery_web/components/pack_table_component.ex:181 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Never used" | msgid "Never used" | ||||||
| msgstr "Nunca usada" | msgstr "Nunca usada" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:69 | #: lib/cannery_web/components/pack_table_component.ex:68 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42 | #: lib/cannery_web/live/pack_live/form_component.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on" | msgid "Purchased on" | ||||||
| msgstr "Comprada en" | msgstr "Comprada en" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:34 | #: lib/cannery_web/components/core_components/pack_card.html.heex:31 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:30 | #: lib/cannery_web/live/pack_live/show.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on:" | msgid "Purchased on:" | ||||||
| msgstr "Comprada en:" | msgstr "Comprada en:" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:51 | #: lib/cannery_web/live/pack_live/index.ex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit ammo" | msgid "Edit ammo" | ||||||
| msgstr "Editar munición" | msgstr "Editar munición" | ||||||
| @@ -1065,7 +1065,7 @@ msgstr "Sin tipo de Munición" | |||||||
| msgid "Search catalog" | msgid "Search catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:81 | #: lib/cannery_web/live/pack_live/index.html.heex:81 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Search ammo" | msgid "Search ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1220,12 +1220,12 @@ msgstr "" | |||||||
| msgid "Really great weather" | msgid "Really great weather" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:60 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:100 | #: lib/cannery_web/components/ammo_type_table_component.ex:100 | ||||||
| #: lib/cannery_web/components/container_table_component.ex:67 | #: lib/cannery_web/components/container_table_component.ex:67 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:70 | #: lib/cannery_web/components/move_pack_component.ex:68 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:59 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:45 | #: lib/cannery_web/components/shot_group_table_component.ex:45 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:94 | #: lib/cannery_web/live/pack_live/show.ex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1240,7 +1240,7 @@ msgstr "" | |||||||
| msgid "Log out" | msgid "Log out" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current Count" | msgid "Current Count" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1251,9 +1251,9 @@ msgstr "" | |||||||
| msgid "Close modal" | msgid "Close modal" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:58 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:103 | #: lib/cannery_web/live/container_live/show.html.heex:103 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:58 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:92 | #: lib/cannery_web/live/range_live/index.html.heex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "All" | msgid "All" | ||||||
| @@ -1325,7 +1325,7 @@ msgstr "" | |||||||
| msgid "Load grains:" | msgid "Load grains:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:29 | #: lib/cannery_web/live/pack_live/index.html.heex:29 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "No ammo" | msgid "No ammo" | ||||||
| msgstr "Sin Munición" | msgstr "Sin Munición" | ||||||
| @@ -1335,11 +1335,11 @@ msgstr "Sin Munición" | |||||||
| msgid "None specified" | msgid "None specified" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:61 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:106 | #: lib/cannery_web/live/container_live/show.html.heex:106 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:61 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:95 | #: lib/cannery_web/live/range_live/index.html.heex:95 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Pistol" | msgid "Pistol" | ||||||
| @@ -1360,11 +1360,11 @@ msgstr "Tipo de espoleta" | |||||||
| msgid "Projectile" | msgid "Projectile" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:59 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:104 | #: lib/cannery_web/live/container_live/show.html.heex:104 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:59 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:93 | #: lib/cannery_web/live/range_live/index.html.heex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rifle" | msgid "Rifle" | ||||||
| @@ -1414,11 +1414,11 @@ msgstr "" | |||||||
| msgid "Shot type:" | msgid "Shot type:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:60 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:105 | #: lib/cannery_web/live/container_live/show.html.heex:105 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:60 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:94 | #: lib/cannery_web/live/range_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shotgun" | msgid "Shotgun" | ||||||
| @@ -1458,11 +1458,11 @@ msgid "Wadding:" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:150 | #: lib/cannery_web/components/ammo_type_table_component.ex:150 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:50 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:97 | #: lib/cannery_web/live/container_live/show.html.heex:97 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:50 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:86 | #: lib/cannery_web/live/range_live/index.html.heex:86 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Class" | msgid "Class" | ||||||
|   | |||||||
| @@ -161,12 +161,12 @@ msgstr "Debe confirmar su cuenta e iniciar sesión para acceder a esta página." | |||||||
| msgid "Tag could not be removed" | msgid "Tag could not be removed" | ||||||
| msgstr "La etiqueta no pudo ser eliminada" | msgstr "La etiqueta no pudo ser eliminada" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:160 | #: lib/cannery_web/live/pack_live/form_component.ex:159 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Could not parse number of copies" | msgid "Could not parse number of copies" | ||||||
| msgstr "No se ha podido procesar el número de copias" | msgstr "No se ha podido procesar el número de copias" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:150 | #: lib/cannery_web/live/pack_live/form_component.ex:149 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | ||||||
| msgstr "Número inválido de copias, debe ser entre 1 y %{max}. Fue %{multiplier" | msgstr "Número inválido de copias, debe ser entre 1 y %{max}. Fue %{multiplier" | ||||||
| @@ -176,7 +176,7 @@ msgstr "Número inválido de copias, debe ser entre 1 y %{max}. Fue %{multiplier | |||||||
| msgid "Invalid multiplier" | msgid "Invalid multiplier" | ||||||
| msgstr "Multiplicador inválido" | msgstr "Multiplicador inválido" | ||||||
|  |  | ||||||
| #: lib/cannery/ammo/ammo_group.ex:92 | #: lib/cannery/ammo/pack.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Please select an ammo type and container" | msgid "Please select an ammo type and container" | ||||||
| msgstr "Por favor escoja un tipo de munición y un contenedor" | msgstr "Por favor escoja un tipo de munición y un contenedor" | ||||||
| @@ -201,7 +201,7 @@ msgstr "" | |||||||
| msgid "Ammo left must be at least 0" | msgid "Ammo left must be at least 0" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/activity_log/shot_group.ex:122 | #: lib/cannery/activity_log/shot_group.ex:119 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Count can be at most %{count} shots" | msgid "Count can be at most %{count} shots" | ||||||
| msgstr "El recuento debe ser menos de %{count}" | msgstr "El recuento debe ser menos de %{count}" | ||||||
|   | |||||||
| @@ -73,8 +73,8 @@ msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!" | |||||||
| msgid "Are you sure you want to delete %{name}?" | msgid "Are you sure you want to delete %{name}?" | ||||||
| msgstr "Está seguro que desea eliminar %{name}?" | msgstr "Está seguro que desea eliminar %{name}?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:191 | #: lib/cannery_web/live/pack_live/index.html.heex:187 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:74 | #: lib/cannery_web/live/pack_live/show.html.heex:72 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this ammo?" | msgid "Are you sure you want to delete this ammo?" | ||||||
| msgstr "Está seguro que desea eliminar esta munición?" | msgstr "Está seguro que desea eliminar esta munición?" | ||||||
| @@ -129,10 +129,10 @@ msgid "Please check your email to verify your account" | |||||||
| msgstr "Por favor chequea el correo para verificar tu cuenta" | msgstr "Por favor chequea el correo para verificar tu cuenta" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:85 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:59 | #: lib/cannery_web/live/container_live/form_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:47 | #: lib/cannery_web/live/range_live/form_component.html.heex:47 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -175,13 +175,13 @@ msgstr "Tiros registrados exitosamente" | |||||||
| msgid "Are you sure you want to unstage this ammo?" | msgid "Are you sure you want to unstage this ammo?" | ||||||
| msgstr "Está seguro que desea desmontar esta munición?" | msgstr "Está seguro que desea desmontar esta munición?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:159 | #: lib/cannery_web/live/pack_live/show.ex:158 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:152 | #: lib/cannery_web/live/range_live/index.html.heex:152 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this shot record?" | msgid "Are you sure you want to delete this shot record?" | ||||||
| msgstr "¿Está segure que quiere borrar este récord de disparos?" | msgstr "¿Está segure que quiere borrar este récord de disparos?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:81 | #: lib/cannery_web/live/pack_live/show.ex:80 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:79 | #: lib/cannery_web/live/range_live/index.ex:79 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shot records deleted succesfully" | msgid "Shot records deleted succesfully" | ||||||
| @@ -197,7 +197,7 @@ msgstr "Récord de disparos actualizado exitosamente" | |||||||
| msgid "%{email} confirmed successfully." | msgid "%{email} confirmed successfully." | ||||||
| msgstr "%{email} confirmado exitosamente." | msgstr "%{email} confirmado exitosamente." | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:54 | #: lib/cannery_web/components/move_pack_component.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo moved to %{name} successfully" | msgid "Ammo moved to %{name} successfully" | ||||||
| msgstr "Munición movida a %{name} exitosamente" | msgstr "Munición movida a %{name} exitosamente" | ||||||
| @@ -212,13 +212,13 @@ msgstr "Copiado al portapapeles" | |||||||
| msgid "%{name} removed successfully" | msgid "%{name} removed successfully" | ||||||
| msgstr "%{name} eliminado exitosamente" | msgstr "%{name} eliminado exitosamente" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:10 | #: lib/cannery_web/live/pack_live/index.html.heex:10 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:20 | #: lib/cannery_web/live/pack_live/index.html.heex:20 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "You'll need to" | msgid "You'll need to" | ||||||
| msgstr "Necesitará hacerlo" | msgstr "Necesitará hacerlo" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:78 | #: lib/cannery_web/live/pack_live/form_component.html.heex:78 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Creating..." | msgid "Creating..." | ||||||
| msgstr "Creando..." | msgstr "Creando..." | ||||||
| @@ -233,23 +233,23 @@ msgstr "¿Está segure de que quiere cambiar el idioma?" | |||||||
| msgid "Language updated successfully." | msgid "Language updated successfully." | ||||||
| msgstr "Idioma cambiado exitosamente." | msgstr "Idioma cambiado exitosamente." | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | #: lib/cannery_web/live/pack_live/index.ex:94 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:55 | #: lib/cannery_web/live/pack_live/show.ex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo deleted succesfully" | msgid "Ammo deleted succesfully" | ||||||
| msgstr "Munición borrada exitosamente" | msgstr "Munición borrada exitosamente" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:93 | #: lib/cannery_web/live/range_live/index.ex:92 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo unstaged succesfully" | msgid "Ammo unstaged succesfully" | ||||||
| msgstr "Munición descargada exitosamente" | msgstr "Munición descargada exitosamente" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:126 | #: lib/cannery_web/live/pack_live/form_component.ex:125 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo updated successfully" | msgid "Ammo updated successfully" | ||||||
| msgstr "Munición actualizada exitosamente" | msgstr "Munición actualizada exitosamente" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:185 | #: lib/cannery_web/live/pack_live/form_component.ex:184 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo added successfully" | msgid "Ammo added successfully" | ||||||
| msgid_plural "Ammo added successfully" | msgid_plural "Ammo added successfully" | ||||||
|   | |||||||
| @@ -23,14 +23,14 @@ msgstr "" | |||||||
| # # Run "mix gettext.extract" to bring this file up to | # # Run "mix gettext.extract" to bring this file up to | ||||||
| # # date. Leave "msgstr"s empty as changing them here has no | # # date. Leave "msgstr"s empty as changing them here has no | ||||||
| # # effect: edit them in PO (.po) files instead. | # # effect: edit them in PO (.po) files instead. | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:59 | #: lib/cannery_web/live/pack_live/index.ex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:67 | #: lib/cannery_web/live/pack_live/index.ex:67 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:38 | #: lib/cannery_web/live/pack_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add Ammo" | msgid "Add Ammo" | ||||||
| msgstr "ajouter munition" | msgstr "ajouter munition" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:34 | #: lib/cannery_web/live/pack_live/index.html.heex:34 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add your first box!" | msgid "Add your first box!" | ||||||
| msgstr "Ajoutez votre première caisse !" | msgstr "Ajoutez votre première caisse !" | ||||||
| @@ -134,10 +134,10 @@ msgid "Reset password" | |||||||
| msgstr "Réinitialisé le mot de passe" | msgstr "Réinitialisé le mot de passe" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:84 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:57 | #: lib/cannery_web/live/container_live/form_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:45 | #: lib/cannery_web/live/range_live/form_component.html.heex:45 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -169,19 +169,19 @@ msgstr "Munition préparée" | |||||||
| msgid "Why not get some ready to shoot?" | msgid "Why not get some ready to shoot?" | ||||||
| msgstr "Pourquoi pas en préparer pour tirer ?" | msgstr "Pourquoi pas en préparer pour tirer ?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:127 | #: lib/cannery_web/live/pack_live/index.html.heex:127 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:103 | #: lib/cannery_web/live/pack_live/show.html.heex:96 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:45 | #: lib/cannery_web/live/range_live/index.html.heex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "Enregistrer des tirs" | msgstr "Enregistrer des tirs" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:90 | #: lib/cannery_web/components/move_pack_component.ex:88 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add another container!" | msgid "Add another container!" | ||||||
| msgstr "Ajoutez un autre conteneur !" | msgstr "Ajoutez un autre conteneur !" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:126 | #: lib/cannery_web/components/move_pack_component.ex:124 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Select" | msgid "Select" | ||||||
| msgstr "Sélectionner" | msgstr "Sélectionner" | ||||||
| @@ -191,12 +191,12 @@ msgstr "Sélectionner" | |||||||
| msgid "Copy to clipboard" | msgid "Copy to clipboard" | ||||||
| msgstr "Copier dans le presse-papier" | msgstr "Copier dans le presse-papier" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:14 | #: lib/cannery_web/live/pack_live/index.html.heex:14 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add a container first" | msgid "add a container first" | ||||||
| msgstr "ajouter un conteneur en premier" | msgstr "ajouter un conteneur en premier" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:77 | #: lib/cannery_web/live/pack_live/form_component.html.heex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Create" | msgid "Create" | ||||||
| msgstr "Créer" | msgstr "Créer" | ||||||
| @@ -211,19 +211,19 @@ msgstr "Changer la langue" | |||||||
| msgid "Change language" | msgid "Change language" | ||||||
| msgstr "Changer la langue" | msgstr "Changer la langue" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:55 | #: lib/cannery_web/live/pack_live/show.html.heex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View in Catalog" | msgid "View in Catalog" | ||||||
| msgstr "Voir en catalogue" | msgstr "Voir en catalogue" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:24 | #: lib/cannery_web/live/pack_live/index.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add an ammo type first" | msgid "add an ammo type first" | ||||||
| msgstr "Ajoutez d'abord un type de munitions" | msgstr "Ajoutez d'abord un type de munitions" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | #: lib/cannery_web/components/move_pack_component.ex:78 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:144 | #: lib/cannery_web/live/pack_live/index.html.heex:144 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:96 | #: lib/cannery_web/live/pack_live/show.html.heex:89 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -233,13 +233,13 @@ msgstr "" | |||||||
| msgid "Set Unlimited" | msgid "Set Unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:89 | #: lib/cannery_web/live/pack_live/show.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:38 | #: lib/cannery_web/live/range_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage for range" | msgid "Stage for range" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:88 | #: lib/cannery_web/live/pack_live/show.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:37 | #: lib/cannery_web/live/range_live/index.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage from range" | msgid "Unstage from range" | ||||||
| @@ -289,7 +289,7 @@ msgstr "" | |||||||
| msgid "Delete invite for %{invite_name}" | msgid "Delete invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:161 | #: lib/cannery_web/live/pack_live/show.ex:160 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:155 | #: lib/cannery_web/live/range_live/index.html.heex:155 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete shot record of %{shot_group_count} shots" | msgid "Delete shot record of %{shot_group_count} shots" | ||||||
| @@ -313,18 +313,12 @@ msgstr "" | |||||||
| msgid "Edit %{tag_name}" | msgid "Edit %{tag_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:166 |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:62 |  | ||||||
| #, elixir-autogen, elixir-format |  | ||||||
| msgid "Edit ammo group of %{ammo_group_count} bullets" |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/invite_live/index.html.heex:46 | #: lib/cannery_web/live/invite_live/index.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit invite for %{invite_name}" | msgid "Edit invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:146 | #: lib/cannery_web/live/pack_live/show.ex:145 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit shot group of %{shot_group_count} shots" | msgid "Edit shot group of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -334,7 +328,7 @@ msgstr "" | |||||||
| msgid "Edit shot record of %{shot_group_count} shots" | msgid "Edit shot record of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:120 | #: lib/cannery_web/live/pack_live/index.html.heex:120 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Stage" | msgid "Stage" | ||||||
| msgstr "Munition préparée" | msgstr "Munition préparée" | ||||||
| @@ -345,7 +339,7 @@ msgstr "Munition préparée" | |||||||
| msgid "Tag %{container_name}" | msgid "Tag %{container_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:119 | #: lib/cannery_web/live/pack_live/index.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage" | msgid "Unstage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -355,19 +349,25 @@ msgstr "" | |||||||
| msgid "View %{ammo_type_name}" | msgid "View %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:178 | #: lib/cannery_web/live/pack_live/index.html.heex:174 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Clone ammo group of %{ammo_group_count} bullets" | msgid "Clone pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:193 | #: lib/cannery_web/live/pack_live/index.html.heex:189 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:76 | #: lib/cannery_web/live/pack_live/show.html.heex:74 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Delete ammo group of %{ammo_group_count} bullets" | msgid "Delete pack of %{pack_count} bullets" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:164 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:62 | ||||||
|  | #, elixir-autogen, elixir-format, fuzzy | ||||||
|  | msgid "Edit pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:154 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "View ammo group of %{ammo_group_count} bullets" | msgid "View pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -31,15 +31,15 @@ msgstr "Administrateur·ices :" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:58 | #: lib/cannery_web/components/core_components/topbar.html.heex:58 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:41 | #: lib/cannery_web/components/shot_group_table_component.ex:41 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:75 | #: lib/cannery_web/live/pack_live/index.ex:75 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | #: lib/cannery_web/live/pack_live/index.ex:84 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 | #: lib/cannery_web/live/pack_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo" | msgid "Ammo" | ||||||
| msgstr "Munition" | msgstr "Munition" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:96 | #: lib/cannery_web/components/pack_table_component.ex:95 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22 | #: lib/cannery_web/live/pack_live/form_component.html.heex:22 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo type" | msgid "Ammo type" | ||||||
| msgstr "Type de munition" | msgstr "Type de munition" | ||||||
| @@ -90,9 +90,9 @@ msgstr "Cartouche" | |||||||
| msgid "Case material" | msgid "Case material" | ||||||
| msgstr "Matériau de la caisse" | msgstr "Matériau de la caisse" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:74 | #: lib/cannery_web/components/move_pack_component.ex:65 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | #: lib/cannery_web/components/pack_table_component.ex:73 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:59 | #: lib/cannery_web/live/pack_live/form_component.html.heex:59 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container" | msgid "Container" | ||||||
| msgstr "Conteneur" | msgstr "Conteneur" | ||||||
| @@ -111,14 +111,14 @@ msgstr "Conteneurs" | |||||||
| msgid "Corrosive" | msgid "Corrosive" | ||||||
| msgstr "Corrosive" | msgstr "Corrosive" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28 | #: lib/cannery_web/live/pack_live/form_component.html.heex:28 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count" | msgid "Count" | ||||||
| msgstr "Quantité" | msgstr "Quantité" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:16 | #: lib/cannery_web/components/core_components/pack_card.html.heex:16 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:8 | #: lib/cannery_web/live/pack_live/show.html.heex:8 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count:" | msgid "Count:" | ||||||
| msgstr "Quantité :" | msgstr "Quantité :" | ||||||
| @@ -196,7 +196,7 @@ msgid "Keep me logged in for 60 days" | |||||||
| msgstr "Me garder authentifié durant 60 jours" | msgstr "Me garder authentifié durant 60 jours" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:47 | #: lib/cannery_web/components/container_table_component.ex:47 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:69 | #: lib/cannery_web/components/move_pack_component.ex:67 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:47 | #: lib/cannery_web/live/container_live/form_component.html.heex:47 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Location" | msgid "Location" | ||||||
| @@ -262,7 +262,7 @@ msgstr "Nouvelle invitation" | |||||||
| msgid "New Tag" | msgid "New Tag" | ||||||
| msgstr "Nouveau tag" | msgstr "Nouveau tag" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:94 | #: lib/cannery_web/live/pack_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No Ammo" | msgid "No Ammo" | ||||||
| msgstr "Aucune munition" | msgstr "Aucune munition" | ||||||
| @@ -292,15 +292,15 @@ msgstr "Aucun tag" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:43 | #: lib/cannery_web/components/shot_group_table_component.ex:43 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:50 | #: lib/cannery_web/live/pack_live/form_component.html.heex:50 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:92 | #: lib/cannery_web/live/pack_live/show.ex:91 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:30 | #: lib/cannery_web/live/range_live/form_component.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes" | msgid "Notes" | ||||||
| msgstr "Notes" | msgstr "Notes" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:29 | #: lib/cannery_web/components/core_components/pack_card.html.heex:26 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:24 | #: lib/cannery_web/live/pack_live/show.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes:" | msgid "Notes:" | ||||||
| msgstr "Notes :" | msgstr "Notes :" | ||||||
| @@ -316,13 +316,13 @@ msgstr "Sur l’étagère" | |||||||
| msgid "Pressure" | msgid "Pressure" | ||||||
| msgstr "Pression" | msgstr "Pression" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:82 | #: lib/cannery_web/components/pack_table_component.ex:81 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35 | #: lib/cannery_web/live/pack_live/form_component.html.heex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid" | msgid "Price paid" | ||||||
| msgstr "Prix payé" | msgstr "Prix payé" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:44 | #: lib/cannery_web/components/core_components/pack_card.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid:" | msgid "Price paid:" | ||||||
| msgstr "Prix payé :" | msgstr "Prix payé :" | ||||||
| @@ -366,7 +366,7 @@ msgstr "Simple :" | |||||||
| msgid "Steel" | msgid "Steel" | ||||||
| msgstr "Acier" | msgstr "Acier" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:113 | #: lib/cannery_web/live/pack_live/show.html.heex:106 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stored in" | msgid "Stored in" | ||||||
| msgstr "Est stocké dans" | msgstr "Est stocké dans" | ||||||
| @@ -404,7 +404,7 @@ msgid "Tracer" | |||||||
| msgstr "Traceuse" | msgstr "Traceuse" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:48 | #: lib/cannery_web/components/container_table_component.ex:48 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:68 | #: lib/cannery_web/components/move_pack_component.ex:66 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:39 | #: lib/cannery_web/live/container_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Type" | msgid "Type" | ||||||
| @@ -436,8 +436,8 @@ msgstr "Vos données restent avec vous, point final" | |||||||
| msgid "No tags for this container" | msgid "No tags for this container" | ||||||
| msgstr "Aucun tag pour ce conteneur" | msgstr "Aucun tag pour ce conteneur" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:78 |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:66 | #: lib/cannery_web/components/core_components/topbar.html.heex:66 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Range" | msgid "Range" | ||||||
| msgstr "Portée" | msgstr "Portée" | ||||||
| @@ -449,7 +449,7 @@ msgstr "Journée de stand" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:44 | #: lib/cannery_web/components/shot_group_table_component.ex:44 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:93 | #: lib/cannery_web/live/pack_live/show.ex:92 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:41 | #: lib/cannery_web/live/range_live/form_component.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Date" | msgid "Date" | ||||||
| @@ -466,12 +466,12 @@ msgid "No ammo staged" | |||||||
| msgstr "Aucune munition sélectionnée" | msgstr "Aucune munition sélectionnée" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:35 | #: lib/cannery_web/live/pack_live/index.ex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "Tirs enregistrés" | msgstr "Tirs enregistrés" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:42 | #: lib/cannery_web/live/pack_live/show.ex:42 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:40 | #: lib/cannery_web/live/range_live/index.ex:40 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Shot Records" | msgid "Edit Shot Records" | ||||||
| @@ -495,7 +495,7 @@ msgid "Rounds left" | |||||||
| msgstr "Cartouches restantes" | msgstr "Cartouches restantes" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:42 | #: lib/cannery_web/components/shot_group_table_component.ex:42 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:91 | #: lib/cannery_web/live/pack_live/show.ex:90 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:69 | #: lib/cannery_web/live/range_live/index.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot" | msgid "Rounds shot" | ||||||
| @@ -507,12 +507,12 @@ msgstr "Cartouches tirées" | |||||||
| msgid "Shot Records" | msgid "Shot Records" | ||||||
| msgstr "Enregistrements de tir" | msgstr "Enregistrements de tir" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:43 | #: lib/cannery_web/live/pack_live/index.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "Déplacer munition" | msgstr "Déplacer munition" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:85 | #: lib/cannery_web/components/move_pack_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No other containers" | msgid "No other containers" | ||||||
| msgstr "Aucun autre conteneur" | msgstr "Aucun autre conteneur" | ||||||
| @@ -522,14 +522,14 @@ msgstr "Aucun autre conteneur" | |||||||
| msgid "Shot log" | msgid "Shot log" | ||||||
| msgstr "Évènements de tir" | msgstr "Évènements de tir" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:164 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:247 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:261 | #: lib/cannery_web/components/ammo_type_table_component.ex:261 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:45 | #: lib/cannery_web/components/core_components/pack_card.html.heex:42 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:50 | #: lib/cannery_web/components/core_components/pack_card.html.heex:47 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | #: lib/cannery_web/components/pack_table_component.ex:163 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:42 | #: lib/cannery_web/components/pack_table_component.ex:246 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "$%{amount}" | msgid "$%{amount}" | ||||||
| msgstr "%{amount} $" | msgstr "%{amount} $" | ||||||
| @@ -616,40 +616,40 @@ msgstr "Éditer les tags de %{name}" | |||||||
| msgid "Rounds:" | msgid "Rounds:" | ||||||
| msgstr "Cartouches :" | msgstr "Cartouches :" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:161 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:243 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:260 | #: lib/cannery_web/components/ammo_type_table_component.ex:260 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:160 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:242 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No cost information" | msgid "No cost information" | ||||||
| msgstr "Aucune information de prix" | msgstr "Aucune information de prix" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:84 | #: lib/cannery_web/components/pack_table_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "% left" | msgid "% left" | ||||||
| msgstr "% restante" | msgstr "% restante" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:41 | #: lib/cannery_web/live/pack_live/show.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current value:" | msgid "Current value:" | ||||||
| msgstr "Valeur actuelle :" | msgstr "Valeur actuelle :" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:36 | #: lib/cannery_web/live/pack_live/show.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original cost:" | msgid "Original cost:" | ||||||
| msgstr "Coût original :" | msgstr "Coût original :" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:13 | #: lib/cannery_web/live/pack_live/show.html.heex:13 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original count:" | msgid "Original count:" | ||||||
| msgstr "Nombre original :" | msgstr "Nombre original :" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:18 | #: lib/cannery_web/live/pack_live/show.html.heex:18 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Percentage left:" | msgid "Percentage left:" | ||||||
| msgstr "Pourcentage restant :" | msgstr "Pourcentage restant :" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:126 | #: lib/cannery_web/live/pack_live/show.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds used" | msgid "Rounds used" | ||||||
| msgstr "Cartouches utilisées" | msgstr "Cartouches utilisées" | ||||||
| @@ -679,13 +679,13 @@ msgstr "S’enregistrer" | |||||||
| msgid "Reset your password" | msgid "Reset your password" | ||||||
| msgstr "Réinitialiser votre mot de passe" | msgstr "Réinitialiser votre mot de passe" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:41 | #: lib/cannery_web/live/pack_live/show.ex:41 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:32 | #: lib/cannery_web/live/range_live/index.ex:32 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record Shots" | msgid "Record Shots" | ||||||
| msgstr "Enregistrer des tirs" | msgstr "Enregistrer des tirs" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:69 | #: lib/cannery_web/live/pack_live/form_component.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Copies" | msgid "Copies" | ||||||
| msgstr "Exemplaires" | msgstr "Exemplaires" | ||||||
| @@ -744,12 +744,12 @@ msgstr "Voir le code source" | |||||||
| msgid "Catalog" | msgid "Catalog" | ||||||
| msgstr "Catalogue" | msgstr "Catalogue" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:45 | #: lib/cannery_web/live/pack_live/show.ex:45 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit Ammo" | msgid "Edit Ammo" | ||||||
| msgstr "Éditer le type de munition" | msgstr "Éditer le type de munition" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:43 | #: lib/cannery_web/live/pack_live/show.ex:43 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Move Ammo" | msgid "Move Ammo" | ||||||
| msgstr "Déplacer munition" | msgstr "Déplacer munition" | ||||||
| @@ -759,12 +759,12 @@ msgstr "Déplacer munition" | |||||||
| msgid "No ammo in this container" | msgid "No ammo in this container" | ||||||
| msgstr "Aucun groupe de munition pour ce conteneur" | msgstr "Aucun groupe de munition pour ce conteneur" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:44 | #: lib/cannery_web/live/pack_live/show.ex:44 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Show Ammo" | msgid "Show Ammo" | ||||||
| msgstr "Montrer le type de munition" | msgstr "Montrer le type de munition" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:118 | #: lib/cannery_web/live/pack_live/show.html.heex:111 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "This ammo is not in a container" | msgid "This ammo is not in a container" | ||||||
| msgstr "Ce groupe de munition n’est pas dans un conteneur" | msgstr "Ce groupe de munition n’est pas dans un conteneur" | ||||||
| @@ -793,25 +793,25 @@ msgid "Leave \"Uses left\" blank to make invite unlimited" | |||||||
| msgstr "" | msgstr "" | ||||||
| "Laissez \"Utilisations restantes\" vide pour rendre l'invitation illimitée" | "Laissez \"Utilisations restantes\" vide pour rendre l'invitation illimitée" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:54 | #: lib/cannery_web/components/core_components/pack_card.html.heex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Container:" | msgid "Container:" | ||||||
| msgstr "Conteneur" | msgstr "Conteneur" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:87 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show used" | msgid "Show used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:202 | #: lib/cannery_web/components/pack_table_component.ex:201 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:19 | #: lib/cannery_web/live/pack_live/show.html.heex:19 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "%{percentage}%" | msgid "%{percentage}%" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:153 | #: lib/cannery_web/live/range_live/index.ex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Rounds shot: %{count}" | msgid "Rounds shot: %{count}" | ||||||
| msgstr "Cartouches tirées" | msgstr "Cartouches tirées" | ||||||
| @@ -992,28 +992,28 @@ msgstr "" | |||||||
| msgid "Edit %{ammo_type_name}" | msgid "Edit %{ammo_type_name}" | ||||||
| msgstr "Éditer %{name}" | msgstr "Éditer %{name}" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:251 | #: lib/cannery_web/components/core_components/pack_card.html.heex:17 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:17 | #: lib/cannery_web/components/pack_table_component.ex:250 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Empty" | msgid "Empty" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:81 | #: lib/cannery_web/components/pack_table_component.ex:80 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR" | msgid "CPR" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:49 | #: lib/cannery_web/components/core_components/pack_card.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR:" | msgid "CPR:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:88 | #: lib/cannery_web/components/pack_table_component.ex:87 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count" | msgid "Original Count" | ||||||
| msgstr "Nombre original :" | msgstr "Nombre original :" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:24 | #: lib/cannery_web/components/core_components/pack_card.html.heex:21 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count:" | msgid "Original Count:" | ||||||
| msgstr "Nombre original :" | msgstr "Nombre original :" | ||||||
| @@ -1023,34 +1023,34 @@ msgstr "Nombre original :" | |||||||
| msgid "Home" | msgid "Home" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:64 | #: lib/cannery_web/components/pack_table_component.ex:63 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on" | msgid "Last used on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:39 | #: lib/cannery_web/components/core_components/pack_card.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on:" | msgid "Last used on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:182 | #: lib/cannery_web/components/pack_table_component.ex:181 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Never used" | msgid "Never used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:69 | #: lib/cannery_web/components/pack_table_component.ex:68 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42 | #: lib/cannery_web/live/pack_live/form_component.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on" | msgid "Purchased on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:34 | #: lib/cannery_web/components/core_components/pack_card.html.heex:31 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:30 | #: lib/cannery_web/live/pack_live/show.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on:" | msgid "Purchased on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:51 | #: lib/cannery_web/live/pack_live/index.ex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit ammo" | msgid "Edit ammo" | ||||||
| msgstr "Éditer le type de munition" | msgstr "Éditer le type de munition" | ||||||
| @@ -1066,7 +1066,7 @@ msgstr "Aucun type de munition" | |||||||
| msgid "Search catalog" | msgid "Search catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:81 | #: lib/cannery_web/live/pack_live/index.html.heex:81 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Search ammo" | msgid "Search ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1221,12 +1221,12 @@ msgstr "" | |||||||
| msgid "Really great weather" | msgid "Really great weather" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:60 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:100 | #: lib/cannery_web/components/ammo_type_table_component.ex:100 | ||||||
| #: lib/cannery_web/components/container_table_component.ex:67 | #: lib/cannery_web/components/container_table_component.ex:67 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:70 | #: lib/cannery_web/components/move_pack_component.ex:68 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:59 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:45 | #: lib/cannery_web/components/shot_group_table_component.ex:45 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:94 | #: lib/cannery_web/live/pack_live/show.ex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1241,7 +1241,7 @@ msgstr "" | |||||||
| msgid "Log out" | msgid "Log out" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current Count" | msgid "Current Count" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1252,9 +1252,9 @@ msgstr "" | |||||||
| msgid "Close modal" | msgid "Close modal" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:58 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:103 | #: lib/cannery_web/live/container_live/show.html.heex:103 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:58 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:92 | #: lib/cannery_web/live/range_live/index.html.heex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "All" | msgid "All" | ||||||
| @@ -1326,7 +1326,7 @@ msgstr "" | |||||||
| msgid "Load grains:" | msgid "Load grains:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:29 | #: lib/cannery_web/live/pack_live/index.html.heex:29 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "No ammo" | msgid "No ammo" | ||||||
| msgstr "Aucune munition" | msgstr "Aucune munition" | ||||||
| @@ -1336,11 +1336,11 @@ msgstr "Aucune munition" | |||||||
| msgid "None specified" | msgid "None specified" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:61 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:106 | #: lib/cannery_web/live/container_live/show.html.heex:106 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:61 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:95 | #: lib/cannery_web/live/range_live/index.html.heex:95 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Pistol" | msgid "Pistol" | ||||||
| @@ -1361,11 +1361,11 @@ msgstr "Type d’amorce" | |||||||
| msgid "Projectile" | msgid "Projectile" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:59 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:104 | #: lib/cannery_web/live/container_live/show.html.heex:104 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:59 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:93 | #: lib/cannery_web/live/range_live/index.html.heex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rifle" | msgid "Rifle" | ||||||
| @@ -1415,11 +1415,11 @@ msgstr "" | |||||||
| msgid "Shot type:" | msgid "Shot type:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:60 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:105 | #: lib/cannery_web/live/container_live/show.html.heex:105 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:60 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:94 | #: lib/cannery_web/live/range_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shotgun" | msgid "Shotgun" | ||||||
| @@ -1459,11 +1459,11 @@ msgid "Wadding:" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:150 | #: lib/cannery_web/components/ammo_type_table_component.ex:150 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:50 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:97 | #: lib/cannery_web/live/container_live/show.html.heex:97 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:50 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:86 | #: lib/cannery_web/live/range_live/index.html.heex:86 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Class" | msgid "Class" | ||||||
|   | |||||||
| @@ -162,12 +162,12 @@ msgstr "" | |||||||
| msgid "Tag could not be removed" | msgid "Tag could not be removed" | ||||||
| msgstr "Le tag n’a pas pu être retiré" | msgstr "Le tag n’a pas pu être retiré" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:160 | #: lib/cannery_web/live/pack_live/form_component.ex:159 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Could not parse number of copies" | msgid "Could not parse number of copies" | ||||||
| msgstr "Impossible d'analyser le nombre de copies" | msgstr "Impossible d'analyser le nombre de copies" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:150 | #: lib/cannery_web/live/pack_live/form_component.ex:149 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | 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}" | msgstr "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}" | ||||||
| @@ -177,7 +177,7 @@ msgstr "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}" | |||||||
| msgid "Invalid multiplier" | msgid "Invalid multiplier" | ||||||
| msgstr "Multiplicateur invalide" | msgstr "Multiplicateur invalide" | ||||||
|  |  | ||||||
| #: lib/cannery/ammo/ammo_group.ex:92 | #: lib/cannery/ammo/pack.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Please select an ammo type and container" | msgid "Please select an ammo type and container" | ||||||
| msgstr "Veuillez choisir un type de munitions et un conteneur" | msgstr "Veuillez choisir un type de munitions et un conteneur" | ||||||
| @@ -202,7 +202,7 @@ msgstr "" | |||||||
| msgid "Ammo left must be at least 0" | msgid "Ammo left must be at least 0" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/activity_log/shot_group.ex:122 | #: lib/cannery/activity_log/shot_group.ex:119 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Count can be at most %{count} shots" | msgid "Count can be at most %{count} shots" | ||||||
| msgstr "La quantité doit être inférieur à %{count}" | msgstr "La quantité doit être inférieur à %{count}" | ||||||
|   | |||||||
| @@ -74,8 +74,8 @@ msgstr "" | |||||||
| msgid "Are you sure you want to delete %{name}?" | msgid "Are you sure you want to delete %{name}?" | ||||||
| msgstr "Êtes-vous certain·e de supprimer %{name} ?" | msgstr "Êtes-vous certain·e de supprimer %{name} ?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:191 | #: lib/cannery_web/live/pack_live/index.html.heex:187 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:74 | #: lib/cannery_web/live/pack_live/show.html.heex:72 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this ammo?" | msgid "Are you sure you want to delete this ammo?" | ||||||
| msgstr "Êtes-vous certain·e de supprimer cette munition ?" | msgstr "Êtes-vous certain·e de supprimer cette munition ?" | ||||||
| @@ -130,10 +130,10 @@ msgid "Please check your email to verify your account" | |||||||
| msgstr "Veuillez vérifier votre mél pour confirmer votre compte" | msgstr "Veuillez vérifier votre mél pour confirmer votre compte" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:85 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:59 | #: lib/cannery_web/live/container_live/form_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:47 | #: lib/cannery_web/live/range_live/form_component.html.heex:47 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -177,13 +177,13 @@ msgstr "Tirs enregistré avec succès" | |||||||
| msgid "Are you sure you want to unstage this ammo?" | msgid "Are you sure you want to unstage this ammo?" | ||||||
| msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?" | msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:159 | #: lib/cannery_web/live/pack_live/show.ex:158 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:152 | #: lib/cannery_web/live/range_live/index.html.heex:152 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this shot record?" | msgid "Are you sure you want to delete this shot record?" | ||||||
| msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?" | msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:81 | #: lib/cannery_web/live/pack_live/show.ex:80 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:79 | #: lib/cannery_web/live/range_live/index.ex:79 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shot records deleted succesfully" | msgid "Shot records deleted succesfully" | ||||||
| @@ -199,7 +199,7 @@ msgstr "Enregistrements de tir mis à jour avec succès" | |||||||
| msgid "%{email} confirmed successfully." | msgid "%{email} confirmed successfully." | ||||||
| msgstr "%{email} confirmé avec succès." | msgstr "%{email} confirmé avec succès." | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:54 | #: lib/cannery_web/components/move_pack_component.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo moved to %{name} successfully" | msgid "Ammo moved to %{name} successfully" | ||||||
| msgstr "Munition déplacée à %{name} avec succès" | msgstr "Munition déplacée à %{name} avec succès" | ||||||
| @@ -214,13 +214,13 @@ msgstr "Copié dans le presse-papier" | |||||||
| msgid "%{name} removed successfully" | msgid "%{name} removed successfully" | ||||||
| msgstr "%{name} retiré avec succès" | msgstr "%{name} retiré avec succès" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:10 | #: lib/cannery_web/live/pack_live/index.html.heex:10 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:20 | #: lib/cannery_web/live/pack_live/index.html.heex:20 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "You'll need to" | msgid "You'll need to" | ||||||
| msgstr "Vous aurez besoin de" | msgstr "Vous aurez besoin de" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:78 | #: lib/cannery_web/live/pack_live/form_component.html.heex:78 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Creating..." | msgid "Creating..." | ||||||
| msgstr "Création en cours…" | msgstr "Création en cours…" | ||||||
| @@ -235,23 +235,23 @@ msgstr "Êtes-vous certain·e de vouloir changer votre langue ?" | |||||||
| msgid "Language updated successfully." | msgid "Language updated successfully." | ||||||
| msgstr "Langue mise à jour avec succès." | msgstr "Langue mise à jour avec succès." | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | #: lib/cannery_web/live/pack_live/index.ex:94 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:55 | #: lib/cannery_web/live/pack_live/show.ex:55 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo deleted succesfully" | msgid "Ammo deleted succesfully" | ||||||
| msgstr "Groupe de munition supprimé avec succès" | msgstr "Groupe de munition supprimé avec succès" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:93 | #: lib/cannery_web/live/range_live/index.ex:92 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo unstaged succesfully" | msgid "Ammo unstaged succesfully" | ||||||
| msgstr "Groupe de munition désélectionner avec succès" | msgstr "Groupe de munition désélectionner avec succès" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:126 | #: lib/cannery_web/live/pack_live/form_component.ex:125 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo updated successfully" | msgid "Ammo updated successfully" | ||||||
| msgstr "Groupe de munition mis à jour avec succès" | msgstr "Groupe de munition mis à jour avec succès" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:185 | #: lib/cannery_web/live/pack_live/form_component.ex:184 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Ammo added successfully" | msgid "Ammo added successfully" | ||||||
| msgid_plural "Ammo added successfully" | msgid_plural "Ammo added successfully" | ||||||
|   | |||||||
| @@ -21,14 +21,14 @@ msgstr "" | |||||||
| ## Run "mix gettext.extract" to bring this file up to | ## Run "mix gettext.extract" to bring this file up to | ||||||
| ## date. Leave "msgstr"s empty as changing them here has no | ## date. Leave "msgstr"s empty as changing them here has no | ||||||
| ## effect: edit them in PO (.po) files instead. | ## effect: edit them in PO (.po) files instead. | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:59 | #: lib/cannery_web/live/pack_live/index.ex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:67 | #: lib/cannery_web/live/pack_live/index.ex:67 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:38 | #: lib/cannery_web/live/pack_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add Ammo" | msgid "Add Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:34 | #: lib/cannery_web/live/pack_live/index.html.heex:34 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add your first box!" | msgid "Add your first box!" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -132,10 +132,10 @@ msgid "Reset password" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | #: lib/cannery_web/components/add_shot_group_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:84 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:350 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:57 | #: lib/cannery_web/live/container_live/form_component.html.heex:57 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | #: lib/cannery_web/live/invite_live/form_component.html.heex:35 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:45 | #: lib/cannery_web/live/range_live/form_component.html.heex:45 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | #: lib/cannery_web/live/tag_live/form_component.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -167,19 +167,19 @@ msgstr "" | |||||||
| msgid "Why not get some ready to shoot?" | msgid "Why not get some ready to shoot?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:127 | #: lib/cannery_web/live/pack_live/index.html.heex:127 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:103 | #: lib/cannery_web/live/pack_live/show.html.heex:96 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:45 | #: lib/cannery_web/live/range_live/index.html.heex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:90 | #: lib/cannery_web/components/move_pack_component.ex:88 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Add another container!" | msgid "Add another container!" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:126 | #: lib/cannery_web/components/move_pack_component.ex:124 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Select" | msgid "Select" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -189,12 +189,12 @@ msgstr "" | |||||||
| msgid "Copy to clipboard" | msgid "Copy to clipboard" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:14 | #: lib/cannery_web/live/pack_live/index.html.heex:14 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add a container first" | msgid "add a container first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:77 | #: lib/cannery_web/live/pack_live/form_component.html.heex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Create" | msgid "Create" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -209,19 +209,19 @@ msgstr "" | |||||||
| msgid "Change language" | msgid "Change language" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:55 | #: lib/cannery_web/live/pack_live/show.html.heex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "View in Catalog" | msgid "View in Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:24 | #: lib/cannery_web/live/pack_live/index.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "add an ammo type first" | msgid "add an ammo type first" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:80 | #: lib/cannery_web/components/move_pack_component.ex:78 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:144 | #: lib/cannery_web/live/pack_live/index.html.heex:144 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:96 | #: lib/cannery_web/live/pack_live/show.html.heex:89 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -231,13 +231,13 @@ msgstr "" | |||||||
| msgid "Set Unlimited" | msgid "Set Unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:89 | #: lib/cannery_web/live/pack_live/show.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:38 | #: lib/cannery_web/live/range_live/index.html.heex:38 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stage for range" | msgid "Stage for range" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:88 | #: lib/cannery_web/live/pack_live/show.html.heex:84 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:37 | #: lib/cannery_web/live/range_live/index.html.heex:37 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage from range" | msgid "Unstage from range" | ||||||
| @@ -287,7 +287,7 @@ msgstr "" | |||||||
| msgid "Delete invite for %{invite_name}" | msgid "Delete invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:161 | #: lib/cannery_web/live/pack_live/show.ex:160 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:155 | #: lib/cannery_web/live/range_live/index.html.heex:155 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Delete shot record of %{shot_group_count} shots" | msgid "Delete shot record of %{shot_group_count} shots" | ||||||
| @@ -311,18 +311,12 @@ msgstr "" | |||||||
| msgid "Edit %{tag_name}" | msgid "Edit %{tag_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:166 |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:62 |  | ||||||
| #, elixir-autogen, elixir-format |  | ||||||
| msgid "Edit ammo group of %{ammo_group_count} bullets" |  | ||||||
| msgstr "" |  | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/invite_live/index.html.heex:46 | #: lib/cannery_web/live/invite_live/index.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit invite for %{invite_name}" | msgid "Edit invite for %{invite_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:146 | #: lib/cannery_web/live/pack_live/show.ex:145 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit shot group of %{shot_group_count} shots" | msgid "Edit shot group of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -332,7 +326,7 @@ msgstr "" | |||||||
| msgid "Edit shot record of %{shot_group_count} shots" | msgid "Edit shot record of %{shot_group_count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:120 | #: lib/cannery_web/live/pack_live/index.html.heex:120 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Stage" | msgid "Stage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -343,7 +337,7 @@ msgstr "" | |||||||
| msgid "Tag %{container_name}" | msgid "Tag %{container_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:119 | #: lib/cannery_web/live/pack_live/index.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Unstage" | msgid "Unstage" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -353,19 +347,25 @@ msgstr "" | |||||||
| msgid "View %{ammo_type_name}" | msgid "View %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:178 | #: lib/cannery_web/live/pack_live/index.html.heex:174 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Clone ammo group of %{ammo_group_count} bullets" | msgid "Clone pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:193 | #: lib/cannery_web/live/pack_live/index.html.heex:189 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:76 | #: lib/cannery_web/live/pack_live/show.html.heex:74 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Delete ammo group of %{ammo_group_count} bullets" | msgid "Delete pack of %{pack_count} bullets" | ||||||
|  | msgstr "" | ||||||
|  |  | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:164 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:62 | ||||||
|  | #, elixir-autogen, elixir-format, fuzzy | ||||||
|  | msgid "Edit pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:154 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:206 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "View ammo group of %{ammo_group_count} bullets" | msgid "View pack of %{pack_count} bullets" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -29,15 +29,15 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:58 | #: lib/cannery_web/components/core_components/topbar.html.heex:58 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:41 | #: lib/cannery_web/components/shot_group_table_component.ex:41 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:75 | #: lib/cannery_web/live/pack_live/index.ex:75 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:84 | #: lib/cannery_web/live/pack_live/index.ex:84 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 | #: lib/cannery_web/live/pack_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo" | msgid "Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:96 | #: lib/cannery_web/components/pack_table_component.ex:95 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:22 | #: lib/cannery_web/live/pack_live/form_component.html.heex:22 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo type" | msgid "Ammo type" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -88,9 +88,9 @@ msgstr "" | |||||||
| msgid "Case material" | msgid "Case material" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:74 | #: lib/cannery_web/components/move_pack_component.ex:65 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:67 | #: lib/cannery_web/components/pack_table_component.ex:73 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:59 | #: lib/cannery_web/live/pack_live/form_component.html.heex:59 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container" | msgid "Container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -109,14 +109,14 @@ msgstr "" | |||||||
| msgid "Corrosive" | msgid "Corrosive" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:28 | #: lib/cannery_web/live/pack_live/form_component.html.heex:28 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count" | msgid "Count" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:16 | #: lib/cannery_web/components/core_components/pack_card.html.heex:16 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:8 | #: lib/cannery_web/live/pack_live/show.html.heex:8 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Count:" | msgid "Count:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -194,7 +194,7 @@ msgid "Keep me logged in for 60 days" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:47 | #: lib/cannery_web/components/container_table_component.ex:47 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:69 | #: lib/cannery_web/components/move_pack_component.ex:67 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:47 | #: lib/cannery_web/live/container_live/form_component.html.heex:47 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Location" | msgid "Location" | ||||||
| @@ -260,7 +260,7 @@ msgstr "" | |||||||
| msgid "New Tag" | msgid "New Tag" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:94 | #: lib/cannery_web/live/pack_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No Ammo" | msgid "No Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -290,15 +290,15 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | #: lib/cannery_web/components/add_shot_group_component.html.heex:38 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:43 | #: lib/cannery_web/components/shot_group_table_component.ex:43 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:50 | #: lib/cannery_web/live/pack_live/form_component.html.heex:50 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:92 | #: lib/cannery_web/live/pack_live/show.ex:91 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:30 | #: lib/cannery_web/live/range_live/form_component.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes" | msgid "Notes" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:29 | #: lib/cannery_web/components/core_components/pack_card.html.heex:26 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:24 | #: lib/cannery_web/live/pack_live/show.html.heex:24 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Notes:" | msgid "Notes:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -314,13 +314,13 @@ msgstr "" | |||||||
| msgid "Pressure" | msgid "Pressure" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:82 | #: lib/cannery_web/components/pack_table_component.ex:81 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:35 | #: lib/cannery_web/live/pack_live/form_component.html.heex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid" | msgid "Price paid" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:44 | #: lib/cannery_web/components/core_components/pack_card.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Price paid:" | msgid "Price paid:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -362,7 +362,7 @@ msgstr "" | |||||||
| msgid "Steel" | msgid "Steel" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:113 | #: lib/cannery_web/live/pack_live/show.html.heex:106 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Stored in" | msgid "Stored in" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -398,7 +398,7 @@ msgid "Tracer" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/container_table_component.ex:48 | #: lib/cannery_web/components/container_table_component.ex:48 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:68 | #: lib/cannery_web/components/move_pack_component.ex:66 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:39 | #: lib/cannery_web/live/container_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Type" | msgid "Type" | ||||||
| @@ -430,8 +430,8 @@ msgstr "" | |||||||
| msgid "No tags for this container" | msgid "No tags for this container" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:78 |  | ||||||
| #: lib/cannery_web/components/core_components/topbar.html.heex:66 | #: lib/cannery_web/components/core_components/topbar.html.heex:66 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:77 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Range" | msgid "Range" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -443,7 +443,7 @@ msgstr "" | |||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | #: lib/cannery_web/components/add_shot_group_component.html.heex:49 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:44 | #: lib/cannery_web/components/shot_group_table_component.ex:44 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:93 | #: lib/cannery_web/live/pack_live/show.ex:92 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:41 | #: lib/cannery_web/live/range_live/form_component.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Date" | msgid "Date" | ||||||
| @@ -460,12 +460,12 @@ msgid "No ammo staged" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | #: lib/cannery_web/components/add_shot_group_component.html.heex:3 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:35 | #: lib/cannery_web/live/pack_live/index.ex:35 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record shots" | msgid "Record shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:42 | #: lib/cannery_web/live/pack_live/show.ex:42 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:40 | #: lib/cannery_web/live/range_live/index.ex:40 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Shot Records" | msgid "Edit Shot Records" | ||||||
| @@ -489,7 +489,7 @@ msgid "Rounds left" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:42 | #: lib/cannery_web/components/shot_group_table_component.ex:42 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:91 | #: lib/cannery_web/live/pack_live/show.ex:90 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:69 | #: lib/cannery_web/live/range_live/index.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds shot" | msgid "Rounds shot" | ||||||
| @@ -501,12 +501,12 @@ msgstr "" | |||||||
| msgid "Shot Records" | msgid "Shot Records" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:43 | #: lib/cannery_web/live/pack_live/index.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move ammo" | msgid "Move ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:85 | #: lib/cannery_web/components/move_pack_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No other containers" | msgid "No other containers" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -516,14 +516,14 @@ msgstr "" | |||||||
| msgid "Shot log" | msgid "Shot log" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:164 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:247 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:261 | #: lib/cannery_web/components/ammo_type_table_component.ex:261 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:45 | #: lib/cannery_web/components/core_components/pack_card.html.heex:42 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:50 | #: lib/cannery_web/components/core_components/pack_card.html.heex:47 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:37 | #: lib/cannery_web/components/pack_table_component.ex:163 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:42 | #: lib/cannery_web/components/pack_table_component.ex:246 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:152 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/show.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "$%{amount}" | msgid "$%{amount}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -610,40 +610,40 @@ msgstr "" | |||||||
| msgid "Rounds:" | msgid "Rounds:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:161 |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:243 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:260 | #: lib/cannery_web/components/ammo_type_table_component.ex:260 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:160 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:242 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:156 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "No cost information" | msgid "No cost information" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:84 | #: lib/cannery_web/components/pack_table_component.ex:83 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "% left" | msgid "% left" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:41 | #: lib/cannery_web/live/pack_live/show.html.heex:41 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current value:" | msgid "Current value:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:36 | #: lib/cannery_web/live/pack_live/show.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original cost:" | msgid "Original cost:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:13 | #: lib/cannery_web/live/pack_live/show.html.heex:13 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Original count:" | msgid "Original count:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:18 | #: lib/cannery_web/live/pack_live/show.html.heex:18 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Percentage left:" | msgid "Percentage left:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:126 | #: lib/cannery_web/live/pack_live/show.html.heex:119 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rounds used" | msgid "Rounds used" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -673,13 +673,13 @@ msgstr "" | |||||||
| msgid "Reset your password" | msgid "Reset your password" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:41 | #: lib/cannery_web/live/pack_live/show.ex:41 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:32 | #: lib/cannery_web/live/range_live/index.ex:32 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Record Shots" | msgid "Record Shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:69 | #: lib/cannery_web/live/pack_live/form_component.html.heex:69 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Copies" | msgid "Copies" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -738,12 +738,12 @@ msgstr "" | |||||||
| msgid "Catalog" | msgid "Catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:45 | #: lib/cannery_web/live/pack_live/show.ex:45 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Edit Ammo" | msgid "Edit Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:43 | #: lib/cannery_web/live/pack_live/show.ex:43 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Move Ammo" | msgid "Move Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -753,12 +753,12 @@ msgstr "" | |||||||
| msgid "No ammo in this container" | msgid "No ammo in this container" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:44 | #: lib/cannery_web/live/pack_live/show.ex:44 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show Ammo" | msgid "Show Ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:118 | #: lib/cannery_web/live/pack_live/show.html.heex:111 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "This ammo is not in a container" | msgid "This ammo is not in a container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -786,25 +786,25 @@ msgstr "" | |||||||
| msgid "Leave \"Uses left\" blank to make invite unlimited" | msgid "Leave \"Uses left\" blank to make invite unlimited" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:54 | #: lib/cannery_web/components/core_components/pack_card.html.heex:51 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Container:" | msgid "Container:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:87 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:64 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:166 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:87 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Show used" | msgid "Show used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:202 | #: lib/cannery_web/components/pack_table_component.ex:201 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:19 | #: lib/cannery_web/live/pack_live/show.html.heex:19 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "%{percentage}%" | msgid "%{percentage}%" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:153 | #: lib/cannery_web/live/range_live/index.ex:154 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Rounds shot: %{count}" | msgid "Rounds shot: %{count}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -985,28 +985,28 @@ msgstr "" | |||||||
| msgid "Edit %{ammo_type_name}" | msgid "Edit %{ammo_type_name}" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:251 | #: lib/cannery_web/components/core_components/pack_card.html.heex:17 | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:17 | #: lib/cannery_web/components/pack_table_component.ex:250 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Empty" | msgid "Empty" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:81 | #: lib/cannery_web/components/pack_table_component.ex:80 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR" | msgid "CPR" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:49 | #: lib/cannery_web/components/core_components/pack_card.html.heex:46 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "CPR:" | msgid "CPR:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:88 | #: lib/cannery_web/components/pack_table_component.ex:87 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count" | msgid "Original Count" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:24 | #: lib/cannery_web/components/core_components/pack_card.html.heex:21 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Original Count:" | msgid "Original Count:" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1016,34 +1016,34 @@ msgstr "" | |||||||
| msgid "Home" | msgid "Home" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:64 | #: lib/cannery_web/components/pack_table_component.ex:63 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on" | msgid "Last used on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:39 | #: lib/cannery_web/components/core_components/pack_card.html.heex:36 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Last used on:" | msgid "Last used on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:182 | #: lib/cannery_web/components/pack_table_component.ex:181 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Never used" | msgid "Never used" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:69 | #: lib/cannery_web/components/pack_table_component.ex:68 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:42 | #: lib/cannery_web/live/pack_live/form_component.html.heex:42 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on" | msgid "Purchased on" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/core_components/ammo_group_card.html.heex:34 | #: lib/cannery_web/components/core_components/pack_card.html.heex:31 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:30 | #: lib/cannery_web/live/pack_live/show.html.heex:30 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Purchased on:" | msgid "Purchased on:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:51 | #: lib/cannery_web/live/pack_live/index.ex:51 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Edit ammo" | msgid "Edit ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1059,7 +1059,7 @@ msgstr "" | |||||||
| msgid "Search catalog" | msgid "Search catalog" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:81 | #: lib/cannery_web/live/pack_live/index.html.heex:81 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Search ammo" | msgid "Search ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1212,12 +1212,12 @@ msgstr "" | |||||||
| msgid "Really great weather" | msgid "Really great weather" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:60 |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:100 | #: lib/cannery_web/components/ammo_type_table_component.ex:100 | ||||||
| #: lib/cannery_web/components/container_table_component.ex:67 | #: lib/cannery_web/components/container_table_component.ex:67 | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:70 | #: lib/cannery_web/components/move_pack_component.ex:68 | ||||||
|  | #: lib/cannery_web/components/pack_table_component.ex:59 | ||||||
| #: lib/cannery_web/components/shot_group_table_component.ex:45 | #: lib/cannery_web/components/shot_group_table_component.ex:45 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:94 | #: lib/cannery_web/live/pack_live/show.ex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Actions" | msgid "Actions" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1232,7 +1232,7 @@ msgstr "" | |||||||
| msgid "Log out" | msgid "Log out" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_group_table_component.ex:92 | #: lib/cannery_web/components/pack_table_component.ex:91 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Current Count" | msgid "Current Count" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1243,9 +1243,9 @@ msgstr "" | |||||||
| msgid "Close modal" | msgid "Close modal" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:58 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:35 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:103 | #: lib/cannery_web/live/container_live/show.html.heex:103 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:58 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:92 | #: lib/cannery_web/live/range_live/index.html.heex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "All" | msgid "All" | ||||||
| @@ -1317,7 +1317,7 @@ msgstr "" | |||||||
| msgid "Load grains:" | msgid "Load grains:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:29 | #: lib/cannery_web/live/pack_live/index.html.heex:29 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "No ammo" | msgid "No ammo" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -1327,11 +1327,11 @@ msgstr "" | |||||||
| msgid "None specified" | msgid "None specified" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:61 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:38 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:58 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:106 | #: lib/cannery_web/live/container_live/show.html.heex:106 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:61 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:95 | #: lib/cannery_web/live/range_live/index.html.heex:95 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Pistol" | msgid "Pistol" | ||||||
| @@ -1352,11 +1352,11 @@ msgstr "" | |||||||
| msgid "Projectile" | msgid "Projectile" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:59 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:36 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:56 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:104 | #: lib/cannery_web/live/container_live/show.html.heex:104 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:59 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:93 | #: lib/cannery_web/live/range_live/index.html.heex:93 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Rifle" | msgid "Rifle" | ||||||
| @@ -1406,11 +1406,11 @@ msgstr "" | |||||||
| msgid "Shot type:" | msgid "Shot type:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:60 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:25 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:37 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:54 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:105 | #: lib/cannery_web/live/container_live/show.html.heex:105 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:60 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:94 | #: lib/cannery_web/live/range_live/index.html.heex:94 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shotgun" | msgid "Shotgun" | ||||||
| @@ -1450,11 +1450,11 @@ msgid "Wadding:" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/ammo_type_table_component.ex:150 | #: lib/cannery_web/components/ammo_type_table_component.ex:150 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:50 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:21 | ||||||
| #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | #: lib/cannery_web/live/ammo_type_live/index.html.heex:29 | ||||||
| #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | #: lib/cannery_web/live/ammo_type_live/show.html.heex:48 | ||||||
| #: lib/cannery_web/live/container_live/show.html.heex:97 | #: lib/cannery_web/live/container_live/show.html.heex:97 | ||||||
|  | #: lib/cannery_web/live/pack_live/index.html.heex:50 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:86 | #: lib/cannery_web/live/range_live/index.html.heex:86 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Class" | msgid "Class" | ||||||
|   | |||||||
| @@ -161,12 +161,12 @@ msgstr "" | |||||||
| msgid "Tag could not be removed" | msgid "Tag could not be removed" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:160 | #: lib/cannery_web/live/pack_live/form_component.ex:159 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Could not parse number of copies" | msgid "Could not parse number of copies" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:150 | #: lib/cannery_web/live/pack_live/form_component.ex:149 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -176,7 +176,7 @@ msgstr "" | |||||||
| msgid "Invalid multiplier" | msgid "Invalid multiplier" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/ammo/ammo_group.ex:92 | #: lib/cannery/ammo/pack.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Please select an ammo type and container" | msgid "Please select an ammo type and container" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -201,7 +201,7 @@ msgstr "" | |||||||
| msgid "Ammo left must be at least 0" | msgid "Ammo left must be at least 0" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery/activity_log/shot_group.ex:122 | #: lib/cannery/activity_log/shot_group.ex:119 | ||||||
| #, elixir-autogen, elixir-format, fuzzy | #, elixir-autogen, elixir-format, fuzzy | ||||||
| msgid "Count can be at most %{count} shots" | msgid "Count can be at most %{count} shots" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
| @@ -69,8 +69,8 @@ msgstr "" | |||||||
| msgid "Are you sure you want to delete %{name}?" | msgid "Are you sure you want to delete %{name}?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:191 | #: lib/cannery_web/live/pack_live/index.html.heex:187 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:74 | #: lib/cannery_web/live/pack_live/show.html.heex:72 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this ammo?" | msgid "Are you sure you want to delete this ammo?" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -121,10 +121,10 @@ msgid "Please check your email to verify your account" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:85 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:59 | #: lib/cannery_web/live/container_live/form_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:47 | #: lib/cannery_web/live/range_live/form_component.html.heex:47 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -166,13 +166,13 @@ msgstr "" | |||||||
| msgid "Are you sure you want to unstage this ammo?" | msgid "Are you sure you want to unstage this ammo?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:159 | #: lib/cannery_web/live/pack_live/show.ex:158 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:152 | #: lib/cannery_web/live/range_live/index.html.heex:152 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this shot record?" | msgid "Are you sure you want to delete this shot record?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:81 | #: lib/cannery_web/live/pack_live/show.ex:80 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:79 | #: lib/cannery_web/live/range_live/index.ex:79 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shot records deleted succesfully" | msgid "Shot records deleted succesfully" | ||||||
| @@ -188,7 +188,7 @@ msgstr "" | |||||||
| msgid "%{email} confirmed successfully." | msgid "%{email} confirmed successfully." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:54 | #: lib/cannery_web/components/move_pack_component.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo moved to %{name} successfully" | msgid "Ammo moved to %{name} successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -203,13 +203,13 @@ msgstr "" | |||||||
| msgid "%{name} removed successfully" | msgid "%{name} removed successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:10 | #: lib/cannery_web/live/pack_live/index.html.heex:10 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:20 | #: lib/cannery_web/live/pack_live/index.html.heex:20 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "You'll need to" | msgid "You'll need to" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:78 | #: lib/cannery_web/live/pack_live/form_component.html.heex:78 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Creating..." | msgid "Creating..." | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -224,23 +224,23 @@ msgstr "" | |||||||
| msgid "Language updated successfully." | msgid "Language updated successfully." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | #: lib/cannery_web/live/pack_live/index.ex:94 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:55 | #: lib/cannery_web/live/pack_live/show.ex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo deleted succesfully" | msgid "Ammo deleted succesfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:93 | #: lib/cannery_web/live/range_live/index.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo unstaged succesfully" | msgid "Ammo unstaged succesfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:126 | #: lib/cannery_web/live/pack_live/form_component.ex:125 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo updated successfully" | msgid "Ammo updated successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:185 | #: lib/cannery_web/live/pack_live/form_component.ex:184 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo added successfully" | msgid "Ammo added successfully" | ||||||
| msgid_plural "Ammo added successfully" | msgid_plural "Ammo added successfully" | ||||||
|   | |||||||
| @@ -58,8 +58,8 @@ msgstr "" | |||||||
| msgid "Are you sure you want to delete %{name}?" | msgid "Are you sure you want to delete %{name}?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:191 | #: lib/cannery_web/live/pack_live/index.html.heex:187 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.html.heex:74 | #: lib/cannery_web/live/pack_live/show.html.heex:72 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this ammo?" | msgid "Are you sure you want to delete this ammo?" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -110,10 +110,10 @@ msgid "Please check your email to verify your account" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | #: lib/cannery_web/components/add_shot_group_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:85 |  | ||||||
| #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:351 | ||||||
| #: lib/cannery_web/live/container_live/form_component.html.heex:59 | #: lib/cannery_web/live/container_live/form_component.html.heex:59 | ||||||
| #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | #: lib/cannery_web/live/invite_live/form_component.html.heex:37 | ||||||
|  | #: lib/cannery_web/live/pack_live/form_component.html.heex:85 | ||||||
| #: lib/cannery_web/live/range_live/form_component.html.heex:47 | #: lib/cannery_web/live/range_live/form_component.html.heex:47 | ||||||
| #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | #: lib/cannery_web/live/tag_live/form_component.html.heex:39 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| @@ -155,13 +155,13 @@ msgstr "" | |||||||
| msgid "Are you sure you want to unstage this ammo?" | msgid "Are you sure you want to unstage this ammo?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:159 | #: lib/cannery_web/live/pack_live/show.ex:158 | ||||||
| #: lib/cannery_web/live/range_live/index.html.heex:152 | #: lib/cannery_web/live/range_live/index.html.heex:152 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Are you sure you want to delete this shot record?" | msgid "Are you sure you want to delete this shot record?" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:81 | #: lib/cannery_web/live/pack_live/show.ex:80 | ||||||
| #: lib/cannery_web/live/range_live/index.ex:79 | #: lib/cannery_web/live/range_live/index.ex:79 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Shot records deleted succesfully" | msgid "Shot records deleted succesfully" | ||||||
| @@ -177,7 +177,7 @@ msgstr "" | |||||||
| msgid "%{email} confirmed successfully." | msgid "%{email} confirmed successfully." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/components/move_ammo_group_component.ex:54 | #: lib/cannery_web/components/move_pack_component.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo moved to %{name} successfully" | msgid "Ammo moved to %{name} successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -192,13 +192,13 @@ msgstr "" | |||||||
| msgid "%{name} removed successfully" | msgid "%{name} removed successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:10 | #: lib/cannery_web/live/pack_live/index.html.heex:10 | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.html.heex:20 | #: lib/cannery_web/live/pack_live/index.html.heex:20 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "You'll need to" | msgid "You'll need to" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:78 | #: lib/cannery_web/live/pack_live/form_component.html.heex:78 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Creating..." | msgid "Creating..." | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -213,23 +213,23 @@ msgstr "" | |||||||
| msgid "Language updated successfully." | msgid "Language updated successfully." | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/index.ex:94 | #: lib/cannery_web/live/pack_live/index.ex:94 | ||||||
| #: lib/cannery_web/live/ammo_group_live/show.ex:55 | #: lib/cannery_web/live/pack_live/show.ex:55 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo deleted succesfully" | msgid "Ammo deleted succesfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/range_live/index.ex:93 | #: lib/cannery_web/live/range_live/index.ex:92 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo unstaged succesfully" | msgid "Ammo unstaged succesfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:126 | #: lib/cannery_web/live/pack_live/form_component.ex:125 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo updated successfully" | msgid "Ammo updated successfully" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/cannery_web/live/ammo_group_live/form_component.ex:185 | #: lib/cannery_web/live/pack_live/form_component.ex:184 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Ammo added successfully" | msgid "Ammo added successfully" | ||||||
| msgid_plural "Ammo added successfully" | msgid_plural "Ammo added successfully" | ||||||
|   | |||||||
| @@ -1,7 +1,117 @@ | |||||||
| defmodule Cannery.Repo.Migrations.RenameTypeToClass do | defmodule Cannery.Repo.Migrations.RenameTypeToClass do | ||||||
|   use Ecto.Migration |   use Ecto.Migration | ||||||
|  |  | ||||||
|   def change do |   def up do | ||||||
|  |     drop index(:ammo_types, [:type]) | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|     rename table(:ammo_types), :type, to: :class |     rename table(:ammo_types), :type, to: :class | ||||||
|  |  | ||||||
|  |     alter table(:ammo_types) do | ||||||
|  |       remove_if_exists :search, :tsvector | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     create index(:ammo_types, [:class]) | ||||||
|  |  | ||||||
|  |     execute """ | ||||||
|  |     ALTER TABLE ammo_types | ||||||
|  |       ADD COLUMN search tsvector | ||||||
|  |         GENERATED ALWAYS AS ( | ||||||
|  |         setweight(to_tsvector('english', coalesce("name", '')), 'A') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("desc", '')), 'B') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("class", '')), 'B') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("manufacturer", '')), 'C') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("upc", '')), 'C') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("bullet_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("bullet_core", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("cartridge", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("caliber", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("case_material", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("jacket_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("muzzle_velocity", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("powder_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("powder_grains_per_charge", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("grains", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("pressure", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("primer_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("firing_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("wadding", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_material", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_size", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("unfired_length", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("brass_height", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("chamber_size", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("load_grains", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_charge_weight", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("dram_equivalent", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("tracer", 'tracer', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("incendiary", 'incendiary', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("blank", 'blank', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("corrosive", 'corrosive', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("manufacturer", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("upc", '')), 'D') | ||||||
|  |       ) STORED | ||||||
|  |     """ | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   def down do | ||||||
|  |     drop index(:ammo_types, [:class]) | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     rename table(:ammo_types), :class, to: :type | ||||||
|  |  | ||||||
|  |     alter table(:ammo_types) do | ||||||
|  |       remove_if_exists :search, :tsvector | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     create index(:ammo_types, [:type]) | ||||||
|  |  | ||||||
|  |     execute """ | ||||||
|  |     ALTER TABLE ammo_types | ||||||
|  |       ADD COLUMN search TSVECTOR | ||||||
|  |         GENERATED ALWAYS AS ( | ||||||
|  |         setweight(to_tsvector('english', coalesce("name", '')), 'A') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("desc", '')), 'B') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("type", '')), 'B') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("manufacturer", '')), 'C') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("upc", '')), 'C') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("bullet_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("bullet_core", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("cartridge", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("caliber", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("case_material", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("jacket_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("muzzle_velocity", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("powder_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("powder_grains_per_charge", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("grains", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("pressure", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("primer_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("firing_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("wadding", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_type", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_material", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_size", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("unfired_length", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("brass_height", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("chamber_size", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', immutable_to_string("load_grains", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("shot_charge_weight", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("dram_equivalent", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("tracer", 'tracer', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("incendiary", 'incendiary', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("blank", 'blank', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', boolean_to_string("corrosive", 'corrosive', '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("manufacturer", '')), 'D') || | ||||||
|  |         setweight(to_tsvector('english', coalesce("upc", '')), 'D') | ||||||
|  |       ) STORED | ||||||
|  |     """ | ||||||
|   end |   end | ||||||
| end | end | ||||||
|   | |||||||
| @@ -0,0 +1,51 @@ | |||||||
|  | defmodule Cannery.Repo.Migrations.RenameAmmoGroupsToPacks do | ||||||
|  |   use Ecto.Migration | ||||||
|  |  | ||||||
|  |   def up do | ||||||
|  |     drop index(:ammo_groups, [:user_id], where: "count = 0", name: :empty_ammo_groups_index) | ||||||
|  |     drop index(:ammo_groups, [:user_id, :ammo_type_id]) | ||||||
|  |     drop index(:ammo_groups, [:user_id, :container_id]) | ||||||
|  |     drop index(:ammo_groups, [:ammo_type_id]) | ||||||
|  |     drop index(:ammo_groups, [:container_id]) | ||||||
|  |     drop index(:ammo_groups, [:user_id]) | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     rename table(:ammo_groups), to: table(:packs) | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     create index(:packs, [:user_id], where: "count = 0", name: :empty_packs_index) | ||||||
|  |     create index(:packs, [:user_id, :ammo_type_id]) | ||||||
|  |     create index(:packs, [:user_id, :container_id]) | ||||||
|  |     create index(:packs, [:ammo_type_id]) | ||||||
|  |     create index(:packs, [:container_id]) | ||||||
|  |     create index(:packs, [:user_id]) | ||||||
|  |  | ||||||
|  |     rename table(:shot_groups), :ammo_group_id, to: :pack_id | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   def down do | ||||||
|  |     drop index(:packs, [:user_id], where: "count = 0", name: :empty_packs_index) | ||||||
|  |     drop index(:packs, [:user_id, :ammo_type_id]) | ||||||
|  |     drop index(:packs, [:user_id, :container_id]) | ||||||
|  |     drop index(:packs, [:ammo_type_id]) | ||||||
|  |     drop index(:packs, [:container_id]) | ||||||
|  |     drop index(:packs, [:user_id]) | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     rename table(:packs), to: table(:ammo_groups) | ||||||
|  |  | ||||||
|  |     flush() | ||||||
|  |  | ||||||
|  |     create index(:ammo_groups, [:user_id], where: "count = 0", name: :empty_ammo_groups_index) | ||||||
|  |     create index(:ammo_groups, [:user_id, :ammo_type_id]) | ||||||
|  |     create index(:ammo_groups, [:user_id, :container_id]) | ||||||
|  |     create index(:ammo_groups, [:ammo_type_id]) | ||||||
|  |     create index(:ammo_groups, [:container_id]) | ||||||
|  |     create index(:ammo_groups, [:user_id]) | ||||||
|  |  | ||||||
|  |     rename table(:shot_groups), :pack_id, to: :ammo_group_id | ||||||
|  |   end | ||||||
|  | end | ||||||
| @@ -15,24 +15,44 @@ defmodule Cannery.ActivityLogTest do | |||||||
|       container = container_fixture(current_user) |       container = container_fixture(current_user) | ||||||
|       ammo_type = ammo_type_fixture(current_user) |       ammo_type = ammo_type_fixture(current_user) | ||||||
|  |  | ||||||
|       {1, [%{id: ammo_group_id} = ammo_group]} = |       {1, [%{id: pack_id} = pack]} = | ||||||
|         ammo_group_fixture(%{count: 25}, ammo_type, container, current_user) |         pack_fixture(%{count: 25}, ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       shot_group = |       shot_group = | ||||||
|         %{count: 5, date: ~N[2022-02-13 03:17:00], notes: "some notes"} |         %{count: 5, date: ~N[2022-02-13 03:17:00], notes: "some notes"} | ||||||
|         |> shot_group_fixture(current_user, ammo_group) |         |> shot_group_fixture(current_user, pack) | ||||||
|  |  | ||||||
|       ammo_group = ammo_group_id |> Ammo.get_ammo_group!(current_user) |       pack = pack_id |> Ammo.get_pack!(current_user) | ||||||
|  |  | ||||||
|       [ |       [ | ||||||
|         current_user: current_user, |         current_user: current_user, | ||||||
|         container: container, |         container: container, | ||||||
|         ammo_type: ammo_type, |         ammo_type: ammo_type, | ||||||
|         ammo_group: ammo_group, |         pack: pack, | ||||||
|         shot_group: shot_group |         shot_group: shot_group | ||||||
|       ] |       ] | ||||||
|     end |     end | ||||||
|  |  | ||||||
|  |     test "get_shot_record_count!/1 returns the correct amount of shot records", | ||||||
|  |          %{pack: pack, current_user: current_user} do | ||||||
|  |       assert ActivityLog.get_shot_record_count!(current_user) == 1 | ||||||
|  |  | ||||||
|  |       shot_group_fixture(%{count: 1, date: ~N[2022-02-13 03:17:00]}, current_user, pack) | ||||||
|  |       assert ActivityLog.get_shot_record_count!(current_user) == 2 | ||||||
|  |  | ||||||
|  |       shot_group_fixture(%{count: 1, date: ~N[2022-02-13 03:17:00]}, current_user, pack) | ||||||
|  |       assert ActivityLog.get_shot_record_count!(current_user) == 3 | ||||||
|  |  | ||||||
|  |       other_user = user_fixture() | ||||||
|  |       assert ActivityLog.get_shot_record_count!(other_user) == 0 | ||||||
|  |  | ||||||
|  |       container = container_fixture(other_user) | ||||||
|  |       ammo_type = ammo_type_fixture(other_user) | ||||||
|  |       {1, [pack]} = pack_fixture(%{count: 25}, ammo_type, container, other_user) | ||||||
|  |       shot_group_fixture(%{count: 1, date: ~N[2022-02-13 03:17:00]}, other_user, pack) | ||||||
|  |       assert ActivityLog.get_shot_record_count!(other_user) == 1 | ||||||
|  |     end | ||||||
|  |  | ||||||
|     test "get_shot_group!/2 returns the shot_group with given id", |     test "get_shot_group!/2 returns the shot_group with given id", | ||||||
|          %{shot_group: shot_group, current_user: current_user} do |          %{shot_group: shot_group, current_user: current_user} do | ||||||
|       assert ActivityLog.get_shot_group!(shot_group.id, current_user) == shot_group |       assert ActivityLog.get_shot_group!(shot_group.id, current_user) == shot_group | ||||||
| @@ -48,60 +68,59 @@ defmodule Cannery.ActivityLogTest do | |||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "create_shot_group/3 with valid data creates a shot_group", |     test "create_shot_group/3 with valid data creates a shot_group", | ||||||
|          %{current_user: current_user, ammo_group: ammo_group} do |          %{current_user: current_user, pack: pack} do | ||||||
|       valid_attrs = %{count: 10, date: ~D[2022-02-13], notes: "some notes"} |       valid_attrs = %{count: 10, date: ~D[2022-02-13], notes: "some notes"} | ||||||
|  |  | ||||||
|       assert {:ok, %ShotGroup{} = shot_group} = |       assert {:ok, %ShotGroup{} = shot_group} = | ||||||
|                ActivityLog.create_shot_group(valid_attrs, current_user, ammo_group) |                ActivityLog.create_shot_group(valid_attrs, current_user, pack) | ||||||
|  |  | ||||||
|       assert shot_group.count == 10 |       assert shot_group.count == 10 | ||||||
|       assert shot_group.date == ~D[2022-02-13] |       assert shot_group.date == ~D[2022-02-13] | ||||||
|       assert shot_group.notes == "some notes" |       assert shot_group.notes == "some notes" | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "create_shot_group/3 removes corresponding count from ammo group", |     test "create_shot_group/3 removes corresponding count from pack", | ||||||
|          %{ |          %{ | ||||||
|            current_user: current_user, |            current_user: current_user, | ||||||
|            ammo_group: %{id: ammo_group_id, count: org_count} = ammo_group |            pack: %{id: pack_id, count: org_count} = pack | ||||||
|          } do |          } do | ||||||
|       valid_attrs = %{count: 10, date: ~D[2022-02-13], notes: "some notes"} |       valid_attrs = %{count: 10, date: ~D[2022-02-13], notes: "some notes"} | ||||||
|  |  | ||||||
|       assert {:ok, %ShotGroup{} = shot_group} = |       assert {:ok, %ShotGroup{} = shot_group} = | ||||||
|                ActivityLog.create_shot_group(valid_attrs, current_user, ammo_group) |                ActivityLog.create_shot_group(valid_attrs, current_user, pack) | ||||||
|  |  | ||||||
|       %{count: new_count} = ammo_group_id |> Ammo.get_ammo_group!(current_user) |       %{count: new_count} = pack_id |> Ammo.get_pack!(current_user) | ||||||
|  |  | ||||||
|       assert org_count - shot_group.count == new_count |       assert org_count - shot_group.count == new_count | ||||||
|       assert new_count == 10 |       assert new_count == 10 | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "create_shot_group/3 does not remove more than ammo group amount", |     test "create_shot_group/3 does not remove more tha pack amount", | ||||||
|          %{current_user: current_user, ammo_group: %{id: ammo_group_id} = ammo_group} do |          %{current_user: current_user, pack: %{id: pack_id} = pack} do | ||||||
|       valid_attrs = %{count: 20, date: ~D[2022-02-13], notes: "some notes"} |       valid_attrs = %{count: 20, date: ~D[2022-02-13], notes: "some notes"} | ||||||
|  |  | ||||||
|       assert {:ok, %ShotGroup{}} = |       assert {:ok, %ShotGroup{}} = ActivityLog.create_shot_group(valid_attrs, current_user, pack) | ||||||
|                ActivityLog.create_shot_group(valid_attrs, current_user, ammo_group) |  | ||||||
|  |  | ||||||
|       ammo_group = ammo_group_id |> Ammo.get_ammo_group!(current_user) |       pack = pack_id |> Ammo.get_pack!(current_user) | ||||||
|  |  | ||||||
|       assert ammo_group.count == 0 |       assert pack.count == 0 | ||||||
|  |  | ||||||
|       assert {:error, %Ecto.Changeset{}} = |       assert {:error, %Ecto.Changeset{}} = | ||||||
|                ActivityLog.create_shot_group(%{count: 1}, current_user, ammo_group) |                ActivityLog.create_shot_group(%{count: 1}, current_user, pack) | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "create_shot_group/3 with invalid data returns error changeset", |     test "create_shot_group/3 with invalid data returns error changeset", | ||||||
|          %{current_user: current_user, ammo_group: ammo_group} do |          %{current_user: current_user, pack: pack} do | ||||||
|       invalid_params = %{count: nil, date: nil, notes: nil} |       invalid_params = %{count: nil, date: nil, notes: nil} | ||||||
|  |  | ||||||
|       assert {:error, %Ecto.Changeset{}} = |       assert {:error, %Ecto.Changeset{}} = | ||||||
|                ActivityLog.create_shot_group(invalid_params, current_user, ammo_group) |                ActivityLog.create_shot_group(invalid_params, current_user, pack) | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "update_shot_group/3 with valid data updates the shot_group and ammo_group", |     test "update_shot_group/3 with valid data updates the shot_group and pack", | ||||||
|          %{ |          %{ | ||||||
|            shot_group: shot_group, |            shot_group: shot_group, | ||||||
|            ammo_group: %{id: ammo_group_id}, |            pack: %{id: pack_id}, | ||||||
|            current_user: current_user |            current_user: current_user | ||||||
|          } do |          } do | ||||||
|       assert {:ok, %ShotGroup{} = shot_group} = |       assert {:ok, %ShotGroup{} = shot_group} = | ||||||
| @@ -115,10 +134,10 @@ defmodule Cannery.ActivityLogTest do | |||||||
|                  current_user |                  current_user | ||||||
|                ) |                ) | ||||||
|  |  | ||||||
|       ammo_group = ammo_group_id |> Ammo.get_ammo_group!(current_user) |       pack = pack_id |> Ammo.get_pack!(current_user) | ||||||
|  |  | ||||||
|       assert shot_group.count == 10 |       assert shot_group.count == 10 | ||||||
|       assert ammo_group.count == 15 |       assert pack.count == 15 | ||||||
|       assert shot_group.date == ~D[2022-02-13] |       assert shot_group.date == ~D[2022-02-13] | ||||||
|       assert shot_group.notes == "some updated notes" |       assert shot_group.notes == "some updated notes" | ||||||
|  |  | ||||||
| @@ -133,10 +152,10 @@ defmodule Cannery.ActivityLogTest do | |||||||
|                  current_user |                  current_user | ||||||
|                ) |                ) | ||||||
|  |  | ||||||
|       ammo_group = ammo_group_id |> Ammo.get_ammo_group!(current_user) |       pack = pack_id |> Ammo.get_pack!(current_user) | ||||||
|  |  | ||||||
|       assert shot_group.count == 25 |       assert shot_group.count == 25 | ||||||
|       assert ammo_group.count == 0 |       assert pack.count == 0 | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "update_shot_group/3 with invalid data returns error changeset", |     test "update_shot_group/3 with invalid data returns error changeset", | ||||||
| @@ -159,10 +178,10 @@ defmodule Cannery.ActivityLogTest do | |||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "delete_shot_group/2 deletes the shot_group and adds value back", |     test "delete_shot_group/2 deletes the shot_group and adds value back", | ||||||
|          %{shot_group: shot_group, current_user: current_user, ammo_group: %{id: ammo_group_id}} do |          %{shot_group: shot_group, current_user: current_user, pack: %{id: pack_id}} do | ||||||
|       assert {:ok, %ShotGroup{}} = ActivityLog.delete_shot_group(shot_group, current_user) |       assert {:ok, %ShotGroup{}} = ActivityLog.delete_shot_group(shot_group, current_user) | ||||||
|  |  | ||||||
|       assert %{count: 25} = ammo_group_id |> Ammo.get_ammo_group!(current_user) |       assert %{count: 25} = pack_id |> Ammo.get_pack!(current_user) | ||||||
|  |  | ||||||
|       assert_raise Ecto.NoResultsError, fn -> |       assert_raise Ecto.NoResultsError, fn -> | ||||||
|         ActivityLog.get_shot_group!(shot_group.id, current_user) |         ActivityLog.get_shot_group!(shot_group.id, current_user) | ||||||
| @@ -170,123 +189,123 @@ defmodule Cannery.ActivityLogTest do | |||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "get_used_count/2 returns accurate used count", %{ |     test "get_used_count/2 returns accurate used count", %{ | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       container: container, |       container: container, | ||||||
|       current_user: current_user |       current_user: current_user | ||||||
|     } do |     } do | ||||||
|       {1, [another_ammo_group]} = ammo_group_fixture(ammo_type, container, current_user) |       {1, [another_pack]} = pack_fixture(ammo_type, container, current_user) | ||||||
|       assert 0 = another_ammo_group |> ActivityLog.get_used_count(current_user) |       assert 0 = another_pack |> ActivityLog.get_used_count(current_user) | ||||||
|       assert 5 = ammo_group |> ActivityLog.get_used_count(current_user) |       assert 5 = pack |> ActivityLog.get_used_count(current_user) | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 15}, current_user, ammo_group) |       shot_group_fixture(%{count: 15}, current_user, pack) | ||||||
|       assert 20 = ammo_group |> ActivityLog.get_used_count(current_user) |       assert 20 = pack |> ActivityLog.get_used_count(current_user) | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 10}, current_user, ammo_group) |       shot_group_fixture(%{count: 10}, current_user, pack) | ||||||
|       assert 30 = ammo_group |> ActivityLog.get_used_count(current_user) |       assert 30 = pack |> ActivityLog.get_used_count(current_user) | ||||||
|  |  | ||||||
|       {1, [another_ammo_group]} = ammo_group_fixture(ammo_type, container, current_user) |       {1, [another_pack]} = pack_fixture(ammo_type, container, current_user) | ||||||
|       assert 0 = another_ammo_group |> ActivityLog.get_used_count(current_user) |       assert 0 = another_pack |> ActivityLog.get_used_count(current_user) | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "get_used_counts/2 returns accurate used counts", %{ |     test "get_used_counts/2 returns accurate used counts", %{ | ||||||
|       ammo_group: %{id: ammo_group_id} = ammo_group, |       pack: %{id: pack_id} = pack, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       container: container, |       container: container, | ||||||
|       current_user: current_user |       current_user: current_user | ||||||
|     } do |     } do | ||||||
|       {1, [%{id: another_ammo_group_id} = another_ammo_group]} = |       {1, [%{id: another_pack_id} = another_pack]} = | ||||||
|         ammo_group_fixture(ammo_type, container, current_user) |         pack_fixture(ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       assert %{ammo_group_id => 5} == |       assert %{pack_id => 5} == | ||||||
|                [ammo_group, another_ammo_group] |> ActivityLog.get_used_counts(current_user) |                [pack, another_pack] |> ActivityLog.get_used_counts(current_user) | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 5}, current_user, another_ammo_group) |       shot_group_fixture(%{count: 5}, current_user, another_pack) | ||||||
|       used_counts = [ammo_group, another_ammo_group] |> ActivityLog.get_used_counts(current_user) |       used_counts = [pack, another_pack] |> ActivityLog.get_used_counts(current_user) | ||||||
|       assert %{^ammo_group_id => 5} = used_counts |       assert %{^pack_id => 5} = used_counts | ||||||
|       assert %{^another_ammo_group_id => 5} = used_counts |       assert %{^another_pack_id => 5} = used_counts | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 15}, current_user, ammo_group) |       shot_group_fixture(%{count: 15}, current_user, pack) | ||||||
|       used_counts = [ammo_group, another_ammo_group] |> ActivityLog.get_used_counts(current_user) |       used_counts = [pack, another_pack] |> ActivityLog.get_used_counts(current_user) | ||||||
|       assert %{^ammo_group_id => 20} = used_counts |       assert %{^pack_id => 20} = used_counts | ||||||
|       assert %{^another_ammo_group_id => 5} = used_counts |       assert %{^another_pack_id => 5} = used_counts | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 10}, current_user, ammo_group) |       shot_group_fixture(%{count: 10}, current_user, pack) | ||||||
|       used_counts = [ammo_group, another_ammo_group] |> ActivityLog.get_used_counts(current_user) |       used_counts = [pack, another_pack] |> ActivityLog.get_used_counts(current_user) | ||||||
|       assert %{^ammo_group_id => 30} = used_counts |       assert %{^pack_id => 30} = used_counts | ||||||
|       assert %{^another_ammo_group_id => 5} = used_counts |       assert %{^another_pack_id => 5} = used_counts | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "get_last_used_date/2 returns accurate used count", %{ |     test "get_last_used_date/2 returns accurate used count", %{ | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       container: container, |       container: container, | ||||||
|       shot_group: %{date: date}, |       shot_group: %{date: date}, | ||||||
|       current_user: current_user |       current_user: current_user | ||||||
|     } do |     } do | ||||||
|       {1, [another_ammo_group]} = ammo_group_fixture(ammo_type, container, current_user) |       {1, [another_pack]} = pack_fixture(ammo_type, container, current_user) | ||||||
|       assert another_ammo_group |> ActivityLog.get_last_used_date(current_user) |> is_nil() |       assert another_pack |> ActivityLog.get_last_used_date(current_user) |> is_nil() | ||||||
|       assert ^date = ammo_group |> ActivityLog.get_last_used_date(current_user) |       assert ^date = pack |> ActivityLog.get_last_used_date(current_user) | ||||||
|  |  | ||||||
|       %{date: date} = shot_group_fixture(%{date: ~D[2022-11-10]}, current_user, ammo_group) |       %{date: date} = shot_group_fixture(%{date: ~D[2022-11-10]}, current_user, pack) | ||||||
|       assert ^date = ammo_group |> ActivityLog.get_last_used_date(current_user) |       assert ^date = pack |> ActivityLog.get_last_used_date(current_user) | ||||||
|  |  | ||||||
|       %{date: date} = shot_group_fixture(%{date: ~D[2022-11-11]}, current_user, ammo_group) |       %{date: date} = shot_group_fixture(%{date: ~D[2022-11-11]}, current_user, pack) | ||||||
|       assert ^date = ammo_group |> ActivityLog.get_last_used_date(current_user) |       assert ^date = pack |> ActivityLog.get_last_used_date(current_user) | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "get_last_used_dates/2 returns accurate used counts", %{ |     test "get_last_used_dates/2 returns accurate used counts", %{ | ||||||
|       ammo_group: %{id: ammo_group_id} = ammo_group, |       pack: %{id: pack_id} = pack, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       container: container, |       container: container, | ||||||
|       shot_group: %{date: date}, |       shot_group: %{date: date}, | ||||||
|       current_user: current_user |       current_user: current_user | ||||||
|     } do |     } do | ||||||
|       {1, [%{id: another_ammo_group_id} = another_ammo_group]} = |       {1, [%{id: another_pack_id} = another_pack]} = | ||||||
|         ammo_group_fixture(ammo_type, container, current_user) |         pack_fixture(ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       # unset date |       # unset date | ||||||
|       assert %{ammo_group_id => date} == |       assert %{pack_id => date} == | ||||||
|                [ammo_group, another_ammo_group] |> ActivityLog.get_last_used_dates(current_user) |                [pack, another_pack] |> ActivityLog.get_last_used_dates(current_user) | ||||||
|  |  | ||||||
|       shot_group_fixture(%{date: ~D[2022-11-09]}, current_user, another_ammo_group) |       shot_group_fixture(%{date: ~D[2022-11-09]}, current_user, another_pack) | ||||||
|  |  | ||||||
|       # setting initial date |       # setting initial date | ||||||
|       last_used_shot_groups = |       last_used_shot_groups = | ||||||
|         [ammo_group, another_ammo_group] |> ActivityLog.get_last_used_dates(current_user) |         [pack, another_pack] |> ActivityLog.get_last_used_dates(current_user) | ||||||
|  |  | ||||||
|       assert %{^ammo_group_id => ^date} = last_used_shot_groups |       assert %{^pack_id => ^date} = last_used_shot_groups | ||||||
|       assert %{^another_ammo_group_id => ~D[2022-11-09]} = last_used_shot_groups |       assert %{^another_pack_id => ~D[2022-11-09]} = last_used_shot_groups | ||||||
|  |  | ||||||
|       # setting another date |       # setting another date | ||||||
|       shot_group_fixture(%{date: ~D[2022-11-10]}, current_user, ammo_group) |       shot_group_fixture(%{date: ~D[2022-11-10]}, current_user, pack) | ||||||
|  |  | ||||||
|       last_used_shot_groups = |       last_used_shot_groups = | ||||||
|         [ammo_group, another_ammo_group] |> ActivityLog.get_last_used_dates(current_user) |         [pack, another_pack] |> ActivityLog.get_last_used_dates(current_user) | ||||||
|  |  | ||||||
|       assert %{^ammo_group_id => ~D[2022-11-10]} = last_used_shot_groups |       assert %{^pack_id => ~D[2022-11-10]} = last_used_shot_groups | ||||||
|       assert %{^another_ammo_group_id => ~D[2022-11-09]} = last_used_shot_groups |       assert %{^another_pack_id => ~D[2022-11-09]} = last_used_shot_groups | ||||||
|  |  | ||||||
|       # setting yet another date |       # setting yet another date | ||||||
|       shot_group_fixture(%{date: ~D[2022-11-11]}, current_user, ammo_group) |       shot_group_fixture(%{date: ~D[2022-11-11]}, current_user, pack) | ||||||
|  |  | ||||||
|       last_used_shot_groups = |       last_used_shot_groups = | ||||||
|         [ammo_group, another_ammo_group] |> ActivityLog.get_last_used_dates(current_user) |         [pack, another_pack] |> ActivityLog.get_last_used_dates(current_user) | ||||||
|  |  | ||||||
|       assert %{^ammo_group_id => ~D[2022-11-11]} = last_used_shot_groups |       assert %{^pack_id => ~D[2022-11-11]} = last_used_shot_groups | ||||||
|       assert %{^another_ammo_group_id => ~D[2022-11-09]} = last_used_shot_groups |       assert %{^another_pack_id => ~D[2022-11-09]} = last_used_shot_groups | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "get_used_count_for_ammo_type/2 gets accurate used round count for ammo type", |     test "get_used_count_for_ammo_type/2 gets accurate used round count for ammo type", | ||||||
|          %{ammo_type: ammo_type, ammo_group: ammo_group, current_user: current_user} do |          %{ammo_type: ammo_type, pack: pack, current_user: current_user} do | ||||||
|       another_ammo_type = ammo_type_fixture(current_user) |       another_ammo_type = ammo_type_fixture(current_user) | ||||||
|       assert 0 = another_ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) |       assert 0 = another_ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) | ||||||
|       assert 5 = ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) |       assert 5 = ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 5}, current_user, ammo_group) |       shot_group_fixture(%{count: 5}, current_user, pack) | ||||||
|       assert 10 = ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) |       assert 10 = ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 1}, current_user, ammo_group) |       shot_group_fixture(%{count: 1}, current_user, pack) | ||||||
|       assert 11 = ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) |       assert 11 = ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user) | ||||||
|     end |     end | ||||||
|  |  | ||||||
| @@ -297,14 +316,14 @@ defmodule Cannery.ActivityLogTest do | |||||||
|     } do |     } do | ||||||
|       # testing unused ammo type |       # testing unused ammo type | ||||||
|       %{id: another_ammo_type_id} = another_ammo_type = ammo_type_fixture(current_user) |       %{id: another_ammo_type_id} = another_ammo_type = ammo_type_fixture(current_user) | ||||||
|       {1, [ammo_group]} = ammo_group_fixture(another_ammo_type, container, current_user) |       {1, [pack]} = pack_fixture(another_ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       assert %{ammo_type_id => 5} == |       assert %{ammo_type_id => 5} == | ||||||
|                [ammo_type, another_ammo_type] |                [ammo_type, another_ammo_type] | ||||||
|                |> ActivityLog.get_used_count_for_ammo_types(current_user) |                |> ActivityLog.get_used_count_for_ammo_types(current_user) | ||||||
|  |  | ||||||
|       # use generated ammo group |       # use generated pack | ||||||
|       shot_group_fixture(%{count: 5}, current_user, ammo_group) |       shot_group_fixture(%{count: 5}, current_user, pack) | ||||||
|  |  | ||||||
|       used_counts = |       used_counts = | ||||||
|         [ammo_type, another_ammo_type] |> ActivityLog.get_used_count_for_ammo_types(current_user) |         [ammo_type, another_ammo_type] |> ActivityLog.get_used_count_for_ammo_types(current_user) | ||||||
| @@ -312,8 +331,8 @@ defmodule Cannery.ActivityLogTest do | |||||||
|       assert %{^ammo_type_id => 5} = used_counts |       assert %{^ammo_type_id => 5} = used_counts | ||||||
|       assert %{^another_ammo_type_id => 5} = used_counts |       assert %{^another_ammo_type_id => 5} = used_counts | ||||||
|  |  | ||||||
|       # use generated ammo group again |       # use generated pack again | ||||||
|       shot_group_fixture(%{count: 1}, current_user, ammo_group) |       shot_group_fixture(%{count: 1}, current_user, pack) | ||||||
|  |  | ||||||
|       used_counts = |       used_counts = | ||||||
|         [ammo_type, another_ammo_type] |> ActivityLog.get_used_count_for_ammo_types(current_user) |         [ammo_type, another_ammo_type] |> ActivityLog.get_used_count_for_ammo_types(current_user) | ||||||
| @@ -328,13 +347,13 @@ defmodule Cannery.ActivityLogTest do | |||||||
|       current_user = user_fixture() |       current_user = user_fixture() | ||||||
|       container = container_fixture(current_user) |       container = container_fixture(current_user) | ||||||
|       ammo_type = ammo_type_fixture(current_user) |       ammo_type = ammo_type_fixture(current_user) | ||||||
|       {1, [ammo_group]} = ammo_group_fixture(ammo_type, container, current_user) |       {1, [pack]} = pack_fixture(ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       [ |       [ | ||||||
|         current_user: current_user, |         current_user: current_user, | ||||||
|         container: container, |         container: container, | ||||||
|         ammo_type: ammo_type, |         ammo_type: ammo_type, | ||||||
|         ammo_group: ammo_group |         pack: pack | ||||||
|       ] |       ] | ||||||
|     end |     end | ||||||
|  |  | ||||||
| @@ -345,21 +364,21 @@ defmodule Cannery.ActivityLogTest do | |||||||
|  |  | ||||||
|       for class <- ["rifle", "shotgun", "pistol"] do |       for class <- ["rifle", "shotgun", "pistol"] do | ||||||
|         other_ammo_type = ammo_type_fixture(%{class: class}, other_user) |         other_ammo_type = ammo_type_fixture(%{class: class}, other_user) | ||||||
|         {1, [other_ammo_group]} = ammo_group_fixture(other_ammo_type, other_container, other_user) |         {1, [other_pack]} = pack_fixture(other_ammo_type, other_container, other_user) | ||||||
|         shot_group_fixture(other_user, other_ammo_group) |         shot_group_fixture(other_user, other_pack) | ||||||
|       end |       end | ||||||
|  |  | ||||||
|       rifle_ammo_type = ammo_type_fixture(%{class: :rifle}, current_user) |       rifle_ammo_type = ammo_type_fixture(%{class: :rifle}, current_user) | ||||||
|       {1, [rifle_ammo_group]} = ammo_group_fixture(rifle_ammo_type, container, current_user) |       {1, [rifle_pack]} = pack_fixture(rifle_ammo_type, container, current_user) | ||||||
|       rifle_shot_group = shot_group_fixture(current_user, rifle_ammo_group) |       rifle_shot_group = shot_group_fixture(current_user, rifle_pack) | ||||||
|  |  | ||||||
|       shotgun_ammo_type = ammo_type_fixture(%{class: :shotgun}, current_user) |       shotgun_ammo_type = ammo_type_fixture(%{class: :shotgun}, current_user) | ||||||
|       {1, [shotgun_ammo_group]} = ammo_group_fixture(shotgun_ammo_type, container, current_user) |       {1, [shotgun_pack]} = pack_fixture(shotgun_ammo_type, container, current_user) | ||||||
|       shotgun_shot_group = shot_group_fixture(current_user, shotgun_ammo_group) |       shotgun_shot_group = shot_group_fixture(current_user, shotgun_pack) | ||||||
|  |  | ||||||
|       pistol_ammo_type = ammo_type_fixture(%{class: :pistol}, current_user) |       pistol_ammo_type = ammo_type_fixture(%{class: :pistol}, current_user) | ||||||
|       {1, [pistol_ammo_group]} = ammo_group_fixture(pistol_ammo_type, container, current_user) |       {1, [pistol_pack]} = pack_fixture(pistol_ammo_type, container, current_user) | ||||||
|       pistol_shot_group = shot_group_fixture(current_user, pistol_ammo_group) |       pistol_shot_group = shot_group_fixture(current_user, pistol_pack) | ||||||
|  |  | ||||||
|       assert [^rifle_shot_group] = ActivityLog.list_shot_groups(:rifle, current_user) |       assert [^rifle_shot_group] = ActivityLog.list_shot_groups(:rifle, current_user) | ||||||
|       assert [^shotgun_shot_group] = ActivityLog.list_shot_groups(:shotgun, current_user) |       assert [^shotgun_shot_group] = ActivityLog.list_shot_groups(:shotgun, current_user) | ||||||
| @@ -380,37 +399,35 @@ defmodule Cannery.ActivityLogTest do | |||||||
|  |  | ||||||
|     test "list_shot_groups/3 returns relevant shot_groups for a search", %{ |     test "list_shot_groups/3 returns relevant shot_groups for a search", %{ | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       container: container, |       container: container, | ||||||
|       current_user: current_user |       current_user: current_user | ||||||
|     } do |     } do | ||||||
|       shot_group_a = shot_group_fixture(%{notes: "amazing"}, current_user, ammo_group) |       shot_group_a = shot_group_fixture(%{notes: "amazing"}, current_user, pack) | ||||||
|  |  | ||||||
|       {1, [another_ammo_group]} = |       {1, [another_pack]} = | ||||||
|         ammo_group_fixture(%{notes: "stupendous"}, ammo_type, container, current_user) |         pack_fixture(%{notes: "stupendous"}, ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       shot_group_b = shot_group_fixture(current_user, another_ammo_group) |       shot_group_b = shot_group_fixture(current_user, another_pack) | ||||||
|  |  | ||||||
|       another_ammo_type = ammo_type_fixture(%{name: "fabulous ammo"}, current_user) |       another_ammo_type = ammo_type_fixture(%{name: "fabulous ammo"}, current_user) | ||||||
|  |  | ||||||
|       {1, [yet_another_ammo_group]} = |       {1, [yet_another_pack]} = pack_fixture(another_ammo_type, container, current_user) | ||||||
|         ammo_group_fixture(another_ammo_type, container, current_user) |  | ||||||
|  |  | ||||||
|       shot_group_c = shot_group_fixture(current_user, yet_another_ammo_group) |       shot_group_c = shot_group_fixture(current_user, yet_another_pack) | ||||||
|  |  | ||||||
|       another_user = user_fixture() |       another_user = user_fixture() | ||||||
|       another_container = container_fixture(another_user) |       another_container = container_fixture(another_user) | ||||||
|       another_ammo_type = ammo_type_fixture(another_user) |       another_ammo_type = ammo_type_fixture(another_user) | ||||||
|  |  | ||||||
|       {1, [another_ammo_group]} = |       {1, [another_pack]} = pack_fixture(another_ammo_type, another_container, another_user) | ||||||
|         ammo_group_fixture(another_ammo_type, another_container, another_user) |  | ||||||
|  |  | ||||||
|       _shouldnt_return = shot_group_fixture(another_user, another_ammo_group) |       _shouldnt_return = shot_group_fixture(another_user, another_pack) | ||||||
|  |  | ||||||
|       # notes |       # notes | ||||||
|       assert ActivityLog.list_shot_groups("amazing", :all, current_user) == [shot_group_a] |       assert ActivityLog.list_shot_groups("amazing", :all, current_user) == [shot_group_a] | ||||||
|  |  | ||||||
|       # ammo group attributes |       # pack attributes | ||||||
|       assert ActivityLog.list_shot_groups("stupendous", :all, current_user) == [shot_group_b] |       assert ActivityLog.list_shot_groups("stupendous", :all, current_user) == [shot_group_b] | ||||||
|  |  | ||||||
|       # ammo type attributes |       # ammo type attributes | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -15,13 +15,13 @@ defmodule CanneryWeb.ExportControllerTest do | |||||||
|     container = container_fixture(current_user) |     container = container_fixture(current_user) | ||||||
|     tag = tag_fixture(current_user) |     tag = tag_fixture(current_user) | ||||||
|     Containers.add_tag!(container, tag, current_user) |     Containers.add_tag!(container, tag, current_user) | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(ammo_type, container, current_user) |     {1, [pack]} = pack_fixture(ammo_type, container, current_user) | ||||||
|     shot_group = shot_group_fixture(current_user, ammo_group) |     shot_group = shot_group_fixture(current_user, pack) | ||||||
|     ammo_group = ammo_group |> Repo.reload!() |     pack = pack |> Repo.reload!() | ||||||
|  |  | ||||||
|     %{ |     %{ | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       container: container, |       container: container, | ||||||
|       shot_group: shot_group, |       shot_group: shot_group, | ||||||
|       tag: tag |       tag: tag | ||||||
| @@ -36,24 +36,24 @@ defmodule CanneryWeb.ExportControllerTest do | |||||||
|       current_user: current_user, |       current_user: current_user, | ||||||
|       container: container, |       container: container, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       shot_group: shot_group, |       shot_group: shot_group, | ||||||
|       tag: tag |       tag: tag | ||||||
|     } do |     } do | ||||||
|       conn = get(conn, Routes.export_path(conn, :export, :json)) |       conn = get(conn, Routes.export_path(conn, :export, :json)) | ||||||
|  |  | ||||||
|       ideal_ammo_group = %{ |       ideal_pack = %{ | ||||||
|         "ammo_type_id" => ammo_group.ammo_type_id, |         "ammo_type_id" => pack.ammo_type_id, | ||||||
|         "container_id" => ammo_group.container_id, |         "container_id" => pack.container_id, | ||||||
|         "count" => ammo_group.count, |         "count" => pack.count, | ||||||
|         "id" => ammo_group.id, |         "id" => pack.id, | ||||||
|         "notes" => ammo_group.notes, |         "notes" => pack.notes, | ||||||
|         "price_paid" => ammo_group.price_paid, |         "price_paid" => pack.price_paid, | ||||||
|         "staged" => ammo_group.staged, |         "staged" => pack.staged, | ||||||
|         "used_count" => ammo_group |> ActivityLog.get_used_count(current_user), |         "used_count" => pack |> ActivityLog.get_used_count(current_user), | ||||||
|         "original_count" => ammo_group |> Ammo.get_original_count(current_user), |         "original_count" => pack |> Ammo.get_original_count(current_user), | ||||||
|         "cpr" => ammo_group |> Ammo.get_cpr(current_user), |         "cpr" => pack |> Ammo.get_cpr(current_user), | ||||||
|         "percentage_remaining" => ammo_group |> Ammo.get_percentage_remaining(current_user) |         "percentage_remaining" => pack |> Ammo.get_percentage_remaining(current_user) | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       ideal_ammo_type = %{ |       ideal_ammo_type = %{ | ||||||
| @@ -82,9 +82,8 @@ defmodule CanneryWeb.ExportControllerTest do | |||||||
|         "average_cost" => ammo_type |> Ammo.get_average_cost_for_ammo_type(current_user), |         "average_cost" => ammo_type |> Ammo.get_average_cost_for_ammo_type(current_user), | ||||||
|         "round_count" => ammo_type |> Ammo.get_round_count_for_ammo_type(current_user), |         "round_count" => ammo_type |> Ammo.get_round_count_for_ammo_type(current_user), | ||||||
|         "used_count" => ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user), |         "used_count" => ammo_type |> ActivityLog.get_used_count_for_ammo_type(current_user), | ||||||
|         "ammo_group_count" => ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user), |         "pack_count" => ammo_type |> Ammo.get_packs_count_for_type(current_user), | ||||||
|         "total_ammo_group_count" => |         "total_pack_count" => ammo_type |> Ammo.get_packs_count_for_type(current_user, true) | ||||||
|           ammo_type |> Ammo.get_ammo_groups_count_for_type(current_user, true) |  | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       ideal_container = %{ |       ideal_container = %{ | ||||||
| @@ -101,13 +100,12 @@ defmodule CanneryWeb.ExportControllerTest do | |||||||
|           } |           } | ||||||
|         ], |         ], | ||||||
|         "type" => container.type, |         "type" => container.type, | ||||||
|         "ammo_group_count" => |         "pack_count" => container |> Ammo.get_packs_count_for_container!(current_user), | ||||||
|           container |> Ammo.get_ammo_groups_count_for_container!(current_user), |  | ||||||
|         "round_count" => container |> Ammo.get_round_count_for_container!(current_user) |         "round_count" => container |> Ammo.get_round_count_for_container!(current_user) | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       ideal_shot_group = %{ |       ideal_shot_group = %{ | ||||||
|         "ammo_group_id" => shot_group.ammo_group_id, |         "pack_id" => shot_group.pack_id, | ||||||
|         "count" => shot_group.count, |         "count" => shot_group.count, | ||||||
|         "date" => to_string(shot_group.date), |         "date" => to_string(shot_group.date), | ||||||
|         "id" => shot_group.id, |         "id" => shot_group.id, | ||||||
| @@ -126,7 +124,7 @@ defmodule CanneryWeb.ExportControllerTest do | |||||||
|       } |       } | ||||||
|  |  | ||||||
|       json_resp = conn |> json_response(200) |       json_resp = conn |> json_response(200) | ||||||
|       assert %{"ammo_groups" => [^ideal_ammo_group]} = json_resp |       assert %{"packs" => [^ideal_pack]} = json_resp | ||||||
|       assert %{"ammo_types" => [^ideal_ammo_type]} = json_resp |       assert %{"ammo_types" => [^ideal_ammo_type]} = json_resp | ||||||
|       assert %{"containers" => [^ideal_container]} = json_resp |       assert %{"containers" => [^ideal_container]} = json_resp | ||||||
|       assert %{"shot_groups" => [^ideal_shot_group]} = json_resp |       assert %{"shot_groups" => [^ideal_shot_group]} = json_resp | ||||||
|   | |||||||
| @@ -1,461 +0,0 @@ | |||||||
| defmodule CanneryWeb.AmmoGroupLiveTest do |  | ||||||
|   @moduledoc """ |  | ||||||
|   Tests ammo group live pages |  | ||||||
|   """ |  | ||||||
|  |  | ||||||
|   use CanneryWeb.ConnCase |  | ||||||
|   import Phoenix.LiveViewTest |  | ||||||
|   alias Cannery.{Ammo, Repo} |  | ||||||
|  |  | ||||||
|   @moduletag :ammo_group_live_test |  | ||||||
|   @create_attrs %{count: 42, notes: "some notes", price_paid: 120.5} |  | ||||||
|   @update_attrs %{count: 43, notes: "some updated notes", price_paid: 456.7} |  | ||||||
|   @invalid_attrs %{count: nil, notes: nil, price_paid: nil} |  | ||||||
|   @ammo_group_create_limit 10_000 |  | ||||||
|   @shot_group_create_attrs %{ammo_left: 5, notes: "some notes"} |  | ||||||
|   @shot_group_update_attrs %{ |  | ||||||
|     count: 5, |  | ||||||
|     date: ~N[2022-02-13 03:17:00], |  | ||||||
|     notes: "some updated notes" |  | ||||||
|   } |  | ||||||
|   @shot_group_invalid_attrs %{ammo_left: nil, count: nil, notes: nil} |  | ||||||
|   @empty_attrs %{ |  | ||||||
|     price_paid: 50, |  | ||||||
|     count: 20 |  | ||||||
|   } |  | ||||||
|   @shot_group_attrs %{ |  | ||||||
|     price_paid: 50, |  | ||||||
|     count: 20 |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   defp create_ammo_group(%{current_user: current_user}) do |  | ||||||
|     ammo_type = ammo_type_fixture(current_user) |  | ||||||
|     container = container_fixture(current_user) |  | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(@create_attrs, ammo_type, container, current_user) |  | ||||||
|     [ammo_type: ammo_type, ammo_group: ammo_group, container: container] |  | ||||||
|   end |  | ||||||
|  |  | ||||||
|   defp create_shot_group(%{current_user: current_user, ammo_group: ammo_group}) do |  | ||||||
|     shot_group = shot_group_fixture(@shot_group_update_attrs, current_user, ammo_group) |  | ||||||
|     ammo_group = ammo_group |> Repo.reload!() |  | ||||||
|     [ammo_group: ammo_group, shot_group: shot_group] |  | ||||||
|   end |  | ||||||
|  |  | ||||||
|   defp create_empty_ammo_group(%{ |  | ||||||
|          current_user: current_user, |  | ||||||
|          ammo_type: ammo_type, |  | ||||||
|          container: container |  | ||||||
|        }) do |  | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(@empty_attrs, ammo_type, container, current_user) |  | ||||||
|     shot_group = shot_group_fixture(@shot_group_attrs, current_user, ammo_group) |  | ||||||
|     ammo_group = ammo_group |> Repo.reload!() |  | ||||||
|     [empty_ammo_group: ammo_group, shot_group: shot_group] |  | ||||||
|   end |  | ||||||
|  |  | ||||||
|   describe "Index of ammo group" do |  | ||||||
|     setup [:register_and_log_in_user, :create_ammo_group] |  | ||||||
|  |  | ||||||
|     test "lists all ammo_groups", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, _index_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|       ammo_group = ammo_group |> Repo.preload(:ammo_type) |  | ||||||
|       assert html =~ "Ammo" |  | ||||||
|       assert html =~ ammo_group.ammo_type.name |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "can sort by type", |  | ||||||
|          %{conn: conn, container: container, current_user: current_user} do |  | ||||||
|       rifle_type = ammo_type_fixture(%{class: :rifle}, current_user) |  | ||||||
|       {1, [rifle_ammo_group]} = ammo_group_fixture(rifle_type, container, current_user) |  | ||||||
|       shotgun_type = ammo_type_fixture(%{class: :shotgun}, current_user) |  | ||||||
|       {1, [shotgun_ammo_group]} = ammo_group_fixture(shotgun_type, container, current_user) |  | ||||||
|       pistol_type = ammo_type_fixture(%{class: :pistol}, current_user) |  | ||||||
|       {1, [pistol_ammo_group]} = ammo_group_fixture(pistol_type, container, current_user) |  | ||||||
|  |  | ||||||
|       {:ok, index_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "All" |  | ||||||
|  |  | ||||||
|       assert html =~ rifle_ammo_group.ammo_type.name |  | ||||||
|       assert html =~ shotgun_ammo_group.ammo_type.name |  | ||||||
|       assert html =~ pistol_ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |  | ||||||
|         |> render_change(ammo_type: %{class: :rifle}) |  | ||||||
|  |  | ||||||
|       assert html =~ rifle_ammo_group.ammo_type.name |  | ||||||
|       refute html =~ shotgun_ammo_group.ammo_type.name |  | ||||||
|       refute html =~ pistol_ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |  | ||||||
|         |> render_change(ammo_type: %{class: :shotgun}) |  | ||||||
|  |  | ||||||
|       refute html =~ rifle_ammo_group.ammo_type.name |  | ||||||
|       assert html =~ shotgun_ammo_group.ammo_type.name |  | ||||||
|       refute html =~ pistol_ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |  | ||||||
|         |> render_change(ammo_type: %{class: :pistol}) |  | ||||||
|  |  | ||||||
|       refute html =~ rifle_ammo_group.ammo_type.name |  | ||||||
|       refute html =~ shotgun_ammo_group.ammo_type.name |  | ||||||
|       assert html =~ pistol_ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |  | ||||||
|         |> render_change(ammo_type: %{class: :all}) |  | ||||||
|  |  | ||||||
|       assert html =~ rifle_ammo_group.ammo_type.name |  | ||||||
|       assert html =~ shotgun_ammo_group.ammo_type.name |  | ||||||
|       assert html =~ pistol_ammo_group.ammo_type.name |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "can search for ammo_groups", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       ammo_group = ammo_group |> Repo.preload(:ammo_type) |  | ||||||
|  |  | ||||||
|       assert html =~ ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form(~s/form[phx-change="search"]/) |  | ||||||
|              |> render_change(search: %{search_term: ammo_group.ammo_type.name}) =~ |  | ||||||
|                ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       assert_patch( |  | ||||||
|         index_live, |  | ||||||
|         Routes.ammo_group_index_path(conn, :search, ammo_group.ammo_type.name) |  | ||||||
|       ) |  | ||||||
|  |  | ||||||
|       refute index_live |  | ||||||
|              |> form(~s/form[phx-change="search"]/) |  | ||||||
|              |> render_change(search: %{search_term: "something_else"}) =~ |  | ||||||
|                ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :search, "something_else")) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form(~s/form[phx-change="search"]/) |  | ||||||
|              |> render_change(search: %{search_term: ""}) =~ ammo_group.ammo_type.name |  | ||||||
|  |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|     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", "Add Ammo") |> render_click() =~ "Add Ammo" |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :new)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#ammo_group-form") |  | ||||||
|         |> render_submit(ammo_group: @create_attrs) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Ammo added successfully" |  | ||||||
|       assert html =~ "\n42\n" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "saves multiple new ammo_groups", %{conn: conn, current_user: current_user} do |  | ||||||
|       multiplier = 25 |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert index_live |> element("a", "Add Ammo") |> render_click() =~ "Add Ammo" |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :new)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#ammo_group-form") |  | ||||||
|         |> render_submit(ammo_group: @create_attrs |> Map.put(:multiplier, multiplier)) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Ammo added successfully" |  | ||||||
|       assert Ammo.list_ammo_groups(nil, :all, 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", "Add Ammo") |> render_click() =~ "Add Ammo" |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :new)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_submit(ammo_group: @create_attrs |> Map.put(:multiplier, "0")) =~ |  | ||||||
|                "Invalid number of copies, must be between 1 and #{@ammo_group_create_limit}. Was 0" |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_submit( |  | ||||||
|                ammo_group: @create_attrs |> Map.put(:multiplier, @ammo_group_create_limit + 1) |  | ||||||
|              ) =~ |  | ||||||
|                "Invalid number of copies, must be between 1 and #{@ammo_group_create_limit}. Was #{@ammo_group_create_limit + 1}" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "updates ammo_group in listing", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> element(~s/a[aria-label="Edit ammo group of #{ammo_group.count} bullets"]/) |  | ||||||
|              |> render_click() =~ "Edit ammo" |  | ||||||
|  |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :edit, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#ammo_group-form") |  | ||||||
|         |> render_submit(ammo_group: @update_attrs) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Ammo updated successfully" |  | ||||||
|       assert html =~ "\n43\n" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "clones ammo_group in listing", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> element(~s/a[aria-label="Clone ammo group of #{ammo_group.count} bullets"]/) |  | ||||||
|         |> render_click() |  | ||||||
|  |  | ||||||
|       assert html =~ "Add Ammo" |  | ||||||
|       assert html =~ "$#{display_currency(120.5)}" |  | ||||||
|  |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :clone, ammo_group)) |  | ||||||
|  |  | ||||||
|       {:ok, _index_live, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#ammo_group-form") |  | ||||||
|         |> render_submit() |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Ammo added successfully" |  | ||||||
|       assert html =~ "\n42\n" |  | ||||||
|       assert html =~ "$#{display_currency(120.5)}" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "checks validity when cloning", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> element(~s/a[aria-label="Clone ammo group of #{ammo_group.count} bullets"]/) |  | ||||||
|         |> render_click() |  | ||||||
|  |  | ||||||
|       assert html =~ "Add Ammo" |  | ||||||
|       assert html =~ "$#{display_currency(120.5)}" |  | ||||||
|  |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :clone, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "clones ammo_group in listing with updates", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         index_live |  | ||||||
|         |> element(~s/a[aria-label="Clone ammo group of #{ammo_group.count} bullets"]/) |  | ||||||
|         |> render_click() |  | ||||||
|  |  | ||||||
|       assert html =~ "Add Ammo" |  | ||||||
|       assert html =~ "$#{display_currency(120.5)}" |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :clone, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#ammo_group-form") |  | ||||||
|         |> render_submit(ammo_group: @create_attrs |> Map.put(:count, 43)) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Ammo added successfully" |  | ||||||
|       assert html =~ "\n43\n" |  | ||||||
|       assert html =~ "$#{display_currency(120.5)}" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "deletes ammo_group in listing", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> element(~s/a[aria-label="Delete ammo group of #{ammo_group.count} bullets"]/) |  | ||||||
|              |> render_click() |  | ||||||
|  |  | ||||||
|       refute has_element?(index_live, "#ammo_group-#{ammo_group.id}") |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "saves new shot_group", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert index_live |> element("a", "Record shots") |> render_click() =~ "Record shots" |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_index_path(conn, :add_shot_group, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#shot-group-form") |  | ||||||
|              |> render_change(shot_group: @shot_group_invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#shot-group-form") |  | ||||||
|         |> render_submit(shot_group: @shot_group_create_attrs) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Shots recorded successfully" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     @spec display_currency(float()) :: String.t() |  | ||||||
|     defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) |  | ||||||
|   end |  | ||||||
|  |  | ||||||
|   describe "Index of empty ammo group" do |  | ||||||
|     setup [:register_and_log_in_user, :create_ammo_group, :create_empty_ammo_group] |  | ||||||
|  |  | ||||||
|     test "hides empty ammo groups by default", %{ |  | ||||||
|       conn: conn, |  | ||||||
|       empty_ammo_group: ammo_group, |  | ||||||
|       current_user: current_user |  | ||||||
|     } do |  | ||||||
|       {:ok, show_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Show used" |  | ||||||
|       refute html =~ "$#{display_currency(50.00)}" |  | ||||||
|  |  | ||||||
|       percentage = ammo_group |> Ammo.get_percentage_remaining(current_user) |  | ||||||
|       refute html =~ "\n#{"#{percentage}%"}\n" |  | ||||||
|  |  | ||||||
|       html = |  | ||||||
|         show_live |  | ||||||
|         |> element(~s/input[type="checkbox"][aria-labelledby="toggle_show_used-label"}]/) |  | ||||||
|         |> render_click() |  | ||||||
|  |  | ||||||
|       assert html =~ "$#{display_currency(50.00)}" |  | ||||||
|       percentage = ammo_group |> Ammo.get_percentage_remaining(current_user) |  | ||||||
|       assert html =~ "\n#{"#{percentage}%"}\n" |  | ||||||
|     end |  | ||||||
|   end |  | ||||||
|  |  | ||||||
|   describe "Show ammo group" do |  | ||||||
|     setup [:register_and_log_in_user, :create_ammo_group] |  | ||||||
|  |  | ||||||
|     test "displays ammo_group", %{conn: conn, ammo_group: ammo_group} 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 =~ "Show Ammo" |  | ||||||
|       assert html =~ ammo_group.ammo_type.name |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "updates ammo_group within modal", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, show_live, _html} = live(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert show_live |  | ||||||
|              |> element(~s/a[aria-label="Edit ammo group of #{ammo_group.count} bullets"]/) |  | ||||||
|              |> render_click() =~ "Edit Ammo" |  | ||||||
|  |  | ||||||
|       assert_patch(show_live, Routes.ammo_group_show_path(conn, :edit, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert show_live |  | ||||||
|              |> form("#ammo_group-form") |  | ||||||
|              |> render_change(ammo_group: @invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         show_live |  | ||||||
|         |> form("#ammo_group-form") |  | ||||||
|         |> render_submit(ammo_group: @update_attrs) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Ammo updated successfully" |  | ||||||
|       assert html =~ "some updated notes" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "saves new shot_group", %{conn: conn, ammo_group: ammo_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |> element("a", "Record shots") |> render_click() =~ "Record shots" |  | ||||||
|       assert_patch(index_live, Routes.ammo_group_show_path(conn, :add_shot_group, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#shot-group-form") |  | ||||||
|              |> render_change(shot_group: @shot_group_invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#shot-group-form") |  | ||||||
|         |> render_submit(shot_group: @shot_group_create_attrs) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Shots recorded successfully" |  | ||||||
|     end |  | ||||||
|   end |  | ||||||
|  |  | ||||||
|   describe "Show ammo group with shot group" do |  | ||||||
|     setup [:register_and_log_in_user, :create_ammo_group, :create_shot_group] |  | ||||||
|  |  | ||||||
|     test "updates shot_group in listing", |  | ||||||
|          %{conn: conn, ammo_group: ammo_group, shot_group: shot_group} do |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_group_show_path(conn, :edit, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> element(~s/a[aria-label="Edit shot group of #{shot_group.count} shots"]/) |  | ||||||
|              |> render_click() =~ "Edit Shot Records" |  | ||||||
|  |  | ||||||
|       assert_patch( |  | ||||||
|         index_live, |  | ||||||
|         Routes.ammo_group_show_path(conn, :edit_shot_group, ammo_group, shot_group) |  | ||||||
|       ) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> form("#shot-group-form") |  | ||||||
|              |> render_change(shot_group: @shot_group_invalid_attrs) =~ "can't be blank" |  | ||||||
|  |  | ||||||
|       {:ok, _view, html} = |  | ||||||
|         index_live |  | ||||||
|         |> form("#shot-group-form") |  | ||||||
|         |> render_submit(shot_group: @shot_group_update_attrs) |  | ||||||
|         |> follow_redirect(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) |  | ||||||
|  |  | ||||||
|       assert html =~ "Shot records updated successfully" |  | ||||||
|       assert html =~ "some updated notes" |  | ||||||
|     end |  | ||||||
|  |  | ||||||
|     test "deletes shot_group in listing", |  | ||||||
|          %{conn: conn, ammo_group: ammo_group, shot_group: shot_group} do |  | ||||||
|       {:ok, index_live, _html} = |  | ||||||
|         live(conn, Routes.ammo_group_show_path(conn, :edit_shot_group, ammo_group, shot_group)) |  | ||||||
|  |  | ||||||
|       assert index_live |  | ||||||
|              |> element(~s/a[aria-label="Delete shot record of #{shot_group.count} shots"]/) |  | ||||||
|              |> render_click() |  | ||||||
|  |  | ||||||
|       refute has_element?(index_live, "#shot_group-#{shot_group.id}") |  | ||||||
|     end |  | ||||||
|   end |  | ||||||
| end |  | ||||||
| @@ -33,8 +33,8 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|     name: nil, |     name: nil, | ||||||
|     grains: nil |     grains: nil | ||||||
|   } |   } | ||||||
|   @ammo_group_attrs %{ |   @pack_attrs %{ | ||||||
|     notes: "some ammo group", |     notes: "some pack", | ||||||
|     count: 20 |     count: 20 | ||||||
|   } |   } | ||||||
|   @shot_group_attrs %{ |   @shot_group_attrs %{ | ||||||
| @@ -46,18 +46,18 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|     [ammo_type: ammo_type_fixture(@create_attrs, current_user)] |     [ammo_type: ammo_type_fixture(@create_attrs, current_user)] | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   defp create_ammo_group(%{ammo_type: ammo_type, current_user: current_user}) do |   defp create_pack(%{ammo_type: ammo_type, current_user: current_user}) do | ||||||
|     container = container_fixture(current_user) |     container = container_fixture(current_user) | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(@ammo_group_attrs, ammo_type, container, current_user) |     {1, [pack]} = pack_fixture(@pack_attrs, ammo_type, container, current_user) | ||||||
|     [ammo_group: ammo_group, container: container] |     [pack: pack, container: container] | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   defp create_empty_ammo_group(%{ammo_type: ammo_type, current_user: current_user}) do |   defp create_empty_pack(%{ammo_type: ammo_type, current_user: current_user}) do | ||||||
|     container = container_fixture(current_user) |     container = container_fixture(current_user) | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(@ammo_group_attrs, ammo_type, container, current_user) |     {1, [pack]} = pack_fixture(@pack_attrs, ammo_type, container, current_user) | ||||||
|     shot_group = shot_group_fixture(@shot_group_attrs, current_user, ammo_group) |     shot_group = shot_group_fixture(@shot_group_attrs, current_user, pack) | ||||||
|     ammo_group = ammo_group |> Repo.reload!() |     pack = pack |> Repo.reload!() | ||||||
|     [ammo_group: ammo_group, container: container, shot_group: shot_group] |     [pack: pack, container: container, shot_group: shot_group] | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   describe "Index" do |   describe "Index" do | ||||||
| @@ -248,11 +248,11 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   describe "Index with ammo group" do |   describe "Index with pack" do | ||||||
|     setup [:register_and_log_in_user, :create_ammo_type, :create_ammo_group] |     setup [:register_and_log_in_user, :create_ammo_type, :create_pack] | ||||||
|  |  | ||||||
|     test "shows used ammo groups on toggle", |     test "shows used packs on toggle", | ||||||
|          %{conn: conn, ammo_group: ammo_group, current_user: current_user} do |          %{conn: conn, pack: pack, current_user: current_user} do | ||||||
|       {:ok, index_live, html} = live(conn, Routes.ammo_type_index_path(conn, :index)) |       {:ok, index_live, html} = live(conn, Routes.ammo_type_index_path(conn, :index)) | ||||||
|  |  | ||||||
|       assert html =~ "Show used" |       assert html =~ "Show used" | ||||||
| @@ -275,7 +275,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|       assert html =~ "\n0\n" |       assert html =~ "\n0\n" | ||||||
|       assert html =~ "\n1\n" |       assert html =~ "\n1\n" | ||||||
|  |  | ||||||
|       shot_group_fixture(%{count: 5}, current_user, ammo_group) |       shot_group_fixture(%{count: 5}, current_user, pack) | ||||||
|  |  | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index)) |       {:ok, index_live, _html} = live(conn, Routes.ammo_type_index_path(conn, :index)) | ||||||
|  |  | ||||||
| @@ -327,10 +327,10 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   describe "Show ammo type with ammo group" do |   describe "Show ammo type with pack" do | ||||||
|     setup [:register_and_log_in_user, :create_ammo_type, :create_ammo_group] |     setup [:register_and_log_in_user, :create_ammo_type, :create_pack] | ||||||
|  |  | ||||||
|     test "displays ammo group", %{ |     test "displays pack", %{ | ||||||
|       conn: conn, |       conn: conn, | ||||||
|       ammo_type: %{name: ammo_type_name} = ammo_type, |       ammo_type: %{name: ammo_type_name} = ammo_type, | ||||||
|       container: %{name: container_name} |       container: %{name: container_name} | ||||||
| @@ -342,7 +342,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|       assert html =~ container_name |       assert html =~ container_name | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "displays ammo group in table", |     test "displays pack in table", | ||||||
|          %{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do |          %{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do | ||||||
|       {:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type)) |       {:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type)) | ||||||
|  |  | ||||||
| @@ -356,10 +356,10 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   describe "Show ammo type with empty ammo group" do |   describe "Show ammo type with empty pack" do | ||||||
|     setup [:register_and_log_in_user, :create_ammo_type, :create_empty_ammo_group] |     setup [:register_and_log_in_user, :create_ammo_type, :create_empty_pack] | ||||||
|  |  | ||||||
|     test "displays empty ammo groups on toggle", |     test "displays empty packs on toggle", | ||||||
|          %{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do |          %{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do | ||||||
|       {:ok, show_live, html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type)) |       {:ok, show_live, html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type)) | ||||||
|       assert html =~ "Show used" |       assert html =~ "Show used" | ||||||
| @@ -375,7 +375,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do | |||||||
|       assert html =~ container_name |       assert html =~ container_name | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "displays empty ammo groups in table on toggle", |     test "displays empty packs in table on toggle", | ||||||
|          %{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do |          %{conn: conn, ammo_type: ammo_type, container: %{name: container_name}} do | ||||||
|       {:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type)) |       {:ok, show_live, _html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type)) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -30,8 +30,8 @@ defmodule CanneryWeb.ContainerLiveTest do | |||||||
|     name: "some name", |     name: "some name", | ||||||
|     grains: 120 |     grains: 120 | ||||||
|   } |   } | ||||||
|   @ammo_group_attrs %{ |   @pack_attrs %{ | ||||||
|     notes: "some ammo group", |     notes: "some pack", | ||||||
|     count: 20 |     count: 20 | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -40,11 +40,11 @@ defmodule CanneryWeb.ContainerLiveTest do | |||||||
|     [container: container] |     [container: container] | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   defp create_ammo_group(%{container: container, current_user: current_user}) do |   defp create_pack(%{container: container, current_user: current_user}) do | ||||||
|     ammo_type = ammo_type_fixture(@ammo_type_attrs, current_user) |     ammo_type = ammo_type_fixture(@ammo_type_attrs, current_user) | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(@ammo_group_attrs, ammo_type, container, current_user) |     {1, [pack]} = pack_fixture(@pack_attrs, ammo_type, container, current_user) | ||||||
|  |  | ||||||
|     [ammo_type: ammo_type, ammo_group: ammo_group] |     [ammo_type: ammo_type, pack: pack] | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   describe "Index" do |   describe "Index" do | ||||||
| @@ -246,62 +246,62 @@ defmodule CanneryWeb.ContainerLiveTest do | |||||||
|     test "can sort by type", |     test "can sort by type", | ||||||
|          %{conn: conn, container: container, current_user: current_user} do |          %{conn: conn, container: container, current_user: current_user} do | ||||||
|       rifle_type = ammo_type_fixture(%{class: :rifle}, current_user) |       rifle_type = ammo_type_fixture(%{class: :rifle}, current_user) | ||||||
|       {1, [rifle_ammo_group]} = ammo_group_fixture(rifle_type, container, current_user) |       {1, [rifle_pack]} = pack_fixture(rifle_type, container, current_user) | ||||||
|       shotgun_type = ammo_type_fixture(%{class: :shotgun}, current_user) |       shotgun_type = ammo_type_fixture(%{class: :shotgun}, current_user) | ||||||
|       {1, [shotgun_ammo_group]} = ammo_group_fixture(shotgun_type, container, current_user) |       {1, [shotgun_pack]} = pack_fixture(shotgun_type, container, current_user) | ||||||
|       pistol_type = ammo_type_fixture(%{class: :pistol}, current_user) |       pistol_type = ammo_type_fixture(%{class: :pistol}, current_user) | ||||||
|       {1, [pistol_ammo_group]} = ammo_group_fixture(pistol_type, container, current_user) |       {1, [pistol_pack]} = pack_fixture(pistol_type, container, current_user) | ||||||
|  |  | ||||||
|       {:ok, index_live, html} = live(conn, Routes.container_show_path(conn, :show, container)) |       {:ok, index_live, html} = live(conn, Routes.container_show_path(conn, :show, container)) | ||||||
|  |  | ||||||
|       assert html =~ "All" |       assert html =~ "All" | ||||||
|  |  | ||||||
|       assert html =~ rifle_ammo_group.ammo_type.name |       assert html =~ rifle_pack.ammo_type.name | ||||||
|       assert html =~ shotgun_ammo_group.ammo_type.name |       assert html =~ shotgun_pack.ammo_type.name | ||||||
|       assert html =~ pistol_ammo_group.ammo_type.name |       assert html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|       html = |       html = | ||||||
|         index_live |         index_live | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|         |> render_change(ammo_type: %{class: :rifle}) |         |> render_change(ammo_type: %{class: :rifle}) | ||||||
|  |  | ||||||
|       assert html =~ rifle_ammo_group.ammo_type.name |       assert html =~ rifle_pack.ammo_type.name | ||||||
|       refute html =~ shotgun_ammo_group.ammo_type.name |       refute html =~ shotgun_pack.ammo_type.name | ||||||
|       refute html =~ pistol_ammo_group.ammo_type.name |       refute html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|       html = |       html = | ||||||
|         index_live |         index_live | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|         |> render_change(ammo_type: %{class: :shotgun}) |         |> render_change(ammo_type: %{class: :shotgun}) | ||||||
|  |  | ||||||
|       refute html =~ rifle_ammo_group.ammo_type.name |       refute html =~ rifle_pack.ammo_type.name | ||||||
|       assert html =~ shotgun_ammo_group.ammo_type.name |       assert html =~ shotgun_pack.ammo_type.name | ||||||
|       refute html =~ pistol_ammo_group.ammo_type.name |       refute html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|       html = |       html = | ||||||
|         index_live |         index_live | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|         |> render_change(ammo_type: %{class: :pistol}) |         |> render_change(ammo_type: %{class: :pistol}) | ||||||
|  |  | ||||||
|       refute html =~ rifle_ammo_group.ammo_type.name |       refute html =~ rifle_pack.ammo_type.name | ||||||
|       refute html =~ shotgun_ammo_group.ammo_type.name |       refute html =~ shotgun_pack.ammo_type.name | ||||||
|       assert html =~ pistol_ammo_group.ammo_type.name |       assert html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|       html = |       html = | ||||||
|         index_live |         index_live | ||||||
|         |> form(~s/form[phx-change="change_class"]/) |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|         |> render_change(ammo_type: %{class: :all}) |         |> render_change(ammo_type: %{class: :all}) | ||||||
|  |  | ||||||
|       assert html =~ rifle_ammo_group.ammo_type.name |       assert html =~ rifle_pack.ammo_type.name | ||||||
|       assert html =~ shotgun_ammo_group.ammo_type.name |       assert html =~ shotgun_pack.ammo_type.name | ||||||
|       assert html =~ pistol_ammo_group.ammo_type.name |       assert html =~ pistol_pack.ammo_type.name | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   describe "Show with ammo group" do |   describe "Show with pack" do | ||||||
|     setup [:register_and_log_in_user, :create_container, :create_ammo_group] |     setup [:register_and_log_in_user, :create_container, :create_pack] | ||||||
|  |  | ||||||
|     test "displays ammo group", |     test "displays pack", | ||||||
|          %{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do |          %{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do | ||||||
|       {:ok, _show_live, html} = live(conn, Routes.container_show_path(conn, :show, container)) |       {:ok, _show_live, html} = live(conn, Routes.container_show_path(conn, :show, container)) | ||||||
|  |  | ||||||
| @@ -309,7 +309,7 @@ defmodule CanneryWeb.ContainerLiveTest do | |||||||
|       assert html =~ "\n20\n" |       assert html =~ "\n20\n" | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "displays ammo group in table", |     test "displays pack in table", | ||||||
|          %{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do |          %{conn: conn, ammo_type: %{name: ammo_type_name}, container: container} do | ||||||
|       {:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container)) |       {:ok, show_live, _html} = live(conn, Routes.container_show_path(conn, :show, container)) | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										459
									
								
								test/cannery_web/live/pack_live_test.exs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										459
									
								
								test/cannery_web/live/pack_live_test.exs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,459 @@ | |||||||
|  | defmodule CanneryWeb.PackLiveTest do | ||||||
|  |   @moduledoc """ | ||||||
|  |   Tests pack live pages | ||||||
|  |   """ | ||||||
|  |  | ||||||
|  |   use CanneryWeb.ConnCase | ||||||
|  |   import Phoenix.LiveViewTest | ||||||
|  |   alias Cannery.{Ammo, Repo} | ||||||
|  |  | ||||||
|  |   @moduletag :pack_live_test | ||||||
|  |   @create_attrs %{count: 42, notes: "some notes", price_paid: 120.5} | ||||||
|  |   @update_attrs %{count: 43, notes: "some updated notes", price_paid: 456.7} | ||||||
|  |   @invalid_attrs %{count: nil, notes: nil, price_paid: nil} | ||||||
|  |   @pack_create_limit 10_000 | ||||||
|  |   @shot_group_create_attrs %{ammo_left: 5, notes: "some notes"} | ||||||
|  |   @shot_group_update_attrs %{ | ||||||
|  |     count: 5, | ||||||
|  |     date: ~N[2022-02-13 03:17:00], | ||||||
|  |     notes: "some updated notes" | ||||||
|  |   } | ||||||
|  |   @shot_group_invalid_attrs %{ammo_left: nil, count: nil, notes: nil} | ||||||
|  |   @empty_attrs %{ | ||||||
|  |     price_paid: 50, | ||||||
|  |     count: 20 | ||||||
|  |   } | ||||||
|  |   @shot_group_attrs %{ | ||||||
|  |     price_paid: 50, | ||||||
|  |     count: 20 | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   defp create_pack(%{current_user: current_user}) do | ||||||
|  |     ammo_type = ammo_type_fixture(current_user) | ||||||
|  |     container = container_fixture(current_user) | ||||||
|  |     {1, [pack]} = pack_fixture(@create_attrs, ammo_type, container, current_user) | ||||||
|  |     [ammo_type: ammo_type, pack: pack, container: container] | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   defp create_shot_group(%{current_user: current_user, pack: pack}) do | ||||||
|  |     shot_group = shot_group_fixture(@shot_group_update_attrs, current_user, pack) | ||||||
|  |     pack = pack |> Repo.reload!() | ||||||
|  |     [pack: pack, shot_group: shot_group] | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   defp create_empty_pack(%{ | ||||||
|  |          current_user: current_user, | ||||||
|  |          ammo_type: ammo_type, | ||||||
|  |          container: container | ||||||
|  |        }) do | ||||||
|  |     {1, [pack]} = pack_fixture(@empty_attrs, ammo_type, container, current_user) | ||||||
|  |     shot_group = shot_group_fixture(@shot_group_attrs, current_user, pack) | ||||||
|  |     pack = pack |> Repo.reload!() | ||||||
|  |     [empty_pack: pack, shot_group: shot_group] | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   describe "Index of pack" do | ||||||
|  |     setup [:register_and_log_in_user, :create_pack] | ||||||
|  |  | ||||||
|  |     test "lists all packs", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, _index_live, html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |       pack = pack |> Repo.preload(:ammo_type) | ||||||
|  |       assert html =~ "Ammo" | ||||||
|  |       assert html =~ pack.ammo_type.name | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "can sort by type", | ||||||
|  |          %{conn: conn, container: container, current_user: current_user} do | ||||||
|  |       rifle_type = ammo_type_fixture(%{class: :rifle}, current_user) | ||||||
|  |       {1, [rifle_pack]} = pack_fixture(rifle_type, container, current_user) | ||||||
|  |       shotgun_type = ammo_type_fixture(%{class: :shotgun}, current_user) | ||||||
|  |       {1, [shotgun_pack]} = pack_fixture(shotgun_type, container, current_user) | ||||||
|  |       pistol_type = ammo_type_fixture(%{class: :pistol}, current_user) | ||||||
|  |       {1, [pistol_pack]} = pack_fixture(pistol_type, container, current_user) | ||||||
|  |  | ||||||
|  |       {:ok, index_live, html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "All" | ||||||
|  |  | ||||||
|  |       assert html =~ rifle_pack.ammo_type.name | ||||||
|  |       assert html =~ shotgun_pack.ammo_type.name | ||||||
|  |       assert html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|  |         |> render_change(ammo_type: %{class: :rifle}) | ||||||
|  |  | ||||||
|  |       assert html =~ rifle_pack.ammo_type.name | ||||||
|  |       refute html =~ shotgun_pack.ammo_type.name | ||||||
|  |       refute html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|  |         |> render_change(ammo_type: %{class: :shotgun}) | ||||||
|  |  | ||||||
|  |       refute html =~ rifle_pack.ammo_type.name | ||||||
|  |       assert html =~ shotgun_pack.ammo_type.name | ||||||
|  |       refute html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|  |         |> render_change(ammo_type: %{class: :pistol}) | ||||||
|  |  | ||||||
|  |       refute html =~ rifle_pack.ammo_type.name | ||||||
|  |       refute html =~ shotgun_pack.ammo_type.name | ||||||
|  |       assert html =~ pistol_pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> form(~s/form[phx-change="change_class"]/) | ||||||
|  |         |> render_change(ammo_type: %{class: :all}) | ||||||
|  |  | ||||||
|  |       assert html =~ rifle_pack.ammo_type.name | ||||||
|  |       assert html =~ shotgun_pack.ammo_type.name | ||||||
|  |       assert html =~ pistol_pack.ammo_type.name | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "can search for packs", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       pack = pack |> Repo.preload(:ammo_type) | ||||||
|  |  | ||||||
|  |       assert html =~ pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form(~s/form[phx-change="search"]/) | ||||||
|  |              |> render_change(search: %{search_term: pack.ammo_type.name}) =~ | ||||||
|  |                pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       assert_patch( | ||||||
|  |         index_live, | ||||||
|  |         Routes.pack_index_path(conn, :search, pack.ammo_type.name) | ||||||
|  |       ) | ||||||
|  |  | ||||||
|  |       refute index_live | ||||||
|  |              |> form(~s/form[phx-change="search"]/) | ||||||
|  |              |> render_change(search: %{search_term: "something_else"}) =~ | ||||||
|  |                pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :search, "something_else")) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form(~s/form[phx-change="search"]/) | ||||||
|  |              |> render_change(search: %{search_term: ""}) =~ pack.ammo_type.name | ||||||
|  |  | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :index)) | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "saves a single new pack", %{conn: conn} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert index_live |> element("a", "Add Ammo") |> render_click() =~ "Add Ammo" | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :new)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#pack-form") | ||||||
|  |         |> render_submit(pack: @create_attrs) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Ammo added successfully" | ||||||
|  |       assert html =~ "\n42\n" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "saves multiple new packs", %{conn: conn, current_user: current_user} do | ||||||
|  |       multiplier = 25 | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert index_live |> element("a", "Add Ammo") |> render_click() =~ "Add Ammo" | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :new)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#pack-form") | ||||||
|  |         |> render_submit(pack: @create_attrs |> Map.put(:multiplier, multiplier)) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Ammo added successfully" | ||||||
|  |       assert Ammo.list_packs(nil, :all, current_user) |> Enum.count() == multiplier + 1 | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "does not save invalid number of new packs", %{conn: conn} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert index_live |> element("a", "Add Ammo") |> render_click() =~ "Add Ammo" | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :new)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_submit(pack: @create_attrs |> Map.put(:multiplier, "0")) =~ | ||||||
|  |                "Invalid number of copies, must be between 1 and #{@pack_create_limit}. Was 0" | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_submit(pack: @create_attrs |> Map.put(:multiplier, @pack_create_limit + 1)) =~ | ||||||
|  |                "Invalid number of copies, must be between 1 and #{@pack_create_limit}. Was #{@pack_create_limit + 1}" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "updates pack in listing", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> element(~s/a[aria-label="Edit pack of #{pack.count} bullets"]/) | ||||||
|  |              |> render_click() =~ "Edit ammo" | ||||||
|  |  | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :edit, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#pack-form") | ||||||
|  |         |> render_submit(pack: @update_attrs) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Ammo updated successfully" | ||||||
|  |       assert html =~ "\n43\n" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "clones pack in listing", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> element(~s/a[aria-label="Clone pack of #{pack.count} bullets"]/) | ||||||
|  |         |> render_click() | ||||||
|  |  | ||||||
|  |       assert html =~ "Add Ammo" | ||||||
|  |       assert html =~ "$#{display_currency(120.5)}" | ||||||
|  |  | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :clone, pack)) | ||||||
|  |  | ||||||
|  |       {:ok, _index_live, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#pack-form") | ||||||
|  |         |> render_submit() | ||||||
|  |         |> follow_redirect(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Ammo added successfully" | ||||||
|  |       assert html =~ "\n42\n" | ||||||
|  |       assert html =~ "$#{display_currency(120.5)}" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "checks validity when cloning", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> element(~s/a[aria-label="Clone pack of #{pack.count} bullets"]/) | ||||||
|  |         |> render_click() | ||||||
|  |  | ||||||
|  |       assert html =~ "Add Ammo" | ||||||
|  |       assert html =~ "$#{display_currency(120.5)}" | ||||||
|  |  | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :clone, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "clones pack in listing with updates", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         index_live | ||||||
|  |         |> element(~s/a[aria-label="Clone pack of #{pack.count} bullets"]/) | ||||||
|  |         |> render_click() | ||||||
|  |  | ||||||
|  |       assert html =~ "Add Ammo" | ||||||
|  |       assert html =~ "$#{display_currency(120.5)}" | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :clone, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#pack-form") | ||||||
|  |         |> render_submit(pack: @create_attrs |> Map.put(:count, 43)) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Ammo added successfully" | ||||||
|  |       assert html =~ "\n43\n" | ||||||
|  |       assert html =~ "$#{display_currency(120.5)}" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "deletes pack in listing", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> element(~s/a[aria-label="Delete pack of #{pack.count} bullets"]/) | ||||||
|  |              |> render_click() | ||||||
|  |  | ||||||
|  |       refute has_element?(index_live, "#pack-#{pack.id}") | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "saves new shot_group", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert index_live |> element("a", "Record shots") |> render_click() =~ "Record shots" | ||||||
|  |       assert_patch(index_live, Routes.pack_index_path(conn, :add_shot_group, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#shot-group-form") | ||||||
|  |              |> render_change(shot_group: @shot_group_invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#shot-group-form") | ||||||
|  |         |> render_submit(shot_group: @shot_group_create_attrs) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Shots recorded successfully" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     @spec display_currency(float()) :: String.t() | ||||||
|  |     defp display_currency(float), do: :erlang.float_to_binary(float, decimals: 2) | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   describe "Index of empty pack" do | ||||||
|  |     setup [:register_and_log_in_user, :create_pack, :create_empty_pack] | ||||||
|  |  | ||||||
|  |     test "hides empty packs by default", %{ | ||||||
|  |       conn: conn, | ||||||
|  |       empty_pack: pack, | ||||||
|  |       current_user: current_user | ||||||
|  |     } do | ||||||
|  |       {:ok, show_live, html} = live(conn, Routes.pack_index_path(conn, :index)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Show used" | ||||||
|  |       refute html =~ "$#{display_currency(50.00)}" | ||||||
|  |  | ||||||
|  |       percentage = pack |> Ammo.get_percentage_remaining(current_user) | ||||||
|  |       refute html =~ "\n#{"#{percentage}%"}\n" | ||||||
|  |  | ||||||
|  |       html = | ||||||
|  |         show_live | ||||||
|  |         |> element(~s/input[type="checkbox"][aria-labelledby="toggle_show_used-label"}]/) | ||||||
|  |         |> render_click() | ||||||
|  |  | ||||||
|  |       assert html =~ "$#{display_currency(50.00)}" | ||||||
|  |       percentage = pack |> Ammo.get_percentage_remaining(current_user) | ||||||
|  |       assert html =~ "\n#{"#{percentage}%"}\n" | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   describe "Show pack" do | ||||||
|  |     setup [:register_and_log_in_user, :create_pack] | ||||||
|  |  | ||||||
|  |     test "displays pack", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, _show_live, html} = live(conn, Routes.pack_show_path(conn, :show, pack)) | ||||||
|  |       pack = pack |> Repo.preload(:ammo_type) | ||||||
|  |       assert html =~ "Show Ammo" | ||||||
|  |       assert html =~ pack.ammo_type.name | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "updates pack within modal", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, show_live, _html} = live(conn, Routes.pack_show_path(conn, :show, pack)) | ||||||
|  |  | ||||||
|  |       assert show_live | ||||||
|  |              |> element(~s/a[aria-label="Edit pack of #{pack.count} bullets"]/) | ||||||
|  |              |> render_click() =~ "Edit Ammo" | ||||||
|  |  | ||||||
|  |       assert_patch(show_live, Routes.pack_show_path(conn, :edit, pack)) | ||||||
|  |  | ||||||
|  |       assert show_live | ||||||
|  |              |> form("#pack-form") | ||||||
|  |              |> render_change(pack: @invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         show_live | ||||||
|  |         |> form("#pack-form") | ||||||
|  |         |> render_submit(pack: @update_attrs) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_show_path(conn, :show, pack)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Ammo updated successfully" | ||||||
|  |       assert html =~ "some updated notes" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "saves new shot_group", %{conn: conn, pack: pack} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_show_path(conn, :show, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live |> element("a", "Record shots") |> render_click() =~ "Record shots" | ||||||
|  |       assert_patch(index_live, Routes.pack_show_path(conn, :add_shot_group, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#shot-group-form") | ||||||
|  |              |> render_change(shot_group: @shot_group_invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#shot-group-form") | ||||||
|  |         |> render_submit(shot_group: @shot_group_create_attrs) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_show_path(conn, :show, pack)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Shots recorded successfully" | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  |  | ||||||
|  |   describe "Show pack with shot group" do | ||||||
|  |     setup [:register_and_log_in_user, :create_pack, :create_shot_group] | ||||||
|  |  | ||||||
|  |     test "updates shot_group in listing", | ||||||
|  |          %{conn: conn, pack: pack, shot_group: shot_group} do | ||||||
|  |       {:ok, index_live, _html} = live(conn, Routes.pack_show_path(conn, :edit, pack)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> element(~s/a[aria-label="Edit shot group of #{shot_group.count} shots"]/) | ||||||
|  |              |> render_click() =~ "Edit Shot Records" | ||||||
|  |  | ||||||
|  |       assert_patch( | ||||||
|  |         index_live, | ||||||
|  |         Routes.pack_show_path(conn, :edit_shot_group, pack, shot_group) | ||||||
|  |       ) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> form("#shot-group-form") | ||||||
|  |              |> render_change(shot_group: @shot_group_invalid_attrs) =~ "can't be blank" | ||||||
|  |  | ||||||
|  |       {:ok, _view, html} = | ||||||
|  |         index_live | ||||||
|  |         |> form("#shot-group-form") | ||||||
|  |         |> render_submit(shot_group: @shot_group_update_attrs) | ||||||
|  |         |> follow_redirect(conn, Routes.pack_show_path(conn, :show, pack)) | ||||||
|  |  | ||||||
|  |       assert html =~ "Shot records updated successfully" | ||||||
|  |       assert html =~ "some updated notes" | ||||||
|  |     end | ||||||
|  |  | ||||||
|  |     test "deletes shot_group in listing", | ||||||
|  |          %{conn: conn, pack: pack, shot_group: shot_group} do | ||||||
|  |       {:ok, index_live, _html} = | ||||||
|  |         live(conn, Routes.pack_show_path(conn, :edit_shot_group, pack, shot_group)) | ||||||
|  |  | ||||||
|  |       assert index_live | ||||||
|  |              |> element(~s/a[aria-label="Delete shot record of #{shot_group.count} shots"]/) | ||||||
|  |              |> render_click() | ||||||
|  |  | ||||||
|  |       refute has_element?(index_live, "#shot_group-#{shot_group.id}") | ||||||
|  |     end | ||||||
|  |   end | ||||||
|  | end | ||||||
| @@ -16,16 +16,16 @@ defmodule CanneryWeb.RangeLiveTest do | |||||||
|     container = container_fixture(%{staged: true}, current_user) |     container = container_fixture(%{staged: true}, current_user) | ||||||
|     ammo_type = ammo_type_fixture(current_user) |     ammo_type = ammo_type_fixture(current_user) | ||||||
|  |  | ||||||
|     {1, [ammo_group]} = ammo_group_fixture(%{staged: true}, ammo_type, container, current_user) |     {1, [pack]} = pack_fixture(%{staged: true}, ammo_type, container, current_user) | ||||||
|  |  | ||||||
|     shot_group = |     shot_group = | ||||||
|       %{count: 5, date: ~N[2022-02-13 03:17:00], notes: "some notes"} |       %{count: 5, date: ~N[2022-02-13 03:17:00], notes: "some notes"} | ||||||
|       |> shot_group_fixture(current_user, ammo_group) |       |> shot_group_fixture(current_user, pack) | ||||||
|  |  | ||||||
|     [ |     [ | ||||||
|       container: container, |       container: container, | ||||||
|       ammo_type: ammo_type, |       ammo_type: ammo_type, | ||||||
|       ammo_group: ammo_group, |       pack: pack, | ||||||
|       shot_group: shot_group |       shot_group: shot_group | ||||||
|     ] |     ] | ||||||
|   end |   end | ||||||
| @@ -43,21 +43,19 @@ defmodule CanneryWeb.RangeLiveTest do | |||||||
|     test "can sort by type", |     test "can sort by type", | ||||||
|          %{conn: conn, container: container, current_user: current_user} do |          %{conn: conn, container: container, current_user: current_user} do | ||||||
|       rifle_ammo_type = ammo_type_fixture(%{class: :rifle}, current_user) |       rifle_ammo_type = ammo_type_fixture(%{class: :rifle}, current_user) | ||||||
|       {1, [rifle_ammo_group]} = ammo_group_fixture(rifle_ammo_type, container, current_user) |       {1, [rifle_pack]} = pack_fixture(rifle_ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       rifle_shot_group = shot_group_fixture(%{notes: "group_one"}, current_user, rifle_ammo_group) |       rifle_shot_group = shot_group_fixture(%{notes: "group_one"}, current_user, rifle_pack) | ||||||
|  |  | ||||||
|       shotgun_ammo_type = ammo_type_fixture(%{class: :shotgun}, current_user) |       shotgun_ammo_type = ammo_type_fixture(%{class: :shotgun}, current_user) | ||||||
|       {1, [shotgun_ammo_group]} = ammo_group_fixture(shotgun_ammo_type, container, current_user) |       {1, [shotgun_pack]} = pack_fixture(shotgun_ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       shotgun_shot_group = |       shotgun_shot_group = shot_group_fixture(%{notes: "group_two"}, current_user, shotgun_pack) | ||||||
|         shot_group_fixture(%{notes: "group_two"}, current_user, shotgun_ammo_group) |  | ||||||
|  |  | ||||||
|       pistol_ammo_type = ammo_type_fixture(%{class: :pistol}, current_user) |       pistol_ammo_type = ammo_type_fixture(%{class: :pistol}, current_user) | ||||||
|       {1, [pistol_ammo_group]} = ammo_group_fixture(pistol_ammo_type, container, current_user) |       {1, [pistol_pack]} = pack_fixture(pistol_ammo_type, container, current_user) | ||||||
|  |  | ||||||
|       pistol_shot_group = |       pistol_shot_group = shot_group_fixture(%{notes: "group_three"}, current_user, pistol_pack) | ||||||
|         shot_group_fixture(%{notes: "group_three"}, current_user, pistol_ammo_group) |  | ||||||
|  |  | ||||||
|       {:ok, index_live, html} = live(conn, Routes.range_index_path(conn, :index)) |       {:ok, index_live, html} = live(conn, Routes.range_index_path(conn, :index)) | ||||||
|  |  | ||||||
| @@ -128,11 +126,11 @@ defmodule CanneryWeb.RangeLiveTest do | |||||||
|       assert_patch(index_live, Routes.range_index_path(conn, :index)) |       assert_patch(index_live, Routes.range_index_path(conn, :index)) | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     test "saves new shot_group", %{conn: conn, ammo_group: ammo_group} do |     test "saves new shot_group", %{conn: conn, pack: pack} do | ||||||
|       {:ok, index_live, _html} = live(conn, Routes.range_index_path(conn, :index)) |       {:ok, index_live, _html} = live(conn, Routes.range_index_path(conn, :index)) | ||||||
|  |  | ||||||
|       assert index_live |> element("a", "Record shots") |> render_click() =~ "Record shots" |       assert index_live |> element("a", "Record shots") |> render_click() =~ "Record shots" | ||||||
|       assert_patch(index_live, Routes.range_index_path(conn, :add_shot_group, ammo_group)) |       assert_patch(index_live, Routes.range_index_path(conn, :add_shot_group, pack)) | ||||||
|  |  | ||||||
|       assert index_live |       assert index_live | ||||||
|              |> form("#shot-group-form") |              |> form("#shot-group-form") | ||||||
|   | |||||||
| @@ -10,8 +10,8 @@ defmodule Cannery.Fixtures do | |||||||
|     Accounts.User, |     Accounts.User, | ||||||
|     ActivityLog.ShotGroup, |     ActivityLog.ShotGroup, | ||||||
|     Ammo, |     Ammo, | ||||||
|     Ammo.AmmoGroup, |  | ||||||
|     Ammo.AmmoType, |     Ammo.AmmoType, | ||||||
|  |     Ammo.Pack, | ||||||
|     Containers, |     Containers, | ||||||
|     Containers.Container, |     Containers.Container, | ||||||
|     Containers.Tag, |     Containers.Tag, | ||||||
| @@ -71,16 +71,16 @@ defmodule Cannery.Fixtures do | |||||||
|   @doc """ |   @doc """ | ||||||
|   Generate a ShotGroup |   Generate a ShotGroup | ||||||
|   """ |   """ | ||||||
|   @spec shot_group_fixture(User.t(), AmmoGroup.t()) :: ShotGroup.t() |   @spec shot_group_fixture(User.t(), Pack.t()) :: ShotGroup.t() | ||||||
|   @spec shot_group_fixture(attrs :: map(), User.t(), AmmoGroup.t()) :: ShotGroup.t() |   @spec shot_group_fixture(attrs :: map(), User.t(), Pack.t()) :: ShotGroup.t() | ||||||
|   def shot_group_fixture(attrs \\ %{}, %User{} = user, %AmmoGroup{} = ammo_group) do |   def shot_group_fixture(attrs \\ %{}, %User{} = user, %Pack{} = pack) do | ||||||
|     attrs |     attrs | ||||||
|     |> Enum.into(%{ |     |> Enum.into(%{ | ||||||
|       count: 20, |       count: 20, | ||||||
|       date: ~N[2022-02-13 03:17:00], |       date: ~N[2022-02-13 03:17:00], | ||||||
|       notes: random_string() |       notes: random_string() | ||||||
|     }) |     }) | ||||||
|     |> Cannery.ActivityLog.create_shot_group(user, ammo_group) |     |> Cannery.ActivityLog.create_shot_group(user, pack) | ||||||
|     |> unwrap_ok_tuple() |     |> unwrap_ok_tuple() | ||||||
|   end |   end | ||||||
|  |  | ||||||
| @@ -91,7 +91,12 @@ defmodule Cannery.Fixtures do | |||||||
|   @spec container_fixture(attrs :: map(), User.t()) :: Container.t() |   @spec container_fixture(attrs :: map(), User.t()) :: Container.t() | ||||||
|   def container_fixture(attrs \\ %{}, %User{} = user) do |   def container_fixture(attrs \\ %{}, %User{} = user) do | ||||||
|     attrs |     attrs | ||||||
|     |> Enum.into(%{name: random_string(), type: "Ammo can"}) |     |> Enum.into(%{ | ||||||
|  |       name: random_string(), | ||||||
|  |       type: "Ammo can", | ||||||
|  |       location: random_string(), | ||||||
|  |       desc: random_string() | ||||||
|  |     }) | ||||||
|     |> Containers.create_container(user) |     |> Containers.create_container(user) | ||||||
|     |> unwrap_ok_tuple() |     |> unwrap_ok_tuple() | ||||||
|   end |   end | ||||||
| @@ -103,26 +108,59 @@ defmodule Cannery.Fixtures do | |||||||
|   @spec ammo_type_fixture(attrs :: map(), User.t()) :: AmmoType.t() |   @spec ammo_type_fixture(attrs :: map(), User.t()) :: AmmoType.t() | ||||||
|   def ammo_type_fixture(attrs \\ %{}, %User{} = user) do |   def ammo_type_fixture(attrs \\ %{}, %User{} = user) do | ||||||
|     attrs |     attrs | ||||||
|     |> Enum.into(%{name: random_string(), class: :rifle}) |     |> Enum.into(%{ | ||||||
|  |       name: random_string(), | ||||||
|  |       class: :rifle, | ||||||
|  |       desc: random_string(), | ||||||
|  |       bullet_type: random_string(), | ||||||
|  |       bullet_core: random_string(), | ||||||
|  |       cartridge: random_string(), | ||||||
|  |       caliber: random_string(), | ||||||
|  |       case_material: random_string(), | ||||||
|  |       jacket_type: random_string(), | ||||||
|  |       muzzle_velocity: 3, | ||||||
|  |       powder_type: random_string(), | ||||||
|  |       powder_grains_per_charge: 5, | ||||||
|  |       grains: 7, | ||||||
|  |       pressure: random_string(), | ||||||
|  |       primer_type: random_string(), | ||||||
|  |       firing_type: random_string(), | ||||||
|  |       wadding: random_string(), | ||||||
|  |       shot_type: random_string(), | ||||||
|  |       shot_material: random_string(), | ||||||
|  |       shot_size: random_string(), | ||||||
|  |       unfired_length: random_string(), | ||||||
|  |       brass_height: random_string(), | ||||||
|  |       chamber_size: random_string(), | ||||||
|  |       load_grains: 9, | ||||||
|  |       shot_charge_weight: random_string(), | ||||||
|  |       dram_equivalent: random_string(), | ||||||
|  |       tracer: false, | ||||||
|  |       incendiary: false, | ||||||
|  |       blank: false, | ||||||
|  |       corrosive: false, | ||||||
|  |       manufacturer: random_string(), | ||||||
|  |       upc: random_string() | ||||||
|  |     }) | ||||||
|     |> Ammo.create_ammo_type(user) |     |> Ammo.create_ammo_type(user) | ||||||
|     |> unwrap_ok_tuple() |     |> unwrap_ok_tuple() | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   @doc """ |   @doc """ | ||||||
|   Generate a AmmoGroup |   Generate a Pack | ||||||
|   """ |   """ | ||||||
|   @spec ammo_group_fixture(AmmoType.t(), Container.t(), User.t()) :: |   @spec pack_fixture(AmmoType.t(), Container.t(), User.t()) :: | ||||||
|           {count :: non_neg_integer(), [AmmoGroup.t()]} |           {count :: non_neg_integer(), [Pack.t()]} | ||||||
|   @spec ammo_group_fixture(attrs :: map(), AmmoType.t(), Container.t(), User.t()) :: |   @spec pack_fixture(attrs :: map(), AmmoType.t(), Container.t(), User.t()) :: | ||||||
|           {count :: non_neg_integer(), [AmmoGroup.t()]} |           {count :: non_neg_integer(), [Pack.t()]} | ||||||
|   @spec ammo_group_fixture( |   @spec pack_fixture( | ||||||
|           attrs :: map(), |           attrs :: map(), | ||||||
|           multiplier :: non_neg_integer(), |           multiplier :: non_neg_integer(), | ||||||
|           AmmoType.t(), |           AmmoType.t(), | ||||||
|           Container.t(), |           Container.t(), | ||||||
|           User.t() |           User.t() | ||||||
|         ) :: {count :: non_neg_integer(), [AmmoGroup.t()]} |         ) :: {count :: non_neg_integer(), [Pack.t()]} | ||||||
|   def ammo_group_fixture( |   def pack_fixture( | ||||||
|         attrs \\ %{}, |         attrs \\ %{}, | ||||||
|         multiplier \\ 1, |         multiplier \\ 1, | ||||||
|         %AmmoType{id: ammo_type_id}, |         %AmmoType{id: ammo_type_id}, | ||||||
| @@ -136,7 +174,7 @@ defmodule Cannery.Fixtures do | |||||||
|       count: 20, |       count: 20, | ||||||
|       purchased_on: Date.utc_today() |       purchased_on: Date.utc_today() | ||||||
|     }) |     }) | ||||||
|     |> Ammo.create_ammo_groups(multiplier, user) |     |> Ammo.create_packs(multiplier, user) | ||||||
|     |> unwrap_ok_tuple() |     |> unwrap_ok_tuple() | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user