OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/widget/settings.rb

26 lines
989 B

class Widget::Settings < Widget::Base
def render
form_tag("#", {:id => 'query_form', :method => :post}) do
content_tag :div, :id => "query_form_content" do
fieldsets = render_widget Widget::Settings::Fieldset, @query, { :type => "filter" } do
render_widget Widget::Filters, @query
end
fieldsets += render_widget Widget::Settings::Fieldset, @query, { :type => "group_by" } do
render_widget Widget::GroupBys, @query
end
controls = content_tag :div, :class => "buttons form_controls" do
widgets = render_widget(Widget::Controls::Apply, @query)
render_widget(Widget::Controls::Save, @query, :to => widgets)
render_widget(Widget::Controls::SaveAs, @query, :to => widgets)
render_widget(Widget::Controls::Clear, @query, :to => widgets)
render_widget(Widget::Controls::Delete, @query, :to => widgets)
end
fieldsets + controls
end
end
end
end