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

Correct HTML structure for correct layout (remove unnecessary div and add missing closing fieldset tag)

Henriette Dingerc76329f80784
diff --git a/app/views/types/form/_projects.html.erb b/app/views/types/form/_projects.html.erb
index 3d645c1aa00..4fae5972b58 100644
--- a/app/views/types/form/_projects.html.erb
+++ b/app/views/types/form/_projects.html.erb
@@ -31,23 +31,22 @@ See docs/COPYRIGHT.rdoc for more details.
<div class="grid-block wrap">
<div class="grid-content small-12 large-6">
<% if @projects.any? %>
- <fieldset class="form--fieldset" id="type_project_ids">
- <legend class="form--fieldset-legend" >
- <%= t('types.edit.enabled_projects') %>
- </legend>
- <div>
- <div class="form--toolbar">
- <span class="form--toolbar-item">
- (<%= check_all_links 'type_project_ids' %>)
- </span>
- </div>
- <%= project_nested_ul(@projects) do |p|
- content_tag('label',
- check_box_tag('type[project_ids][]', p.id, @type.projects.include?(p), id: nil) +
- ' ' + h(p), class: 'form--label-with-check-box')
- end %>
- <%= hidden_field_tag('type[project_ids][]', '', id: nil) %>
- </div>
+ <fieldset class="form--fieldset" id="type_project_ids">
+ <legend class="form--fieldset-legend" >
+ <%= t('types.edit.enabled_projects') %>
+ </legend>
+ <div class="form--toolbar">
+ <span class="form--toolbar-item">
+ (<%= check_all_links 'type_project_ids' %>)
+ </span>
+ </div>
+ <%= project_nested_ul(@projects) do |p|
+ content_tag('label',
+ check_box_tag('type[project_ids][]', p.id, @type.projects.include?(p), id: nil) +
+ ' ' + h(p), class: 'form--label-with-check-box')
+ end %>
+ <%= hidden_field_tag('type[project_ids][]', '', id: nil) %>
+ </fieldset>
<% end %>
</div>
</div>