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

<% title "Load List" %>
<table class="listing" cellspacing="0">
<tr>
<th>Number</th>
<th>Start Date</th>
<th>End Date</th>
<th>Hub In</th>
<th>Hub Out</th>
<th>Start Point</th>
<th>Shipper</th>
<th>Origin</th>
<th>Destination</th>
</tr>
<% for load in @loads %>
<tr class="<%= cycle("light", "dark") -%>" onclick="location.href='<%= edit_load_path(load) %>'">
<td><%=h load.number %></td>
<td><%=h load.start_date %></td>
<td><%=h load.end_date %></td>
<td><%=h load.hub_in %></td>
<td><%=h load.hub_out %></td>
<td><%=h load.start_point %></td>
<td><%=h load.shipper %></td>
<td><%=h load.origin %></td>
<td><%=h load.destination %></td>
</tr>
<% end %>
</table>
<p class="nav"><%= link_to "New Load", new_load_path %></p>