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.
31 lines
1.0 KiB
31 lines
1.0 KiB
<% title "Driver List" -%>
|
|
<table class="listing" cellspacing="0">
|
|
<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 class="number"><%= employee.number %></td>
|
|
<td class="name"><%= employee.firstname %></td>
|
|
<td class="name"><%= employee.lastname %></td>
|
|
<td class="street"><%= employee.street %></td>
|
|
<td class="city"><%= employee.city %></td>
|
|
<td class="state"><%= employee.state %></td>
|
|
<td class="zip"><%= employee.zip %></td>
|
|
<td class="date"><%= employee.dob %></td>
|
|
<td class="date"><%= employee.hired %></td>
|
|
<td class="payrate"><%= number_to_currency employee.payrate %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<p class="nav"><%= link_to "New Driver", new_employee_path %></p>
|