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

27 lines
842 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" %>
2021-09-10 00:41:15 -04:00
<%= label f, :name, class: "title text-lg text-primary-500" %>
<%= text_input f, :name, class: "input input-primary" %>
2021-09-02 23:31:14 -04:00
<%= error_tag f, :name %>
2021-09-10 00:41:15 -04:00
<%= label f, :desc, class: "title text-lg text-primary-500" %>
<%= text_input f, :desc, class: "input input-primary" %>
2021-09-02 23:31:14 -04:00
<%= error_tag f, :desc %>
2021-09-10 00:41:15 -04:00
<%= label f, :type, class: "title text-lg text-primary-500" %>
<%= text_input f, :type, class: "input input-primary" %>
2021-09-02 23:31:14 -04:00
<%= error_tag f, :type %>
2021-09-10 00:41:15 -04:00
<%= label f, :location, class: "title text-lg text-primary-500" %>
<%= text_input f, :location, class: "input input-primary" %>
2021-09-02 23:31:14 -04:00
<%= error_tag f, :location %>
<%= submit "Save", phx_disable_with: "Saving..." %>
</form>