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.

127 lines
3.9 KiB

  1. <% form_for @employee do |f| %>
  2. <%= f.error_messages %>
  3. <div id="employee_data">
  4. <fieldset>
  5. <legend>Personal Info</legend>
  6. <table cellpadding="0">
  7. <col /><col /><col /><col /><col />
  8. <col /><col /><col /><col /><col />
  9. <tr>
  10. <td colspan="5"><%= f.label :firstname, "First Name" %></td>
  11. <td colspan="5"><%= f.label :lastname, "Last Name" %></td>
  12. <tr>
  13. <td colspan="5" class="border">
  14. <%= f.text_field :firstname, :maxsize => "16" %></td>
  15. <td colspan="5" class="border">
  16. <%= f.text_field :lastname, :maxsize => "16" %></td>
  17. </tr>
  18. <tr>
  19. <td colspan="10"><%= f.label :street %></td>
  20. </tr>
  21. <tr>
  22. <td colspan="10" class="border">
  23. <%= f.text_field :street, :maxsize => "30" %></td>
  24. </tr>
  25. <tr>
  26. <td colspan="7"><%= f.label :city %></td>
  27. <td colspan="1"><%= f.label :state, "St" %></td>
  28. <td colspan="2"><%= f.label :zip %></td>
  29. </tr>
  30. <tr>
  31. <td colspan="7" class="border">
  32. <%= f.text_field :city, :maxsize => "16" %></td>
  33. <td colspan="1" class="border">
  34. <%= f.text_field :state, :maxsize => "2" %></td>
  35. <td colspan="2" class="border">
  36. <%= f.text_field :zip, :maxsize => "7" %></td>
  37. </tr>
  38. </table>
  39. </fieldset>
  40. <fieldset>
  41. <legend>Tax Info</legend>
  42. <table cellpadding="0">
  43. <col /><col /><col /><col /><col />
  44. <col /><col /><col /><col /><col />
  45. <tr>
  46. <td colspan="4"><%= f.label :dob, "Birth Date" %></td>
  47. <td colspan="4"><%= f.label :hired, "Hire Date" %></td>
  48. <td colspan="2"><%= f.label :payrate, "Rate" %></td>
  49. </tr>
  50. <tr>
  51. <td colspan="4" class="border">
  52. <%= f.calendar_date_select :dob, :maxsize => "10",
  53. :year_range => 70.years.ago..0.years.ago,
  54. :buttons => false %></td>
  55. <td colspan="4" class="border">
  56. <%= f.calendar_date_select :hired, :maxsize => "10",
  57. :year_range => 20.years.ago..1.year.from_now,
  58. :buttons => false %></td>
  59. <td colspan="2" class="border">
  60. <%= f.text_field :payrate, :maxsize => "4" %></td>
  61. </tr>
  62. <tr>
  63. <td colspan="10"><label>More Info</label></td>
  64. </tr>
  65. <tr>
  66. <td colspan="10" class="border">&nbsp;</td>
  67. </tr>
  68. <tr>
  69. <td colspan="4"><%= f.label :phone %></td>
  70. <td colspan="4"><%= f.label :ssn, "Social" %></td>
  71. <td colspan="2"><%= f.label :tax_status, "Tax Info" %></td>
  72. </tr>
  73. <tr>
  74. <td colspan="4" class="border">
  75. <%= f.text_field :phone, :maxsize => "13" %></td>
  76. <td colspan="4" class="border">
  77. <%= f.text_field :ssn, :maxsize => "11" %></td>
  78. <td colspan="1" class="border">
  79. <%= f.text_field :tax_status, :maxsize => "1" %></td>
  80. <td colspan="1" class="border">
  81. <%= f.text_field :dependents, :maxsize => "2" %></td>
  82. </tr>
  83. </table>
  84. </fieldset>
  85. <!-- License Info -->
  86. <fieldset>
  87. <legend>Vehicle Info</legend>
  88. <table cellspacing="0">
  89. <col /><col /><col /><col /><col />
  90. <col /><col /><col /><col /><col />
  91. <tr>
  92. <td colspan="5"><%= f.label :dl_number, "License No." %></td>
  93. <td colspan="1"><%= f.label :dl_state, "St" %></td>
  94. <td colspan="4"><%= f.label :dl_expire, "Expiry" %></td>
  95. </tr>
  96. <tr>
  97. <td colspan="5" class="border">
  98. <%= f.text_field :dl_number, :maxsize => "15" %></td>
  99. <td colspan="1" class="border">
  100. <%= f.text_field :dl_state, :maxsize => "2" %></td>
  101. <td colspan="4" class="border">
  102. <%= f.calendar_date_select :dl_expire, :maxsize => "10" %></td>
  103. </tr>
  104. <!-- Truck Info -->
  105. <tr>
  106. <td colspan="3"><%= f.label :truck, "Truck No" %></td>
  107. <td colspan="3"><%= f.label :trailer, "Trailer No" %></td>
  108. <td colspan="4">&nbsp;</td>
  109. </tr>
  110. <tr>
  111. <td colspan="3" class="border">
  112. <%= f.text_field :truck, :maxsize => "12" %></td>
  113. <td colspan="3" class="border">
  114. <%= f.text_field :trailer, :maxsize => "12" %></td>
  115. <td colspan="4" class="border">&nbsp;</td>
  116. </tr>
  117. </table>
  118. </fieldset>
  119. </div> <!-- left -->
  120. <div id="driver_loads">
  121. <fieldset class="loads">
  122. <legend>Recent Loads</legend>
  123. </fieldset>
  124. </div>
  125. <hr class="clear">
  126. <p><%= f.submit "Submit" %></p>
  127. <% end %>