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

<% 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, :maxsize => "16" %></td>
<td colspan="5" class="border">
<%= f.text_field :lastname, :maxsize => "16" %></td>
</tr>
<tr>
<td colspan="10"><%= f.label :street %></td>
</tr>
<tr>
<td colspan="10" class="border">
<%= f.text_field :street, :maxsize => "30" %></td>
</tr>
<tr>
<td colspan="7"><%= f.label :city %></td>
<td colspan="1"><%= f.label :state, "St" %></td>
<td colspan="2"><%= f.label :zip %></td>
</tr>
<tr>
<td colspan="7" class="border">
<%= f.text_field :city, :maxsize => "16" %></td>
<td colspan="1" class="border">
<%= f.text_field :state, :maxsize => "2" %></td>
<td colspan="2" class="border">
<%= f.text_field :zip, :maxsize => "7" %></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Tax Info</legend>
<table cellpadding="0">
<col /><col /><col /><col /><col />
<col /><col /><col /><col /><col />
<tr>
<td colspan="4"><%= f.label :dob, "Birth Date" %></td>
<td colspan="4"><%= f.label :hired, "Hire Date" %></td>
<td colspan="2"><%= f.label :payrate, "Rate" %></td>
</tr>
<tr>
<td colspan="4" class="border">
<%= f.calendar_date_select :dob, :maxsize => "10",
:year_range => 70.years.ago..0.years.ago,
:buttons => false %></td>
<td colspan="4" class="border">
<%= f.calendar_date_select :hired, :maxsize => "10",
:year_range => 20.years.ago..1.year.from_now,
:buttons => false %></td>
<td colspan="2" class="border">
<%= f.text_field :payrate, :maxsize => "4" %></td>
</tr>
<tr>
<td colspan="10"><label>More Info</label></td>
</tr>
<tr>
<td colspan="10" class="border">&nbsp;</td>
</tr>
<tr>
<td colspan="4"><%= f.label :phone %></td>
<td colspan="4"><%= f.label :ssn, "Social" %></td>
<td colspan="2"><%= f.label :tax_status, "Tax Info" %></td>
</tr>
<tr>
<td colspan="4" class="border">
<%= f.text_field :phone, :maxsize => "13" %></td>
<td colspan="4" class="border">
<%= f.text_field :ssn, :maxsize => "11" %></td>
<td colspan="1" class="border">
<%= f.text_field :tax_status, :maxsize => "1" %></td>
<td colspan="1" class="border">
<%= f.text_field :dependents, :maxsize => "2" %></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" %></td>
<td colspan="4"><%= f.label :dl_expire, "Expiry" %></td>
</tr>
<tr>
<td colspan="5" class="border">
<%= f.text_field :dl_number, :maxsize => "15" %></td>
<td colspan="1" class="border">
<%= f.text_field :dl_state, :maxsize => "2" %></td>
<td colspan="4" class="border">
<%= f.calendar_date_select :dl_expire, :maxsize => "10" %></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">&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="border">
<%= f.text_field :truck, :maxsize => "12" %></td>
<td colspan="3" class="border">
<%= f.text_field :trailer, :maxsize => "12" %></td>
<td colspan="4" class="border">&nbsp;</td>
</tr>
</table>
</fieldset>
</div> <!-- left -->
<div id="driver_loads">
<fieldset class="loads">
<legend>Recent Loads</legend>
</fieldset>
</div>
<hr class="clear">
<p><%= f.submit "Submit" %></p>
<% end %>