cannery/lib/cannery_web/live/ammo_group_live/form_component.html.leex
2021-09-10 00:41:15 -04:00

23 lines
643 B
Plaintext

<h2><%= @title %></h2>
<%= f = form_for @changeset, "#",
id: "ammo_group-form",
phx_target: @myself,
phx_change: "validate",
phx_submit: "save" %>
<%= label f, :count, class: "title text-lg text-primary-500" %>
<%= number_input f, :count %>
<%= error_tag f, :count %>
<%= label f, :price_paid, class: "title text-lg text-primary-500" %>
<%= number_input f, :price_paid, step: "any" %>
<%= error_tag f, :price_paid %>
<%= label f, :notes, class: "title text-lg text-primary-500" %>
<%= textarea f, :notes, class: "input" %>
<%= error_tag f, :notes %>
<%= submit "Save", phx_disable_with: "Saving..." %>
</form>