Sha256: 7230d7c205fd4f025f416e44ac0494ea31f814794a13837215348dcf73e37936
Contents?: true
Size: 988 Bytes
Versions: 44
Compression:
Stored size: 988 Bytes
Contents
module Admin::Books class IndexBuilder < Releaf::Builders::IndexBuilder def extra_search_content active_search_field + publishing_date_search_fields end def active_search_field search_field :only_active do [ check_box_tag(:only_active, 'true', params['only_active'].present?), label_tag(:only_active, t("Only active")) ] end end def publishing_date_search_fields search_field :published_between do [ tag(:label, t('Published between'), for: "search_published_since" ), tag(:input, "", name: "published_since", type: "date", class: "text date-picker", value: params[:published_since], id: "search_published_since"), tag(:label, t('and'), for: "search_published_up_to" ), tag(:input, "", name: "published_up_to", type: "date", class: "text date-picker", value: params[:published_up_to], id: "search_published_up_to") ] end end end end
Version data entries
44 entries across 44 versions & 1 rubygems