forked from shibao/cannery
style form components
This commit is contained in:
parent
0bf93b4945
commit
e9ad552f2f
@ -6,16 +6,16 @@
|
||||
phx_change: "validate",
|
||||
phx_submit: "save" %>
|
||||
|
||||
<%= label f, :count %>
|
||||
<%= label f, :count, class: "title text-lg text-primary-500" %>
|
||||
<%= number_input f, :count %>
|
||||
<%= error_tag f, :count %>
|
||||
|
||||
<%= label f, :price_paid %>
|
||||
<%= label f, :price_paid, class: "title text-lg text-primary-500" %>
|
||||
<%= number_input f, :price_paid, step: "any" %>
|
||||
<%= error_tag f, :price_paid %>
|
||||
|
||||
<%= label f, :notes %>
|
||||
<%= textarea f, :notes %>
|
||||
<%= label f, :notes, class: "title text-lg text-primary-500" %>
|
||||
<%= textarea f, :notes, class: "input" %>
|
||||
<%= error_tag f, :notes %>
|
||||
|
||||
<%= submit "Save", phx_disable_with: "Saving..." %>
|
||||
|
@ -6,28 +6,28 @@
|
||||
phx_change: "validate",
|
||||
phx_submit: "save" %>
|
||||
|
||||
<%= label f, :name %>
|
||||
<%= text_input f, :name %>
|
||||
<%= label f, :name, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :name, class: "input input-primary" %>
|
||||
<%= error_tag f, :name %>
|
||||
|
||||
<%= label f, :desc %>
|
||||
<%= text_input f, :desc %>
|
||||
<%= label f, :desc, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :desc, class: "input input-primary" %>
|
||||
<%= error_tag f, :desc %>
|
||||
|
||||
<%= label f, :case_material %>
|
||||
<%= text_input f, :case_material %>
|
||||
<%= label f, :case_material, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :case_material, class: "input input-primary" %>
|
||||
<%= error_tag f, :case_material %>
|
||||
|
||||
<%= label f, :bullet_type %>
|
||||
<%= text_input f, :bullet_type %>
|
||||
<%= label f, :bullet_type, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :bullet_type, class: "input input-primary" %>
|
||||
<%= error_tag f, :bullet_type %>
|
||||
|
||||
<%= label f, :weight %>
|
||||
<%= label f, :weight, class: "title text-lg text-primary-500" %>
|
||||
<%= number_input f, :weight, step: "any" %>
|
||||
<%= error_tag f, :weight %>
|
||||
|
||||
<%= label f, :manufacturer %>
|
||||
<%= text_input f, :manufacturer %>
|
||||
<%= label f, :manufacturer, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :manufacturer, class: "input input-primary" %>
|
||||
<%= error_tag f, :manufacturer %>
|
||||
|
||||
<%= submit "Save", phx_disable_with: "Saving..." %>
|
||||
|
@ -6,20 +6,20 @@
|
||||
phx_change: "validate",
|
||||
phx_submit: "save" %>
|
||||
|
||||
<%= label f, :name %>
|
||||
<%= text_input f, :name %>
|
||||
<%= label f, :name, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :name, class: "input input-primary" %>
|
||||
<%= error_tag f, :name %>
|
||||
|
||||
<%= label f, :desc %>
|
||||
<%= text_input f, :desc %>
|
||||
<%= label f, :desc, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :desc, class: "input input-primary" %>
|
||||
<%= error_tag f, :desc %>
|
||||
|
||||
<%= label f, :type %>
|
||||
<%= text_input f, :type %>
|
||||
<%= label f, :type, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :type, class: "input input-primary" %>
|
||||
<%= error_tag f, :type %>
|
||||
|
||||
<%= label f, :location %>
|
||||
<%= text_input f, :location %>
|
||||
<%= label f, :location, class: "title text-lg text-primary-500" %>
|
||||
<%= text_input f, :location, class: "input input-primary" %>
|
||||
<%= error_tag f, :location %>
|
||||
|
||||
<%= submit "Save", phx_disable_with: "Saving..." %>
|
||||
|
Loading…
Reference in New Issue
Block a user