diff options
Diffstat (limited to 'app/views/queries/_form.rhtml')
-rw-r--r-- | app/views/queries/_form.rhtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/queries/_form.rhtml b/app/views/queries/_form.rhtml index 7c227a9f6..28faba177 100644 --- a/app/views/queries/_form.rhtml +++ b/app/views/queries/_form.rhtml @@ -19,6 +19,9 @@ <p><label for="query_default_columns"><%=l(:label_default_columns)%></label> <%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %></p> + +<p><label for="query_group_by"><%= l(:field_group_by) %></label> +<%= select 'query', 'group_by', @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]}, :include_blank => true %></p> </div> <fieldset><legend><%= l(:label_filter_plural) %></legend> |