20 lines
417 B
Text
20 lines
417 B
Text
= form_with model: day_log do |f|
|
|
- @day_log.errors.full_messages.each do |msg|
|
|
%p= msg
|
|
|
|
.field
|
|
= f.label :day
|
|
= f.date_field :day
|
|
|
|
.field
|
|
= f.label :info
|
|
= f.text_area :info
|
|
|
|
.field
|
|
= label_tag :mode_id, "Mode"
|
|
= select_tag "day_log[mode_id]",
|
|
options_from_collection_for_select(Current.user.modes, :id, :label, @mood&.mode_id),
|
|
include_blank: true
|
|
|
|
= f.submit
|
|
|