app.kluk.fr/app/views/day_logs/new.html.haml
Christophe Robillard 93b578c3cf create day_log
2026-03-20 19:08:10 +01:00

21 lines
422 B
Text

%h1 Nouveau journal
= 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),
include_blank: true
= f.submit