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

23 lines
500 B
Plaintext

<h2><%= @title %></h2>
<%= f = form_for @changeset, "#",
id: "tag-form",
phx_target: @myself,
phx_change: "validate",
phx_submit: "save" %>
<%= label f, :name %>
<%= text_input f, :name %>
<%= error_tag f, :name %>
<%= label f, :"bg-color" %>
<%= text_input f, :"bg-color" %>
<%= error_tag f, :"bg-color" %>
<%= label f, :"text-color" %>
<%= text_input f, :"text-color" %>
<%= error_tag f, :"text-color" %>
<%= submit "Save", phx_disable_with: "Saving..." %>
</form>