parent
d740f5f6e0
commit
753843fd33
@ -1,5 +1,7 @@ |
||||
|
||||
class Widget::Controls::Clear < Widget::Base |
||||
def render |
||||
link_to content_tag(:span, content_tag(:em, l(:"button_clear"), :class => "button-icon icon-clear")), '#', :id => 'query-link-clear', :class => 'button secondary' |
||||
write link_to(content_tag(:span, content_tag(:em, l(:"button_clear"), :class => "button-icon icon-clear")), |
||||
'#', :id => 'query-link-clear', :class => 'button secondary') |
||||
end |
||||
end |
||||
|
@ -1,11 +1,11 @@ |
||||
class Widget::Filters::RemoveButton < Widget::Filters::Base |
||||
def render |
||||
content_tag :td, :width => "25px" do |
||||
write( content_tag :td, :width => "25px" do |
||||
hidden_field = tag :input, :id => "rm_#{filter_class.underscore_name}", |
||||
:name => "fields[]", :type => "hidden", :value => "" |
||||
button = tag :input, :type => "button", :value => "", |
||||
:class => "icon filter_rem icon-filter-rem" |
||||
content_tag(:div, hidden_field + button, :id => "rm_box_#{filter_class.underscore_name}", :class => "remove-box") |
||||
end |
||||
end) |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue