Basis of rails-driven app for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

23 lines
640 B

  1. <% title "Load List" %>
  2. <table class="listing" cellspacing="0">
  3. <tr>
  4. <th>Number</th>
  5. <th>End Date</th>
  6. <th>Start Point</th>
  7. <th>Shipper</th>
  8. <th>Origin</th>
  9. <th>Destination</th>
  10. </tr>
  11. <% for load in @loads %>
  12. <tr class="<%= cycle("light", "dark") -%>" onclick="location.href='<%= edit_load_path(load) %>'">
  13. <td><%=h load.number %></td>
  14. <td><%=h load.end_date %></td>
  15. <td><%=h load.start_point %></td>
  16. <td><%=h load.shipper %></td>
  17. <td><%=h load.origin %></td>
  18. <td><%=h load.destination %></td>
  19. </tr>
  20. <% end %>
  21. </table>
  22. <p class="nav"><%= link_to "New Load", new_load_path %></p>