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.

29 lines
809 B

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