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.
41 lines
1.1 KiB
41 lines
1.1 KiB
<% title "Driver List" -%>
|
|
<table class="listing" cellspacing="0">
|
|
<col class="number" />
|
|
<col class="name" />
|
|
<col class="name" />
|
|
<col />
|
|
<col class="city" />
|
|
<col class="state" />
|
|
<col class="zip" />
|
|
<col class="date" />
|
|
<col class="date" />
|
|
<col class="payrate" />
|
|
<tr>
|
|
<th>No.</th>
|
|
<th>First Name</th>
|
|
<th>Last Name</th>
|
|
<th>Street</th>
|
|
<th>City</th>
|
|
<th>St.</th>
|
|
<th>Zip</th>
|
|
<th>Birth Date</th>
|
|
<th>Hire Date</th>
|
|
<th>Rate</th>
|
|
</tr>
|
|
<% for employee in @employees %>
|
|
<tr class="<%= cycle("light", "dark") -%>" onclick="location.href='<%= edit_employee_path(employee) %>'">
|
|
<td><%= employee.number %></td>
|
|
<td><%= employee.firstname %></td>
|
|
<td><%= employee.lastname %></td>
|
|
<td><%= employee.street %></td>
|
|
<td><%= employee.city %></td>
|
|
<td><%= employee.state %></td>
|
|
<td class="right"><%= employee.zip %></td>
|
|
<td class="center"><%= employee.dob %></td>
|
|
<td class="center"><%= employee.hired %></td>
|
|
<td class="right"><%= number_to_currency employee.payrate %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<p class="nav"><%= link_to "New Driver", new_employee_path %></p>
|