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
finishing touches on time entry activity form
Klaus Zanders527da9f9ab20
diff --git a/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb b/modules/costs/app/components/admin/time_entry_activities/index_component.html.erbindex 6005483855a..a3692dd95a9 100644--- a/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb+++ b/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb@@ -3,35 +3,20 @@ component_wrapper doflex_layout(data: wrapper_data_attributes) do |flex|flex.with_row dorender(Primer::OpenProject::SubHeader.new) do |subheader|- subheader.with_filter_input(- name: "border-box-filter",- label: "Search time entry activity",- visually_hide_label: true,- placeholder: "Search time entry activity",- leading_visual: {- icon: :search,- size: :small- },- show_clear_button: false,- data: {- action: "input->projects--settings--border-box-filter#filterLists",- "projects--settings--border-box-filter-target": "filter"- }- )subheader.with_action_button(scheme: :primary,tag: :a,href: new_admin_time_entry_activity_path) do |button|button.with_leading_visual_icon(icon: :plus)- "Activity"+ I18n.t(:button_add_activity)endendendflex.with_row dorender(border_box_container(data: drop_target_config)) do |component|- component.with_header(font_weight: :bold) { "Time entry activities" }+ component.with_header(font_weight: :bold) { TimeEntryActivity.model_name.human(count: :other) }if time_entry_activities.empty?component.with_row dodiff --git a/modules/costs/app/controllers/admin/time_entry_activities_controller.rb b/modules/costs/app/controllers/admin/time_entry_activities_controller.rbindex 67fc5c227e8..c0c76b5a03d 100644--- a/modules/costs/app/controllers/admin/time_entry_activities_controller.rb+++ b/modules/costs/app/controllers/admin/time_entry_activities_controller.rb@@ -84,11 +84,11 @@ module Admindef moveif @time_entry_activity.update(move_params)render_success_flash_message_via_turbo_stream(- message: I18n.t(:notice_successful_update)+ message: I18n.t(:caption_activity_order_changed))elserender_error_flash_message_via_turbo_stream(- message: I18n.t(:error_type_could_not_be_saved)+ message: I18n.t(:error_activity_could_not_be_moved))enddiff --git a/modules/costs/app/views/admin/time_entry_activities/_form.html.erb b/modules/costs/app/views/admin/time_entry_activities/_form.html.erbdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/modules/costs/app/views/admin/time_entry_activities/edit.html.erb b/modules/costs/app/views/admin/time_entry_activities/edit.html.erbindex 3bd21a8fae9..36a5d748f67 100644--- a/modules/costs/app/views/admin/time_entry_activities/edit.html.erb+++ b/modules/costs/app/views/admin/time_entry_activities/edit.html.erb@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.[{ href: admin_index_path, text: t("label_administration") },{ href: admin_costs_settings_path, text: t(:project_module_costs) },- { href: admin_time_entry_activities_path, text: I18n.t(:enumeration_activities) },+ { href: admin_time_entry_activities_path, text: TimeEntryActivity.model_name.human(count: :other) },@time_entry_activity.name])diff --git a/modules/costs/app/views/admin/time_entry_activities/index.html.erb b/modules/costs/app/views/admin/time_entry_activities/index.html.erbindex 73ca6b23379..0e6c902e0d6 100644--- a/modules/costs/app/views/admin/time_entry_activities/index.html.erb+++ b/modules/costs/app/views/admin/time_entry_activities/index.html.erb@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.[{ href: admin_index_path, text: t("label_administration") },{ href: admin_costs_settings_path, text: t(:project_module_costs) },- I18n.t(:enumeration_activities)+ TimeEntryActivity.model_name.human(count: :other)])enddiff --git a/modules/costs/app/views/admin/time_entry_activities/new.html.erb b/modules/costs/app/views/admin/time_entry_activities/new.html.erbindex 382f7d41ec4..a8458e5cae4 100644--- a/modules/costs/app/views/admin/time_entry_activities/new.html.erb+++ b/modules/costs/app/views/admin/time_entry_activities/new.html.erb@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.[{ href: admin_index_path, text: t("label_administration") },{ href: admin_costs_settings_path, text: t(:project_module_costs) },- { href: admin_time_entry_activities_path, text: I18n.t(:enumeration_activities) },+ { href: admin_time_entry_activities_path, text: TimeEntryActivity.model_name.human(count: :other) },I18n.t(:label_new_time_entry_activity)])diff --git a/modules/costs/app/views/admin/time_entry_activities/reassign.html.erb b/modules/costs/app/views/admin/time_entry_activities/reassign.html.erbindex 1d5486f9bcc..e6512464997 100644--- a/modules/costs/app/views/admin/time_entry_activities/reassign.html.erb+++ b/modules/costs/app/views/admin/time_entry_activities/reassign.html.erb@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.[{ href: admin_index_path, text: t("label_administration") },{ href: admin_costs_settings_path, text: t(:project_module_costs) },- { href: admin_time_entry_activities_path, text: I18n.t(:enumeration_activities) },+ { href: admin_time_entry_activities_path, text: TimeEntryActivity.model_name.human(count: :other) },@time_entry_activity.name])diff --git a/modules/costs/config/locales/en.yml b/modules/costs/config/locales/en.ymlindex 2e871d4ff66..d9095d7181a 100644--- a/modules/costs/config/locales/en.yml+++ b/modules/costs/config/locales/en.yml@@ -69,6 +69,9 @@ en:cost_type:one: "Cost type"other: "Cost types"+ time_entry_activity:+ one: "Time tracking activity"+ other: "Time tracking activities"rate: "Rate"errors:models:@@ -90,6 +93,7 @@ en:button_add_rate: "Add rate"button_log_costs: "Log unit costs"button_log_time: "Log"+ button_add_activity: "Activity"caption_booked_on_project: "Booked on project"caption_default: "Default"@@ -103,9 +107,12 @@ en:caption_set_rate: "Set current rate"caption_show_locked: "Show locked types"caption_log_time_dialog: "Log time"+ caption_activity_order_changed: "Order successfully changed."description_date_for_new_rate: "Date for new rate"+ error_activity_could_not_be_moved: "Activity could not be moved."+group_by_others: "not in any group"label_between: "between"