cannery/lib/cannery_web/live/container_live/form_component.html.leex

27 lines
558 B
Plaintext
Raw Normal View History

2021-09-02 23:31:14 -04:00
<h2><%= @title %></h2>
<%= f = form_for @changeset, "#",
id: "container-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, :type %>
<%= text_input f, :type %>
<%= error_tag f, :type %>
<%= label f, :location %>
<%= text_input f, :location %>
<%= error_tag f, :location %>
<%= submit "Save", phx_disable_with: "Saving..." %>
</form>