Guest User

Untitled

a guest
Mar 3rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.28 KB | None | 0 0
  1. <% content_for("context_navigation") do %>
  2. <ul>
  3. <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>
  4.  
  5. <li>
  6. <% if @tenant.has_unit? && @tenant.unit.has_property? %>
  7. <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>
  8. </li>
  9.  
  10. <li>
  11. <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>
  12. </li>
  13.  
  14. <li>
  15. <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>
  16. <% else %>
  17. <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>
  18. </li>
  19.  
  20. <li>
  21. <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>
  22. <% end %>
  23. </li>
  24.  
  25. <% if @tenant.has_unit? %>
  26. <li>
  27. <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>
  28. </li>
  29.  
  30. <li>
  31. <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>
  32. </li>
  33.  
  34. <li>
  35. <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>
  36. </li>
  37. <% end %>
  38. </ul>
  39. <% end %>
  40.  
  41.  
  42.  
  43. <% @page_title = h "Tenant: " + @tenant.name %>
  44.  
  45. <% content_for 'content_heading' do %>
  46. <img src="/stylesheets/images/viewTenant_title.gif" alt="View Tenant" />
  47. <% end %>
  48.  
  49. <center>
  50. <h2>
  51. <%= h @tenant.name %><BR/>
  52.  
  53. <% if( @tenant.has_unit? ) %>
  54. <%= link_to_property(@tenant.unit.property) %> #<%= link_to_unit(@tenant.unit)%>
  55. <% else %>
  56. <%= No Occupancy %>
  57. <% end %>
  58. </h2>
  59. </center>
  60.  
  61. <h5>Personal Information</h5>
  62. <div id="personalInfo" style='border:1px solid #313131;'>
  63. <table>
  64. <tr>
  65. <td align=right>
  66. Name:
  67. </td>
  68.  
  69. <td align=left>
  70. <%= h @tenant.first_name %> <%= h @tenant.middle_initial %> <%= h @tenant.last_name %>
  71. </td>
  72. </tr>
  73.  
  74. <tr>
  75. <td align=right>
  76. Date Of Birth:
  77. </td>
  78.  
  79. <td align=left>
  80. <%= @tenant.date_of_birth %>
  81. </td>
  82. </tr>
  83.  
  84. <tr>
  85. <td align=right>
  86. Social Security:
  87. </td>
  88.  
  89. <td align=left>
  90. <%= @tenant.social_sec_num %>
  91. </td>
  92. </tr>
  93.  
  94. <tr>
  95. <td align=right>
  96. Driver License:
  97. </td>
  98.  
  99. <td align=left>
  100. <%= @tenant.driver_lic_num %>
  101. </td>
  102. </tr>
  103.  
  104. <tr>
  105. <td align=right>
  106. Driver License State:
  107. </td>
  108.  
  109. <td align=left>
  110. <%= h @tenant.driver_lic_state %>
  111. </td>
  112. </tr>
  113.  
  114. <tr>
  115. <td align=right>
  116. Home Phone:
  117. </td>
  118.  
  119. <td align=left>
  120. <%= h @tenant.home_phone %>
  121. </td>
  122. </tr>
  123.  
  124. <tr>
  125. <td align=right>
  126. Cell Phone:
  127. </td>
  128.  
  129. <td align=left>
  130. <%= @tenant.cell_phone %>
  131. </td>
  132. </tr>
  133.  
  134. <tr>
  135. <td align=right>
  136. Work Phone:
  137. </td>
  138.  
  139. <td align=left>
  140. <%= @tenant.work_phone %>
  141. </td>
  142. </tr>
  143. </table>
  144. </div>
  145.  
  146. <h5>Vehicle Information</h5>
  147. <div id="vehicleInfo" style='border:1px solid #313131;'>
  148. <table>
  149. <tr>
  150. <th>Vehicle Make</th>
  151. <th>Vehicle Model</th>
  152. <th>Vehicle Year</th>
  153. </tr>
  154. <tr>
  155. <td><%= @tenant.vehicle_make %></td>
  156. <td><%= @tenant.vehicle_model %></td>
  157. <td><%= @tenant.vehicle_year %></td>
  158. </tr>
  159.  
  160. <tr>
  161. <th>Vehicle Color</th>
  162. <th>Vehicle Plate #</th>
  163. <th></th>
  164. </tr>
  165. <tr>
  166. <td><%= @tenant.vehicle_color %></td>
  167. <td><%= @tenant.vehicle_plate_num %></td>
  168. <td></td>
  169. </tr>
  170. </table>
  171. </div>
  172. <h5>Employment Information</h5>
  173. <div id="jobInfo" style='border:1px solid #313131;'>
  174. <table>
  175. <tr>
  176. <th>Employed By (Business Name)</th>
  177. </tr>
  178. <tr>
  179. <td><%= @tenant.employer_business_name %></td>
  180. </tr>
  181. </table>
  182. <table>
  183. <tr>
  184. <th>Supervisor Name</th>
  185. <th>Supervisor Phone #</th>
  186. </tr>
  187. <tr>
  188. <td><%= @tenant.employer_supervisor_name %></td>
  189. <td><%= @tenant.employer_supervisor_phone %></td>
  190. </tr>
  191. <tr>
  192. <th>Position</th>
  193. <th>Wage</th>
  194. </tr>
  195. <tr>
  196. <td><%= @tenant.employer_position %></td>
  197. <td><%= @tenant.employer_wage %></td>
  198. </tr>
  199. <tr>
  200. <th>Employed Since</th>
  201. </tr>
  202. <tr>
  203. <td><%= @tenant.employer_start_date %></td>
  204. </tr>
  205. </table>
  206. </div>
  207. <h5>Emergency Contact Information</h5>
  208. <div id="emergInfo" style='border:1px solid #313131;'>
  209. <table>
  210. <tr>
  211. <th>Emergency Contact Name</th>
  212. <th>Emergency Contact #</th>
  213. <th>Relationship</th>
  214. </tr>
  215. <tr>
  216. <td><%= @tenant.emergency_contact_name %></td>
  217. <td><%= @tenant.emergency_contact_phone %></td>
  218. <td><%= @tenant.emergency_contact_relationship %></td>
  219. </tr>
  220. </table>
  221. </div>
  222. <h5>Other Information</h5>
  223. <div id="otherInfo" style='border:1px solid #313131;'>
  224. <table>
  225. <tr>
  226. <td align=left>
  227. <label for="tenant_smoker">Tenant Smokes:<label>
  228. IMPLEMENT!
  229. <%#= f.check_box :smoker %><BR>
  230. </td>
  231. </tr>
  232. </table>
  233. </div>
  234.  
  235.  
  236. <% if @tenant.has_unit? %>
  237. <tr>
  238. <td width=260><strong>Apartment:</strong></td>
  239. <td>
  240. bingup
  241. </td>
  242. </tr>
  243.  
  244. <% else %>
  245. <tr>
  246. <td width=260><strong>Move-Out Balance:</strong></td>
  247. <td>
  248.  
  249. <%= pretty_balance @tenant.move_out_balance_amount_in_dollars %>
  250. </td>
  251. </tr>
  252. <% end %>
  253.  
  254.  
  255. </table>
  256. </div>
  257. <div id="commentBox">
  258. <center>
  259. <%= render_partial 'comment/add_comments', nil,
  260. 'created_by_user_id' => @created_by_user_id,
  261. 'object_type' => @object_type,
  262. 'object_id' => @object_id,
  263. 'comments' => @comments %>
  264. </center>
  265. </div>
Add Comment
Please, Sign In to add comment