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.

65 lines
2.2 KiB

  1. <% form_for @employee do |f| %>
  2. <%= f.error_messages %>
  3. <dl>
  4. <fieldset class="left">
  5. <legend>Personal</legend>
  6. <dt><%= f.label :number %></dt>
  7. <dd><%= f.text_field :number %></dd>
  8. <dt><%= f.label :firstname %></dt>
  9. <dd><%= f.text_field :firstname %></dd>
  10. <dt><%= f.label :lastname %></dt>
  11. <dd><%= f.text_field :lastname %></dd>
  12. <dt><%= f.label :dob %></dt>
  13. <dd><%= f.date_select :dob, :start_year => Time.now.year - 70,
  14. :end_year => Time.now.year - 17, :default => Time.now - 30.years %>
  15. </dd>
  16. <dt><%= f.label :phone %></dt>
  17. <dd><%= f.text_field :phone %></dd>
  18. </fieldset>
  19. <fieldset class="right">
  20. <legend>Tax Info</legend>
  21. <!-- Pay Info -->
  22. <dt><%= f.label :ssn %></dt>
  23. <dd><%= f.text_field :ssn %></dd>
  24. <dt><%= f.label :payrate %></dt>
  25. <dd><%= f.text_field :payrate %></dd>
  26. <dt><%= f.label :tax_status %></dt>
  27. <dd><%= f.text_field :tax_status %></dd>
  28. <dt><%= f.label :dependents %></dt>
  29. <dd><%= f.text_field :dependents %></dd>
  30. <dt><%= f.label :hired %></dt>
  31. <dd><%= f.date_select :hired, :start_year => Time.now.year - 10,
  32. :end_year => Time.now.year + 1, :default => Time.now %>
  33. </dd>
  34. </fieldset>
  35. <fieldset class="left">
  36. <!-- Address Info -->
  37. <legend>Address</legend>
  38. <dt><%= f.label :street %></dt>
  39. <dd><%= f.text_field :street %></dd>
  40. <dt><%= f.label :city %></dt>
  41. <dd><%= f.text_field :city %></dd>
  42. <dt><%= f.label :state %></dt>
  43. <dd><%= f.text_field :state %></dd>
  44. <dt><%= f.label :zip %></dt>
  45. <dd><%= f.text_field :zip %></dd>
  46. </fieldset>
  47. <fieldset class="right">
  48. <legend>Vehicle Info</legend>
  49. <!-- License Info -->
  50. <dt><%= f.label :dl_number %></dt>
  51. <dd><%= f.text_field :dl_number %></dd>
  52. <dt><%= f.label :dl_state %></dt>
  53. <dd><%= f.text_field :dl_state %></dd>
  54. <dt><%= f.label :dl_expire %></dt>
  55. <dd><%= f.text_field :dl_expire %></dd>
  56. <!-- Truck Info -->
  57. <dt><%= f.label :truck %></dt>
  58. <dd><%= f.text_field :truck %></dd>
  59. <dt><%= f.label :trailer %></dt>
  60. <dd><%= f.text_field :trailer %></dd>
  61. </fieldset>
  62. </dl>
  63. <hr class="clear">
  64. <p><%= f.submit "Submit" %></p>
  65. <% end %>