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

  1. <% title "Driver List" -%>
  2. <table class="listing" cellspacing="0">
  3. <tr>
  4. <th>No.</th>
  5. <th>First Name</th>
  6. <th>Last Name</th>
  7. <th>SSN</th>
  8. <th>Birth Date</th>
  9. <th>Hire Date</th>
  10. <th>S</th>
  11. <th>D</th>
  12. <th>Payrate</th>
  13. </tr>
  14. <% for employee in @employees %>
  15. <tr class="<%= cycle("light", "dark") -%>" onclick="location.href='<%= edit_employee_path(employee) %>'">
  16. <td class="number"><%= employee.number %></td>
  17. <td class="firstname"><%= employee.firstname %></td>
  18. <td class="lastname"><%= employee.lastname %></td>
  19. <td class="ssn"><%= employee.ssn %></td>
  20. <td class="dob"><%= employee.dob %></td>
  21. <td class="hired"><%= employee.hired %></td>
  22. <td class="tax_status"><%= employee.tax_status %></td>
  23. <td class="dependents"><%= employee.dependents %></td>
  24. <td class="payrate"><%= employee.payrate %></td>
  25. </tr>
  26. <% end %>
  27. </table>
  28. <p class="nav"><%= link_to "New Driver", new_employee_path %></p>