Sha256: 54bea61b6731d5ec31eaac8fbf182ab9e9cbf73de49f4e4fb3ef06d1ef4cd642
Contents?: true
Size: 1.75 KB
Versions: 9
Compression:
Stored size: 1.75 KB
Contents
<div class="page-header"> <h2>Listing <%= plural_table_name.titleize %></h2> </div> <table class="table data-table"> <thead> <tr> <th>#</th> <th>Status</th> <% attributes.reject(&:password_digest?).each do |attribute| -%> <th><%= attribute.human_name %></th> <% end -%> <th class="no-sort"></th> <th class="no-sort"></th> <th class="no-sort"></th> <th class="no-sort"></th> <th class="no-sort"></th> </tr> </thead> <tbody> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <tr> <td><%%= <%= singular_table_name %>.id %></td> <td><%%= status_label(<%= singular_table_name %>) %></td> <% attributes.reject(&:password_digest?).each do |attribute| -%> <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td> <% end -%> <td><%%= link_to 'Submit', submit_<%= singular_table_name %>_path(<%= singular_table_name %>), method: :put, class: 'btn btn-success btn-sm' unless <%= singular_table_name %>.submitted? %></td> <td><%%= link_to 'Show', <%= singular_table_name %>, class: 'btn btn-primary btn-sm' %></td> <td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'btn btn-default btn-sm' unless <%= singular_table_name %>.submitted? %></td> <td><%%= link_to 'Copy', copy_<%= singular_table_name %>_path(<%= singular_table_name %>), method: :put, class: 'btn btn-default btn-sm' %></td> <td><%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, class: 'btn btn-danger btn-sm', data: { confirm: 'Are you sure?' } %></td> </tr> <%% end %> </tbody> </table> <br> <%%= link_to 'New <%= singular_table_name.titleize %>', new_<%= singular_table_name %>_path %>
Version data entries
9 entries across 9 versions & 1 rubygems