Sha256: 53db65b3d43463fd92eb9ffc7cf67f1c7b1e16f199b448d65053b6cea3114a8f
Contents?: true
Size: 1.08 KB
Versions: 15
Compression:
Stored size: 1.08 KB
Contents
<% pl_table_name = plural_table_name.gsub('cms_','') -%> <% sg_table_name = singular_table_name.gsub('cms_','') -%> %h1= t('.title') .row-fluid.actions .pull-right.padded = link_to new_cms_<%= sg_table_name %>_path, :class => 'btn btn-primary' do %i.icon-plus-sign.icon-white #{ t('.new') } %table.table.table-bordered.table-striped %tr <% for attribute in attributes -%> %th= <%= class_name.gsub('Cms::','') %>.human_attribute_name :<%= attribute.name %> <% end -%> %th %th %th - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr <% for attribute in attributes -%> %td= <%= singular_table_name %>.<%= attribute.name %> <% end -%> %td= link_to t('cms.show'), <%= singular_table_name %>_path(<%= singular_table_name %>) %td= link_to t('cms.edit'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %td= link_to t('cms.destroy'), <%= singular_table_name %>_path(<%= singular_table_name %>), <%= key_value :method, ":delete" %>, <%= key_value :data, "{ #{key_value :confirm, "t('cms.are_you_sure')"} }" %> %br
Version data entries
15 entries across 15 versions & 1 rubygems