forked from shibao/cannery
		
	replace ammo added on with purchased on
This commit is contained in:
		@@ -38,6 +38,14 @@
 | 
			
		||||
    ) %>
 | 
			
		||||
    <%= error_tag(f, :price_paid, "col-span-3 text-center") %>
 | 
			
		||||
 | 
			
		||||
    <%= label(f, :purchased_on, gettext("Purchased on"), class: "title text-lg text-primary-600") %>
 | 
			
		||||
    <%= date_input(f, :purchased_on,
 | 
			
		||||
      class: "input input-primary col-span-2",
 | 
			
		||||
      phx_update: "ignore",
 | 
			
		||||
      value: @changeset |> Changeset.get_field(:purchased_on) || Date.utc_today()
 | 
			
		||||
    ) %>
 | 
			
		||||
    <%= error_tag(f, :purchased_on, "col-span-3 text-center") %>
 | 
			
		||||
 | 
			
		||||
    <%= label(f, :notes, gettext("Notes"), class: "title text-lg text-primary-600") %>
 | 
			
		||||
    <%= textarea(f, :notes,
 | 
			
		||||
      class: "text-center col-span-2 input input-primary",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,6 @@
 | 
			
		||||
      id="ammo-group-index-table"
 | 
			
		||||
      ammo_groups={@ammo_groups}
 | 
			
		||||
      current_user={@current_user}
 | 
			
		||||
      show_used={@show_used}
 | 
			
		||||
    >
 | 
			
		||||
      <:ammo_type :let={%{name: ammo_type_name} = ammo_type}>
 | 
			
		||||
        <.link navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)} class="link">
 | 
			
		||||
 
 | 
			
		||||
@@ -27,8 +27,8 @@
 | 
			
		||||
    <% end %>
 | 
			
		||||
 | 
			
		||||
    <span class="rounded-lg title text-lg">
 | 
			
		||||
      <%= gettext("Added on:") %>
 | 
			
		||||
      <%= @ammo_group.inserted_at |> display_datetime() %>
 | 
			
		||||
      <%= gettext("Purchased on:") %>
 | 
			
		||||
      <%= @ammo_group.purchased_on |> display_date() %>
 | 
			
		||||
    </span>
 | 
			
		||||
 | 
			
		||||
    <%= if @ammo_group.price_paid do %>
 | 
			
		||||
 
 | 
			
		||||
@@ -173,7 +173,6 @@
 | 
			
		||||
          id="ammo-type-show-table"
 | 
			
		||||
          ammo_groups={@ammo_groups}
 | 
			
		||||
          current_user={@current_user}
 | 
			
		||||
          show_used={@show_used}
 | 
			
		||||
        >
 | 
			
		||||
          <:container :let={%{container: %{name: container_name} = container}}>
 | 
			
		||||
            <.link
 | 
			
		||||
 
 | 
			
		||||
@@ -125,7 +125,6 @@
 | 
			
		||||
          id="ammo-type-show-table"
 | 
			
		||||
          ammo_groups={@ammo_groups}
 | 
			
		||||
          current_user={@current_user}
 | 
			
		||||
          show_used={@show_used}
 | 
			
		||||
        >
 | 
			
		||||
          <:ammo_type :let={%{name: ammo_type_name} = ammo_type}>
 | 
			
		||||
            <.link navigate={Routes.ammo_type_show_path(Endpoint, :show, ammo_type)} class="link">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user