Fixed markup in wp filter section

pull/900/head
Christian Ratz 11 years ago
parent 46e93fe219
commit 499543fcb8
  1. 2
      app/assets/stylesheets/content/_expandable_group_content.css.sass
  2. 26
      app/views/work_packages/index.html.erb

@ -32,6 +32,8 @@ fieldset
margin:
left: -20px
right: 25px
.horizontal_margin
margin: 5px 0
p
margin-bottom: -10px

@ -76,23 +76,17 @@ See doc/COPYRIGHT.rdoc for more details.
<fieldset id="column_options" class="header_collapsible collapsible collapsed">
<legend title="<%=l(:description_option_toggle)%>", onclick="toggleFieldset(this);"><a href="javascript:"><%= l(:label_options) %></a></legend>
<div style="display: none;" class="tabular">
<p>
<div><%= label_tag :available_columns, Query.human_attribute_name(:column_names), class: "header" %></div>
<div>
<%= render :partial => 'queries/columns', :locals => {:query => query} %>
</div>
</p>
<p>
<div><label for='group_by' class='header'><%= Query.human_attribute_name(:group_by) %></label></div>
<div>
<%= select_tag('group_by', options_for_select([[]] + query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, query.group_by)) %>
</div>
</p>
<div class="horizontal_margin"><%= label_tag :available_columns, Query.human_attribute_name(:column_names), class: "header" %></div>
<div class="horizontal_margin">
<%= render :partial => 'queries/columns', :locals => {:query => query} %>
</div>
<div class="horizontal_margin"><label for='group_by' class='header'><%= Query.human_attribute_name(:group_by) %></label></div>
<div class="horizontal_margin">
<%= select_tag('group_by', options_for_select([[]] + query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, query.group_by)) %>
</div>
<% if query.any_summable_columns? %>
<p>
<div><%= label_tag :display_sums, Query.human_attribute_name(:display_sums), class: "header" %></div>
<div><%= check_box_tag :display_sums, 1, query.display_sums? %></div>
</p>
<div class="horizontal_margin"><%= label_tag :display_sums, Query.human_attribute_name(:display_sums), class: "header" %></div>
<div class="horizontal_margin"><%= check_box_tag :display_sums, 1, query.display_sums? %></div>
<% end %>
<%= call_hook(:view_issue_query_form_options_bottom, :query => query) %>
</div>

Loading…
Cancel
Save