mberlanda/cheidelacoriera

View on GitHub
app/views/crud/datatable_index.html.haml

Summary

Maintainability
Test Coverage
- @title ||= ti(:title, models: models_label)

/- content_for(:tools, render('search')) if search_support?

- content_for(:actions, render('actions_index'))
.row
  .col-sm-12.features-box.wow.fadeInLeft
    .jumbotron
      = crud_datatable(model_name, *datatable_columns)

:javascript
  $(function(){
    initializeCrudTable(
      '#{url_for(controller: controller_name, action: :datatable_index)}',
      '##{model_name}-table',
      '.#{model_name}-index-buttons'
    )
  })