Sha256: dca159f6162e1934c5e49874761b854e6c9d98e2f4f2cb3cdf083fe9681a7cbd

Contents?: true

Size: 1.32 KB

Versions: 27

Compression:

Stored size: 1.32 KB

Contents

<h1>Multi-Family Properties</h1>

<style type='text/css'>
#search_form_wrapper { margin-bottom: 10px; position: absolute; top:0; right: 0; }
</style>

<div id='search_form_wrapper'>
  <form action='/admin/multi-family' method='get' id='search_form'>
    <input type='text' name='mls_acct' placeholder='MLS #' value="<%= @gen.params['mls_acct'] %>" style='width: 100px;' />    
    <input type='submit' value='Search' />
  </form>
</div>

<table class='data' id='properties_table'>
  <tr>
    <%= raw @gen.sortable_table_headings({
				'mls_acct'                => 'MLS #',
				'street_num, street_name'	=> 'Address',
				'la_code'                 => 'Agent',
				'lo_code'                 => 'Office'
			})
		%>
  </tr>
<% @properties.each do |p| %>
  <% agent = p.agent %>
  <% office = p.office %>
  <tr onclick="window.location='/admin/multi-family/<%= p.mls_acct %>/edit';">
    <td><%= raw p.mls_acct %></td>
    <td><%= raw "#{p.street_num} #{p.street_name}, #{p.city}" %></td>
    <td><%= p.agent ? "#{agent.first_name} #{agent.last_name}" : p.la_code %></td>
    <td><%= p.office ? office.lo_name : p.lo_code %></td>    
  </tr>
<% end %>
</table>

<p><%= raw @gen.generate %></p>

<% content_for :caboose_js do %>
<script type='text/javascript'>
$(document).ready(function() { 
  var modal = new CabooseModal(800);
});
</script>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
caboose-rets-0.0.42 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.41 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.40 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.39 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.38 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.37 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.36 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.35 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.34 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.33 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.32 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.31 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.30 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.29 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.28 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.27 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.26 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.25 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.24 app/views/caboose_rets/multi_family/admin_index.html.erb
caboose-rets-0.0.22 app/views/caboose_rets/multi_family/admin_index.html.erb