Sha256: b18666901f6250a8a7f261cce2b48f68bf2e5f4a985f80289f97606b3696c52e
Contents?: true
Size: 1.83 KB
Versions: 10
Compression:
Stored size: 1.83 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 %> <%= render_active_element_hook "#{controller_path}/before_index", locals: { collection: collection } %> <% if nested_for.present? %> <%= active_element.component.page_section_title( nested_for.map do |nested_for_record| ActiveElement::Components::Util::DefaultDisplayValue.new(object: nested_for_record).value end.join(', ') ) %> <% 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?, nested_for: nested_for, collection: collection, fields: active_element.state.listable_fields %> <% end %> <%= render_active_element_hook "#{controller_path}/after_index", locals: { collection: collection } %>
Version data entries
10 entries across 10 versions & 1 rubygems