Sha256: fffd939711e5543b7fd421ab6e8d96d69d6610416c82eddad0db3dfe1cf55fa5

Contents?: true

Size: 1.35 KB

Versions: 11

Compression:

Stored size: 1.35 KB

Contents

<h1>Commercial Properties</h1>

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

<div id='search_form_wrapper'>
  <form action='/admin/commercial' 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/commercial/<%= 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.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

11 entries across 11 versions & 1 rubygems

Version Path
caboose-rets-0.0.12 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.11 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.10 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.9 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.8 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.7 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.6 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.5 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.4 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.3 app/views/caboose_rets/commercial/admin_index.html.erb
caboose-rets-0.0.2 app/views/caboose_rets/commercial/admin_index.html.erb