|
|
<% form_for @employee do |f| %> <%= f.error_messages %> <div id="employee_data"> <fieldset> <legend>Personal Info</legend> <table cellpadding="0"> <col /><col /><col /><col /><col /><col /><col /><col /><col /><col /> <tr> <td colspan="5"><%= f.label :firstname, "First Name" %></td> <td colspan="5"><%= f.label :lastname, "Last Name" %></td> <tr> <td colspan="5" class="border"> <%= f.text_field :firstname, :size => "12", :maxsize => 30 %></td> <td colspan="5" class="border"> <%= f.text_field :lastname, :size => "12" %></td> </tr> <tr> <td colspan="10"><label>Street</label></td> </tr> <tr> <td colspan="10" class="border"> <%= f.text_field :street, :size => "30" %></td> </tr> <tr> <td colspan="6"><label>City</label></td> <td><label>St</label></td> <td colspan="3"><label>Zip</label></td> </tr> <tr> <td colspan="6" class="border"><%= f.text_field :city, :size => "16" %></td> <td class="border"><%= f.text_field :state, :size => "1" %></td> <td colspan="3" class="border"><%= f.text_field :zip, :size => "6" %></td> </tr> <tr> <td colspan="4"><label>Birth Date</label></td> <td colspan="4"><label>Hire Date</label></td> <td colspan="2"><label>Pay Rate</label></td> </tr> <tr> <td colspan="4" class="border"><%= f.calendar_date_select :dob, :size => "8", :year_range => 70.years.ago..0.years.ago, :buttons => false %></td> <td colspan="4" class="border"><%= f.calendar_date_select :hired, :size => "8", :year_range => 20.years.ago..1.year.from_now, :buttons => false %></td> <td colspan="2" class="border"><%= f.text_field :payrate, :size => "2" %></td> </tr> <tr> <td colspan="10"><label>More Info</label></td> </tr> <tr> <td colspan="10" class="border"> </td> </tr> <tr> <td colspan="4"><label>Phone</label></td> <td colspan="4"><label>Social</label></td> <td colspan="2"><label>Tax Info</label></td> </tr> <tr> <td colspan="4" class="border"><%= f.text_field :phone, :size => "10" %></td> <td colspan="4" class="border"><%= f.text_field :ssn, :size => "9" %></td> <td colspan="1" class="border"><%= f.text_field :tax_status, :size => "1" %></td> <td colspan="1" class="border"><%= f.text_field :dependents, :size => "1" %></td> </tr> </table> </fieldset> <!-- License Info --> <fieldset> <legend>Vehicle Info</legend> <table cellspacing="0"> <col /><col /><col /><col /><col /><col /><col /><col /><col /><col /> <tr> <td colspan="5"><%= f.label :dl_number, "License No." %></td> <td colspan="1"><%= f.label :dl_state, "St", :class => "label" %></td> <td colspan="4"><%= f.label :dl_expire, "Expiry", :class => "label" %></td> </tr> <tr> <td colspan="5" class="border"><%= f.text_field :dl_number, :size => "12" %></td> <td colspan="1" class="border"><%= f.text_field :dl_state, :size => "1" %></td> <td colspan="4" class="border"> <%= f.calendar_date_select :dl_expire, :size => "8" %></td> </tr> <!-- Truck Info --> <tr> <td colspan="3"><%= f.label :truck, "Truck No" %></td> <td colspan="3"><%= f.label :trailer, "Trailer No" %></td> <td colspan="4"> </td> </tr> <tr> <td colspan="3" class="border"><%= f.text_field :truck, :size => "12" %></td> <td colspan="3" class="border"><%= f.text_field :trailer, :size => "12" %></td> <td colspan="4" class="border"> </td> </tr> </table> </fieldset> </div> <!-- left --> <div id="driver_loads"> <fieldset class="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> </div> <hr class="clear"> <p><%= f.submit "Submit" %></p> <% end %>
|