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

  1. <% title "Employees" %>
  2. <table>
  3. <tr>
  4. <th>Number</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>
  16. <td><%= link_to employee.number, employee %></td>
  17. <td><%=h employee.firstname %></td>
  18. <td><%=h employee.lastname %></td>
  19. <td><%=h employee.ssn %></td>
  20. <td><%= employee.dob %></td>
  21. <td><%= employee.hired %></td>
  22. <td><%=h employee.tax_status %></td>
  23. <td><%= employee.dependents %></td>
  24. <td><%= employee.payrate %></td>
  25. <td><%= link_to "Edit", edit_employee_path(employee) %></td>
  26. </tr>
  27. <% end %>
  28. </table>
  29. <p><%= link_to "New Employee", new_employee_path %></p>