Sha256: 765eb8186e1756c4b4a5eae9b6cf2a3737675ea98259fcf59a727b84d292f4ec

Contents?: true

Size: 611 Bytes

Versions: 5

Compression:

Stored size: 611 Bytes

Contents

.page-header
  %h1= <%= @class_name.constantize %>.model_name.human

= actions do
  = create_link(new_admin_<%= @instance_name %>_path)

= table_for(<%= @class_name.constantize %>).content(@<%= @collection_name %>) do |t|
  <% @table_columns.each do |column| %><% if @reflections[column[0]] %>- t.column :<%= @reflections[column[0]].name %>, format: ->(c) { c.try(:<%= cms_select_name(@reflections[column[0]].klass) %>) }<% else %>- t.column :<%= column[0]%><% end %>
  <% end %>- t.edit
  - t.delete

= admin_paginate @<%= @collection_name %>

= actions do
  = create_link(new_admin_<%= @instance_name %>_path)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb