Sha256: df8cb484e13d20f2eb9474b03385e2539755570a48051f37c4cec41832abad12

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 Bytes

Contents

<%%
  # initialize row
  row = cell(:elements, :row).new

  # initialize block
  block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12')

  # initialize index
  index = cell(:widgets, :index).new(
    records: @widget_index_<%= @plural_name %>,
    index_url: lato_<%= @plural_name %>_path,
    head: ['Id', 'Name'],
    columns: [:id, :name],
    search: true,
    pagination: true,
    actions: {
      edit: true,
      new: true,
      delete: true,
      show: true,
    }
  )
%>

<!-- MAIN CONTAINER -->
<%%=raw row.open %>

  <%%=raw block.open %>

    <%%=raw index %>

  <%%=raw block.close %>

<%%=raw row.close %>
<!-- / MAIN CONTAINER -->

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lato_core-2.2.2 lib/generators/lato_core/templates/crud_views/app/views/lato/crud/index.html.erb
lato_core-2.2.0 lib/generators/lato_core/templates/crud_views/app/views/lato/crud/index.html.erb
lato_core-2.1.4 lib/generators/lato_core/templates/crud_views/app/views/lato/crud/index.html.erb
lato_core-2.1.3 lib/generators/lato_core/templates/crud_views/app/views/lato/crud/index.html.erb