35 lines
803 B
Plaintext
35 lines
803 B
Plaintext
<h2><%= @title %></h2>
|
|
|
|
<%= f = form_for @changeset, "#",
|
|
id: "ammo_type-form",
|
|
phx_target: @myself,
|
|
phx_change: "validate",
|
|
phx_submit: "save" %>
|
|
|
|
<%= label f, :name %>
|
|
<%= text_input f, :name %>
|
|
<%= error_tag f, :name %>
|
|
|
|
<%= label f, :desc %>
|
|
<%= text_input f, :desc %>
|
|
<%= error_tag f, :desc %>
|
|
|
|
<%= label f, :case_material %>
|
|
<%= text_input f, :case_material %>
|
|
<%= error_tag f, :case_material %>
|
|
|
|
<%= label f, :bullet_type %>
|
|
<%= text_input f, :bullet_type %>
|
|
<%= error_tag f, :bullet_type %>
|
|
|
|
<%= label f, :weight %>
|
|
<%= number_input f, :weight, step: "any" %>
|
|
<%= error_tag f, :weight %>
|
|
|
|
<%= label f, :manufacturer %>
|
|
<%= text_input f, :manufacturer %>
|
|
<%= error_tag f, :manufacturer %>
|
|
|
|
<%= submit "Save", phx_disable_with: "Saving..." %>
|
|
</form>
|