27 lines
558 B
Plaintext
27 lines
558 B
Plaintext
|
<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>
|