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.

41 lines
1.1 KiB

  1. <% title "Driver List" -%>
  2. <table class="listing" cellspacing="0">
  3. <col class="number" />
  4. <col class="name" />
  5. <col class="name" />
  6. <col />
  7. <col class="city" />
  8. <col class="state" />
  9. <col class="zip" />
  10. <col class="date" />
  11. <col class="date" />
  12. <col class="payrate" />
  13. <tr>
  14. <th>No.</th>
  15. <th>First Name</th>
  16. <th>Last Name</th>
  17. <th>Street</th>
  18. <th>City</th>
  19. <th>St.</th>
  20. <th>Zip</th>
  21. <th>Birth Date</th>
  22. <th>Hire Date</th>
  23. <th>Rate</th>
  24. </tr>
  25. <% for employee in @employees %>
  26. <tr class="<%= cycle("light", "dark") -%>" onclick="location.href='<%= edit_employee_path(employee) %>'">
  27. <td><%= employee.number %></td>
  28. <td><%= employee.firstname %></td>
  29. <td><%= employee.lastname %></td>
  30. <td><%= employee.street %></td>
  31. <td><%= employee.city %></td>
  32. <td><%= employee.state %></td>
  33. <td class="right"><%= employee.zip %></td>
  34. <td class="center"><%= employee.dob %></td>
  35. <td class="center"><%= employee.hired %></td>
  36. <td class="right"><%= number_to_currency employee.payrate %></td>
  37. </tr>
  38. <% end %>
  39. </table>
  40. <p class="nav"><%= link_to "New Driver", new_employee_path %></p>