From 6015304e3a021e3bcd7e7799b409621ecd47004a Mon Sep 17 00:00:00 2001 From: Klaus Zanders Date: Thu, 5 Dec 2024 14:00:49 +0100 Subject: [PATCH] more form updates --- modules/costs/app/components/time_entries/time_entry_form.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/costs/app/components/time_entries/time_entry_form.rb b/modules/costs/app/components/time_entries/time_entry_form.rb index c615ac8f57bb..fb1e3ebfed19 100644 --- a/modules/costs/app/components/time_entries/time_entry_form.rb +++ b/modules/costs/app/components/time_entries/time_entry_form.rb @@ -53,13 +53,13 @@ class TimeEntryForm < ApplicationForm } end - f.select_list name: :activity_id, label: TimeEntry.human_attribute_name(:activity) do |list| + f.select_list name: :activity_id, label: TimeEntry.human_attribute_name(:activity), include_blank: true do |list| activities.each do |activity| list.option(value: activity.id, label: activity.name) end end - f.text_field name: :comments, label: "Comments" + f.text_area name: :comments, label: "Comments" render_custom_fields(form: f) end