app/views/itsf/backend/resource/base/index.html.haml in itsf_backend-4.2.3 vs app/views/itsf/backend/resource/base/index.html.haml in itsf_backend-5.0.0.pre
- old
+ new
@@ -15,10 +15,13 @@
- rescue ActionController::UrlGenerationError
#collection-pages-naviation.bottom-margin-1
= render 'collection_pages_navigation', collection: @collection
+#before-index-table.bottom-margin-1
+ = render 'before_index_table', collection: @collection
+
.panel.panel-default.panel-with-actions
.panel-heading
.pull-right.form-inline
- if features?(:kaminari)
= select_tag(:per_page, options_for_select({ '1': 1, '5': 5, '10': 10, '15': 15, '20': 20, '50': 50, '100': 100, t('.all') => 'all' }, (params[:per_page] || Itsf::Backend::Configuration.default_pagination_size)), 'data-select-pagination-size': true, id: 'pagination-size', class: 'form-control input-xs')
@@ -36,14 +39,14 @@
- if f.is_a?(SimpleForm::FormBuilder)
= f.button :submit, t('ransack.search'), class: 'btn btn-success'
= link_to t('ransack.reset'), {},class: 'btn btn-danger'
- else
= f.submit
-
+
.table-responsive
- table_classes = %w(table table-responsive table-condensed table-striped table-hover)
- table_classes << 'dragtable' if features?(:dragtable)
- = render_collection(@collection, resource_class, as: :bootstrap_table, table_html_options: { class: table_classes.join(" ") }) do |table|
+ = collection_table(collection: @collection, resource_class: resource_class) do |table|
= render 'table', table: table
= render 'table_actions', table: table
.panel-footer
- if features?(:kaminari)
\ No newline at end of file