Sha256: 573dd236c9f6be33ed79643537712ab19a1578aa3be88247e30e76e846c6e643

Contents?: true

Size: 966 Bytes

Versions: 7

Compression:

Stored size: 966 Bytes

Contents

<div class="page-header">
  <%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn primary' %>
  <h1>Listing <%= plural_table_name %></h1>
</div>

<table class="zebra-striped">
  <thead>
    <tr>
<% attributes.each do |attribute| -%>
      <th><%= attribute.human_name %></th>
<% end -%>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

  <tbody>
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
    <tr>
<% attributes.each do |attribute| -%>
      <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
<% end -%>
      <td><%%= link_to 'Show', <%= singular_table_name %> %></td>
      <td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td>
      <td><%%= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :confirm, "'Are you sure?'" %>, <%= key_value :method, ":delete" %> %></td>
    </tr>
<%% end %>
  </tbody>
</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap-generators-1.4.0 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb
bootstrap-generators-1.0.1 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb
bootstrap-generators-1.0.0 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb
bootstrap-generators-0.0.6 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb
bootstrap-generators-0.0.5 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb
bootstrap-generators-0.0.4 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb
bootstrap-generators-0.0.3 lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb