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

[49328] Connect radio buttons and their labels

Christophe Bliard17b8322622fc
diff --git a/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb b/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
index 92cfe521bc0..6306e76ab6d 100644
--- a/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
+++ b/modules/storages/app/views/storages/project_settings/_project_folder_form.html.erb
@@ -76,7 +76,7 @@ See COPYRIGHT and LICENSE files for more details.
%>
<% end %>
<div class="form--field-container">
- <%= f.label :project_folder_mode, class: "form--label-with-radio-button" do %>
+ <%= f.label :project_folder_mode, value: 'inactive', class: "form--label-with-radio-button" do %>
<%= f.radio_button :project_folder_mode,
'inactive',
no_label: true,
@@ -90,7 +90,7 @@ See COPYRIGHT and LICENSE files for more details.
<% if @project_storage.automatic_management_possible? %>
<div class="form--field-container">
- <%= f.label :project_folder_mode, class: "form--label-with-radio-button" do %>
+ <%= f.label :project_folder_mode, value: 'automatic', class: "form--label-with-radio-button" do %>
<%= f.radio_button :project_folder_mode,
'automatic',
no_label: true,
@@ -104,7 +104,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<div class="form--field-container">
- <%= f.label :project_folder_mode, class: "form--label-with-radio-button" do %>
+ <%= f.label :project_folder_mode, value: 'manual', class: "form--label-with-radio-button" do %>
<%= f.radio_button :project_folder_mode,
'manual',
no_label: true,