|
|
<% form_for @employee do |f| %> <%= f.error_messages %> <fieldset class="left"> <legend>Personal Info</legend> <%# f.label :number %> <%# f.text_field :number %> <table cellpadding="0"> <tr> <td class="name"><%= f.label :firstname, "First Name", :class => "label" %></td> <td colspan="3" class="name"> <%= f.label :lastname, "Last Name", :class => "label" %></td> </tr> <tr> <td class="border"><%= f.text_field :firstname, :size => "12" %></td> <td colspan="3" class="border"><%= f.text_field :lastname, :size => "12" %></td> </tr> <tr> <td colspan="4"><%= f.label :street, "Street", :class => "label" %></td> </tr> <tr> <td colspan="4" class="border"><%= f.text_field :street %></td> </tr> <tr> <td class="city"><%= f.label :city, "City", :class => "label" %></td> <td> </td> <td class="state"><%= f.label :state, "St", :class => "label" %></td> <td class="zip"><%= f.label :zip, "Zip", :class => "label" %></td> </tr> <tr> <td colspan="2" class="border"><%= f.text_field :city, :size => "20" %></td> <td class="border"><%= f.text_field :state, :size => "2" %></td> <td class="border"><%= f.text_field :zip, :size => "6" %></td> </tr> <tr> <td><%= f.label :dob, "Birth Date", :class => "label" %></td> <td colspan="3"><%= f.label :hired, "Hire Date", :class => "label" %></td> </tr> <tr> <td class="border"><%= f.calendar_date_select :dob, :size => "10", :year_range => 70.years.ago..0.years.ago, :buttons => false %></td> <td colspan="3" class="border"><%= f.calendar_date_select :hired, :size => "10", :year_range => 20.years.ago..1.year.from_now, :buttons => false %></td> </tr> <tr> <td class="ssn"><%= f.label :ssn, "Social", :class => "label" %></td> <td colspan="3" class="phone"><%= f.label :phone, "Phone", :class => "label" %></td> </tr> <tr> <td class="border"><%= f.text_field :ssn, :size => "10" %></td> <td colspan="3" class="border"><%= f.text_field :phone, :size => "12" %></td> </tr> <tr> <td> </td> <td class="tax"><%= f.label :tax_status, "Status", :class => "label" %></td> <td class="dep"><%= f.label :dependents, "Dep", :class => "label" %></td> <td><%= f.label :payrate, "Rate", :class => "label" %></td> </tr> <tr> <td class="border"> </td> <td class="border"><%= f.text_field :tax_status, :size => "1" %></td> <td class="border"><%= f.text_field :dependents, :size => "1" %></td> <td class="border"><%= f.text_field :payrate, :size => "4" %></td> </tr> </table> </fieldset> <fieldset class="right loads"> <legend>Recent Loads</legend> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> </fieldset> <!-- License Info --> <fieldset class="left"> <legend>Vehicle Info</legend> <table cellspacing="0"> <tr> <td class="dl_number"> <%= f.label :dl_number, "License No.", :class => "label" %></td> <td class="dl_state"><%= f.label :dl_state, "St", :class => "label" %></td> <td class="dl_expire"><%= f.label :dl_expire, "Expiry", :class => "label" %></td> </tr> <tr> <td class="border"><%= f.text_field :dl_number, :size => "14" %></td> <td class="border state"><%= f.text_field :dl_state, :size => "2" %></td> <td class="border"><%= f.calendar_date_select :dl_expire, :size => "10" %></td> </tr> <!-- Truck Info --> <tr> <td><%= f.label :truck, "Truck No", :class => "label" %></td> <td colspan="2"><%= f.label :trailer, "Trailer No", :class => "label" %></td> </tr> <tr> <td class="border"><%= f.text_field :truck, :size => "12" %></td> <td colspan="2" class="border"><%= f.text_field :trailer, :size => "12" %></td> </tr> </table> </fieldset> <hr class="clear"> <p><%= f.submit "Submit" %></p> <% end %>
|