Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% content_for("context_navigation") do %>
- <ul>
- <li><a href="/tenant/update/<%= @tenant.id %>" onMouseOver="on('cont17')" onMouseOut="off()"><img name="cont17" src="/stylesheets/images/nav/updateTenant.gif" ALT="Update Tenant" /></a></li>
- <li>
- <% if @tenant.has_unit? && @tenant.unit.has_property? %>
- <a href="/property/show/<%= @tenant.unit.property.id %>" onMouseOver="on('cont6')" onMouseOut="off()"><img name="cont6" src="/stylesheets/images/nav/viewProp.gif" ALT="View Property" /></a>
- </li>
- <li>
- <a href="/unit/show/<%= @tenant.unit.id %>" onMouseOver="on('cont7')" onMouseOut="off()"><img name="cont7" src="/stylesheets/images/nav/viewUnit.gif" ALT="View Unit" /></a>
- </li>
- <li>
- <a href="/tenant/move_out/<%= @tenant.id %>" onMouseOver="on('cont8')" onMouseOut="off()"><img name="cont8" src="/stylesheets/images/nav/moveOut.gif" ALT="Move Out" /></a>
- <% else %>
- <a href="/tenant/move_in/<%= @tenant.id %>" onMouseOver="on('cont9')" onMouseOut="off()"><img name="cont9" src="/stylesheets/images/nav/moveIn.gif" ALT="Move In" /></a>
- </li>
- <li>
- <a href="/tenant/balance_adjustment/<%= @tenant.id %>" onMouseOver="on('cont10')" onMouseOut="off()"><img name="cont10" src="/stylesheets/images/nav/adjustBal.gif" ALT="Adjust Balance" /></a>
- <% end %>
- </li>
- <% if @tenant.has_unit? %>
- <li>
- <a href="#" onclick="new Ajax.Request('/expense/add_remote?expense%5Btenant_id%5D=<%= @tenant.id %>&expense%5Bproperty_id%5D=<%= @tenant.unit.property.id %>&expense%5Bunit_id%5D=<%= @tenant.unit.id %>', {asynchronous:true, evalScripts:true}); return false;" onMouseOver="on('cont11')" onMouseOut="off()"><img name="cont11" src="/stylesheets/images/nav/expense.gif" ALT="Add Expense" /></a>
- </li>
- <li>
- <a href="#" onclick="new Ajax.Request('/task/add_remote?task%5Bunit_id%5D=<%= @tenant.unit.id %>&task%5Bproperty_id%5D=<%= @tenant.unit.property.id %>&task%5Btenant_id%5D=<%= @tenant.id %>', {asynchronous:true, evalScripts:true}); return false;" onMouseOver="on('cont12')" onMouseOut="off()"><img name="cont12" src="/stylesheets/images/nav/addTask.gif" ALT="Add Task" /></a>
- </li>
- <li>
- <a href="#" onclick="new Ajax.Request('/event/add_remote?event%5Bunit_id%5D=<%= @tenant.unit.id %>&event%5Btenant_id%5D=<%= @tenant.id %>&event%5Bproperty_id%5D=<%= @tenant.unit.property.id %>', {asynchronous:true, evalScripts:true}); return false;" onMouseOver="on('cont13')" onMouseOut="off()"><img name="cont13" src="/stylesheets/images/nav/addEvent.gif" ALT="Add Event" /></a>
- </li>
- <% end %>
- </ul>
- <% end %>
- <% @page_title = h "Tenant: " + @tenant.name %>
- <% content_for 'content_heading' do %>
- <img src="/stylesheets/images/viewTenant_title.gif" alt="View Tenant" />
- <% end %>
- <center>
- <h2>
- <%= h @tenant.name %><BR/>
- <% if( @tenant.has_unit? ) %>
- <%= link_to_property(@tenant.unit.property) %> #<%= link_to_unit(@tenant.unit)%>
- <% else %>
- <%= No Occupancy %>
- <% end %>
- </h2>
- </center>
- <h5>Personal Information</h5>
- <div id="personalInfo" style='border:1px solid #313131;'>
- <table>
- <tr>
- <td align=right>
- Name:
- </td>
- <td align=left>
- <%= h @tenant.first_name %> <%= h @tenant.middle_initial %> <%= h @tenant.last_name %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Date Of Birth:
- </td>
- <td align=left>
- <%= @tenant.date_of_birth %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Social Security:
- </td>
- <td align=left>
- <%= @tenant.social_sec_num %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Driver License:
- </td>
- <td align=left>
- <%= @tenant.driver_lic_num %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Driver License State:
- </td>
- <td align=left>
- <%= h @tenant.driver_lic_state %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Home Phone:
- </td>
- <td align=left>
- <%= h @tenant.home_phone %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Cell Phone:
- </td>
- <td align=left>
- <%= @tenant.cell_phone %>
- </td>
- </tr>
- <tr>
- <td align=right>
- Work Phone:
- </td>
- <td align=left>
- <%= @tenant.work_phone %>
- </td>
- </tr>
- </table>
- </div>
- <h5>Vehicle Information</h5>
- <div id="vehicleInfo" style='border:1px solid #313131;'>
- <table>
- <tr>
- <th>Vehicle Make</th>
- <th>Vehicle Model</th>
- <th>Vehicle Year</th>
- </tr>
- <tr>
- <td><%= @tenant.vehicle_make %></td>
- <td><%= @tenant.vehicle_model %></td>
- <td><%= @tenant.vehicle_year %></td>
- </tr>
- <tr>
- <th>Vehicle Color</th>
- <th>Vehicle Plate #</th>
- <th></th>
- </tr>
- <tr>
- <td><%= @tenant.vehicle_color %></td>
- <td><%= @tenant.vehicle_plate_num %></td>
- <td></td>
- </tr>
- </table>
- </div>
- <h5>Employment Information</h5>
- <div id="jobInfo" style='border:1px solid #313131;'>
- <table>
- <tr>
- <th>Employed By (Business Name)</th>
- </tr>
- <tr>
- <td><%= @tenant.employer_business_name %></td>
- </tr>
- </table>
- <table>
- <tr>
- <th>Supervisor Name</th>
- <th>Supervisor Phone #</th>
- </tr>
- <tr>
- <td><%= @tenant.employer_supervisor_name %></td>
- <td><%= @tenant.employer_supervisor_phone %></td>
- </tr>
- <tr>
- <th>Position</th>
- <th>Wage</th>
- </tr>
- <tr>
- <td><%= @tenant.employer_position %></td>
- <td><%= @tenant.employer_wage %></td>
- </tr>
- <tr>
- <th>Employed Since</th>
- </tr>
- <tr>
- <td><%= @tenant.employer_start_date %></td>
- </tr>
- </table>
- </div>
- <h5>Emergency Contact Information</h5>
- <div id="emergInfo" style='border:1px solid #313131;'>
- <table>
- <tr>
- <th>Emergency Contact Name</th>
- <th>Emergency Contact #</th>
- <th>Relationship</th>
- </tr>
- <tr>
- <td><%= @tenant.emergency_contact_name %></td>
- <td><%= @tenant.emergency_contact_phone %></td>
- <td><%= @tenant.emergency_contact_relationship %></td>
- </tr>
- </table>
- </div>
- <h5>Other Information</h5>
- <div id="otherInfo" style='border:1px solid #313131;'>
- <table>
- <tr>
- <td align=left>
- <label for="tenant_smoker">Tenant Smokes:<label>
- IMPLEMENT!
- <%#= f.check_box :smoker %><BR>
- </td>
- </tr>
- </table>
- </div>
- <% if @tenant.has_unit? %>
- <tr>
- <td width=260><strong>Apartment:</strong></td>
- <td>
- bingup
- </td>
- </tr>
- <% else %>
- <tr>
- <td width=260><strong>Move-Out Balance:</strong></td>
- <td>
- <%= pretty_balance @tenant.move_out_balance_amount_in_dollars %>
- </td>
- </tr>
- <% end %>
- </table>
- </div>
- <div id="commentBox">
- <center>
- <%= render_partial 'comment/add_comments', nil,
- 'created_by_user_id' => @created_by_user_id,
- 'object_type' => @object_type,
- 'object_id' => @object_id,
- 'comments' => @comments %>
- </center>
- </div>
Add Comment
Please, Sign In to add comment