Sha256: 6dcca027bb1f65a72d9e61f16ed64b98a50e037b4ef15dff4408aeeefd72cf1f

Contents?: true

Size: 1.34 KB

Versions: 25

Compression:

Stored size: 1.34 KB

Contents

<h1>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/property' method='get' id='search_form'>
    <input type='text' name='mls' placeholder='MLS #' value="<%= @gen.params['mls'] %>" style='width: 100px;' />
    <input type='submit' value='Search' />
  </form>
</div>

<p><a href='/admin/rets/import'>Import new property from MLS</a></p>

<table class='data' id='properties_table'>
  <tr>
    <%= raw @gen.sortable_table_headings({
				'mls'                     => 'MLS #',
				'street_number, 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/property/<%= p.mls %>/edit';">
    <td><%= raw p.mls %></td>
    <td><%= raw "#{p.street_number} #{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

25 entries across 25 versions & 1 rubygems

Version Path
caboose-rets-0.1.43 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.42 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.41 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.40 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.39 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.38 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.37 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.36 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.35 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.34 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.33 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.32 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.31 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.30 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.29 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.28 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.27 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.26 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.25 app/views/caboose_rets/properties/admin_index.html.erb
caboose-rets-0.1.24 app/views/caboose_rets/properties/admin_index.html.erb