Sha256: e61c6d66252cc2d9d22656e6f8a769b88a2ccac8c5f5b4e142d9087a7802a755

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

<% if active_element.state.searchable_fields.present? %>
  <%= active_element.component.form title: 'Search Filters',
                                    submit: 'Search',
                                    modal: true,
                                    search: true,
                                    item: search_filters,
                                    fields: active_element.state.searchable_fields %>
<% end %>

<% if active_element.state.search_required && search_filters.compact_blank.blank? %>
  <% if active_element.state.creatable? %>
    <%= active_element.component.new_button(collection.model&.new, float: 'end', class: 'mb-3') %>
  <% end %>
  <%= active_element.component.page_section_title active_element.t('search_required.title') %>
  <%= active_element.component.page_description active_element.t('search_required.description') %>
<% else %>
  <%= active_element.component.table new: active_element.state.creatable?,
                                     show: active_element.state.viewable?,
                                     edit: active_element.state.editable?,
                                     destroy: active_element.state.deletable?,
                                     collection: collection,
                                     fields: active_element.state.listable_fields %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_element-0.0.17 app/views/active_element/default_views/index.html.erb
active_element-0.0.16 app/views/active_element/default_views/index.html.erb
active_element-0.0.15 app/views/active_element/default_views/index.html.erb