Reworking remove buttons of filters using hidden field for data storage and siemens styles for layout.
parent
fae6123a63
commit
eff4e74887
After Width: | Height: | Size: 69 B |
@ -1,9 +1,11 @@ |
||||
class Widget::Filters::RemoveButton < Widget::Filters::Base |
||||
def render |
||||
content_tag :td, :width => "25px" do |
||||
tag :input, :id => "rm_#{filter_class.underscore_name}", |
||||
:name => "fields[]", :type => "button", :value => "", |
||||
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 |
||||
|
Loading…
Reference in new issue