Sha256: cd9b19bfd8406f252a52498105f9e2e35c4fd4464f6bea2b006557165e678441
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
<div class="page-header"> <%%= link_to new_<%= prefixed_plain_model_url %>_path, class: 'btn btn-success pull-right' do %> <i class="glyphicon glyphicon-plus"></i> New <%= human_name %> <%% end %> <h1><%= plural_table_name.humanize %></h1> </div> <table class="table table-striped table-hover table-bordered"> <thead> <tr> <% attributes.reject(&:password_digest?).each do |attribute| -%> <th><%= attribute.human_name %></th> <% end -%> <th></th> <th></th> </tr> </thead> <tbody> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <tr> <% attributes.reject(&:password_digest?).each do |attribute| -%> <td><%%= link_to <%= singular_table_name %>.<%= attribute.name %>, <%= "[:#{prefix}, #{singular_table_name}]" %> %></td> <% end -%> <td class="text-right"> <%%= link_to 'Edit', edit_<%= prefixed_plain_model_url %>_path(<%= singular_table_name %>), class: 'btn btn-primary' %> </td> <td class="text-right"> <%%= link_to 'Destroy', <%= "[:#{prefix}, #{singular_table_name}]" %>, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %> </td> </tr> <%% end %> </tbody> </table> <div class="text-center"> <%%= paginate @<%= plural_table_name %>, theme: 'admin-bootstrap' %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
admin-panel-0.1.3 | lib/generators/admin_panel/scaffold/templates/views/erb/index.html.erb.erb |