Skip to content

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

Limit the width of duration input fields

Aaron Contreras98b00abcd9fb
diff --git a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb
index e0813489c5e..aab35422d28 100644
--- a/app/views/admin/settings/working_days_and_hours_settings/show.html.erb
+++ b/app/views/admin/settings/working_days_and_hours_settings/show.html.erb
@@ -41,13 +41,15 @@ See COPYRIGHT and LICENSE files for more details.
<fieldset class="form--fieldset">
<div class="form--field">
<%= setting_text_field :hours_per_day,
- type: :number %>
+ type: :number,
+ container_class: "-wide" %>
<div class="form--field-instructions"><%= t("setting_hours_per_day_explanation") %></div>
</div>
<div class="form--field">
<%= setting_text_field :days_per_week,
type: :number,
+ container_class: "-wide",
data: { admin__working_days_and_hours_target: 'daysPerWeekInput',
action: 'blur->admin--working-days-and-hours#recalculateDaysPerMonth' } %>
<div class="form--field-instructions"><%= t("setting_days_per_week_explanation") %></div>
@@ -56,6 +58,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_text_field :days_per_month,
type: :number,
+ container_class: "-wide",
data: { admin__working_days_and_hours_target: 'daysPerMonthInput',
action: 'blur->admin--working-days-and-hours#recalculateDaysPerWeek' } %>
<div class="form--field-instructions"><%= t("setting_days_per_month_explanation") %></div>