Sha256: d2671e9d30b6196fe131c01060f3162714009d42e60333be4a9b5f3fadcba66f
Contents?: true
Size: 1008 Bytes
Versions: 12
Compression:
Stored size: 1008 Bytes
Contents
.page-header = link_to 'New <%= class_name.titleize %>', new_admin_<%= file_name %>_path, :class => 'btn btn-default pull-right' %h2= '<%= class_name.pluralize.titleize %>' = paginate @<%= file_name.pluralize %>, :theme => 'comfy' %table.table.table-hover.table-bordered %tr <%- model_attrs.each_with_index do |attr, index| -%> %th<%= '.main' if index == 0 %> <%= attr.name.titleize %> <%- end -%> %th - @<%= file_name.pluralize %>.each do |<%= file_name %>| %tr <%- model_attrs.each_with_index do |attr, index| -%> %td<%= '.main' if index == 0 %>= <%= file_name%>.<%= attr.name %> <%- end -%> %td .btn-group.btn-group-sm = link_to 'Edit', edit_admin_<%= file_name %>_path(<%= file_name %>), :class => 'btn btn-default' = link_to 'Delete', admin_<%= file_name %>_path(<%= file_name %>), :method => :delete, :data => { :confirm => 'Are you sure?' }, :class => 'btn btn-danger' = paginate @<%= file_name.pluralize %>, :theme => 'comfy'
Version data entries
12 entries across 12 versions & 1 rubygems