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
973 B

<% title "Driver List" -%>
<table class="listing" cellspacing="0">
<tr>
<th>No.</th>
<th>First Name</th>
<th>Last Name</th>
<th>SSN</th>
<th>Birth Date</th>
<th>Hire Date</th>
<th>S</th>
<th>D</th>
<th>Payrate</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="firstname"><%= employee.firstname %></td>
<td class="lastname"><%= employee.lastname %></td>
<td class="ssn"><%= employee.ssn %></td>
<td class="dob"><%= employee.dob %></td>
<td class="hired"><%= employee.hired %></td>
<td class="tax_status"><%= employee.tax_status %></td>
<td class="dependents"><%= employee.dependents %></td>
<td class="payrate"><%= employee.payrate %></td>
</tr>
<% end %>
</table>
<p class="nav"><%= link_to "New Driver", new_employee_path %></p>