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.

120 lines
3.8 KiB

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