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.

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