Sha256: 7684f34ee8df1babb773b2d3944e0a3af1eef1cba667f1397ce0c7792a84ed97

Contents?: true

Size: 974 Bytes

Versions: 16

Compression:

Stored size: 974 Bytes

Contents

%h1= t("cms.index_title", plural_name: resource_class.model_name.human(count: 2))

.row-fluid.actions
  .pull-right.padded
    = link_to new_resource_path, :class => 'btn btn-primary' do
      %i.icon-plus-sign.icon-white
      = t("cms.#{resource_collection_name}.new", plural_name: resource_class.model_name.human, default: t('cms.default.new'))

%table.table.table-bordered.table-striped
  %thead
    %tr
      - collection.index_attributes.each do |column_name|
        %th= collection.human_attribute_name column_name
      %th
      %th

  %tbody
    - collection.each do |item|
      %tr
        - collection.index_attributes.each do |column_name|
          %td= item.send(column_name)
        %td= link_to t("cms.edit"), edit_resource_path(item)
        %td
          =link_to resource_path(item), method: :delete, data: { confirm: t('cms.are_you_sure') }, class: 'btn btn-small btn-danger' do
            %i.icon-trash.icon-white
            =t('cms.destroy')

%br

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.7 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.10 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.9 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.8 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.7 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.6 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.5 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.4 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.3 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.2 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.1 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.6.0 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.5.2 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.5.1 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml
qbrick-2.5.0 lib/templates/qbrick/custom_model_generator/inherited_views/base/index.html.haml