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.

31 lines
1.0 KiB

  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>Street</th>
  8. <th>City</th>
  9. <th>St.</th>
  10. <th>Zip</th>
  11. <th>Birth Date</th>
  12. <th>Hire Date</th>
  13. <th>Rate</th>
  14. </tr>
  15. <% for employee in @employees %>
  16. <tr class="<%= cycle("light", "dark") -%>" onclick="location.href='<%= edit_employee_path(employee) %>'">
  17. <td class="number"><%= employee.number %></td>
  18. <td class="name"><%= employee.firstname %></td>
  19. <td class="name"><%= employee.lastname %></td>
  20. <td class="street"><%= employee.street %></td>
  21. <td class="city"><%= employee.city %></td>
  22. <td class="state"><%= employee.state %></td>
  23. <td class="zip"><%= employee.zip %></td>
  24. <td class="date"><%= employee.dob %></td>
  25. <td class="date"><%= employee.hired %></td>
  26. <td class="payrate"><%= number_to_currency employee.payrate %></td>
  27. </tr>
  28. <% end %>
  29. </table>
  30. <p class="nav"><%= link_to "New Driver", new_employee_path %></p>