OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
use the proper date picker
Klaus Zandersbc5ca9f077a5
diff --git a/modules/costs/app/components/time_entries/time_entry_form.rb b/modules/costs/app/components/time_entries/time_entry_form.rbindex f5b679fa047..89fd91565c4 100644--- a/modules/costs/app/components/time_entries/time_entry_form.rb+++ b/modules/costs/app/components/time_entries/time_entry_form.rb@@ -23,12 +23,11 @@ module TimeEntries})- # TODO: Repalce with single date picker from- # https://github.com/opf/openproject/pull/17223/commits/db765ac3862ded78139e6b8827e33cf2b8b3bce8- f.text_field name: :spent_on,- type: "date",- required: true,- label: TimeEntry.human_attribute_name(:spent_on)+ f.single_date_picker name: :spent_on,+ type: "date",+ required: true,+ datepicker_options: { inDialog: true },+ label: TimeEntry.human_attribute_name(:spent_on)f.group(layout: :horizontal) do |g|# TODO: Add a time picker based on the date picker linked above@@ -48,17 +47,15 @@ module TimeEntrieslabel: TimeEntry.human_attribute_name(:hours),data: { "time-entry-target" => "hoursInput" }- if show_work_package_field?- f.work_package_autocompleter name: :work_package_id,- label: TimeEntry.human_attribute_name(:work_package),- autocomplete_options: {- focusDirectly: false,- append_to: "#time-entry-dialog",- filters: [- { name: "project_id", operator: "=", values: [model.project_id] }- ]- }- end+ f.work_package_autocompleter name: :work_package_id,+ label: TimeEntry.human_attribute_name(:work_package),+ autocomplete_options: {+ focusDirectly: false,+ append_to: "#time-entry-dialog",+ filters: [+ { name: "project_id", operator: "=", values: [model.project_id] }+ ]+ }f.select_list name: :activity_id, label: TimeEntry.human_attribute_name(:activity), include_blank: true do |list|activities.each do |activity|@@ -84,10 +81,6 @@ module TimeEntries@custom_fields ||= model.available_custom_fieldsend- def show_work_package_field?- work_package.blank?- end-def show_user_field?# Only allow setting a different user, when the user has the# permission to log time for others in the project