Sha256: 8dbcb5ce54a3da082d5fa96922889f8f56ec8385f4e54c6bc7d59d75e0a222e7
Contents?: true
Size: 704 Bytes
Versions: 30
Compression:
Stored size: 704 Bytes
Contents
module Dorsale module FiltersHelper def filter_submit_button(options = {}) options[:class] ||= "btn submit filter-submit" options[:type] ||= "submit" text = options.delete(:text) || t("actions.filter") icon = options.delete(:icon) || "filter" content_tag(:button, options) do icon(icon) + " " + text end end def filter_reset_button(options = {}) options[:class] ||= "btn reset filter-reset" options[:type] ||= "submit" text = options.delete(:text) || t("actions.reset") icon = options.delete(:icon) || "rotate-left" content_tag(:button, options) do icon(icon) + " " + text end end end end
Version data entries
30 entries across 30 versions & 1 rubygems