Sha256: dcd50a874c5f61ff8718256e1c3f11901f728ec2faea6dc15a23ec9ba7e4388a

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

.page-header
  %h1= resource_model.model_name.human

= actions do
  = create_link

= table_for(resource_model).content(resources) 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 resources

= actions do
  = create_link

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coalla-cms-0.7.0.0 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb