Sha256: cd9e07d6f6adf47c3ad0c380171e8a0098aeaf1b7252ac50ec9f45be7f05ddd6

Contents?: true

Size: 1017 Bytes

Versions: 21

Compression:

Stored size: 1017 Bytes

Contents

= manage_form_for @search, as: :f, method: :get, url: "#{resource_class.name.underscore.pluralize}", html: {id: 'search-form'} do |f|
  fieldset
    legend Filter
    - list_search_fields.each do |field|
      .row
        .columns.large-12
          - label_text = resource_class.human_attribute_name(field)
          - if resource_class.columns_hash[field.to_s].blank?
            label #{label_text}
            = f.search_field field.to_sym, placeholder: label_text
          - elsif resource_class.columns_hash[field.to_s].type == :datetime
            label #{label_text}
            = f.date_field field.to_sym, placeholder: label_text
          - elsif resource_class.columns_hash[field.to_s].type == :integer
            label #{label_text}
            = f.number_field field.to_sym, placeholder: label_text
          - else
            label #{label_text}
            = f.search_field field.to_sym, placeholder: label_text
    .row
      .columns.large-12
        = f.submit 'Search', class: 'button small'

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
manage-1.3.20 app/views/manage/resource/index/_filters.html.slim
manage-1.3.19 app/views/manage/resource/index/_filters.html.slim
manage-1.3.18 app/views/manage/resource/index/_filters.html.slim
manage-1.3.17 app/views/manage/resource/index/_filters.html.slim
manage-1.3.16 app/views/manage/resource/index/_filters.html.slim
manage-1.3.15 app/views/manage/resource/index/_filters.html.slim
manage-1.3.14 app/views/manage/resource/index/_filters.html.slim
manage-1.3.13 app/views/manage/resource/index/_filters.html.slim
manage-1.3.12 app/views/manage/resource/index/_filters.html.slim
manage-1.3.11 app/views/manage/resource/index/_filters.html.slim
manage-1.3.10 app/views/manage/resource/index/_filters.html.slim
manage-1.3.9 app/views/manage/resource/index/_filters.html.slim
manage-1.3.8 app/views/manage/resource/index/_filters.html.slim
manage-1.3.7 app/views/manage/resource/index/_filters.html.slim
manage-1.3.6 app/views/manage/resource/index/_filters.html.slim
manage-1.3.5 app/views/manage/resource/index/_filters.html.slim
manage-1.3.4 app/views/manage/resource/index/_filters.html.slim
manage-1.3.3 app/views/manage/resource/index/_filters.html.slim
manage-1.3.2 app/views/manage/resource/index/_filters.html.slim
manage-1.3.1 app/views/manage/resource/index/_filters.html.slim