Change structure according to LSG

pull/4034/head
Henriette Dinger 9 years ago committed by Magdalena Kafka
parent 133ee0664a
commit afe0ee4d4d
  1. 6
      app/views/types/_form.html.erb

@ -68,13 +68,17 @@ See doc/COPYRIGHT.rdoc for more details.
<% if @projects.any? %>
<fieldset class="form--fieldset" id="type_project_ids">
<legend class="form--fieldset-legend"><%= l(:label_project_plural) %></legend>
<div class="form--fieldset-control">
<span class="form--fieldset-control-container">
(<%= 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, controller.type.projects.include?(p), id: nil) +
' ' + h(p), class: 'form--label-with-check-box')
end %>
<%= hidden_field_tag('type[project_ids][]', '', id: nil) %>
<div><%= check_all_links 'type_project_ids' %></div>
</fieldset>
<% end %>
</div>

Loading…
Cancel
Save