Sha256: a6e5321b9c58a69b1e76cac3bcdd21a4a1ed227b15803305bdc67c5d38046539

Contents?: true

Size: 1.87 KB

Versions: 23

Compression:

Stored size: 1.87 KB

Contents

<%= render :partial => 'caboose/users/admin_header' %>

<h3 style="margin:0;">MLS Profile</h3>

<div class="mb-holder">
  <p><div id='user_<%= @edituser.id %>_rets_agent_mls_id' ></div></p>
  <% if @edituser.date_created %><p>Date Registered: <%= @edituser.date_created.in_time_zone('Central Time (US & Canada)').strftime('%B %-d, %Y') %></p><% end %>
</div>

<% if @saved.count > 0 %>
  <h3 class="sp">Saved Properties</h3>
  <ul class="saved">
    <% @saved.each do |sp| %>
      <% prop = CabooseRets::Property.where(:mls_number => sp.mls_number).first %>
      <% next if prop.nil? || prop.status != 'Active' %>
      <li>
        <a href="/properties/<%= sp.mls_number %>/details" target="_blank">MLS #<%= sp.mls_number %> - <%= prop.full_address %></a>
        <% if !sp.date_saved.blank? %><span> - saved on <%= sp.date_saved.in_time_zone('Central Time (US & Canada)').strftime('%B %-d, %Y') %></span><% end %>
      </li>
    <% end %>
  </ul>
<% end %>

<%= render :partial => 'caboose/users/admin_footer' %>

<% content_for :caboose_css do %>
  <style>
    h3.sp {
      margin: 30px 0 10px 0;
    }
    ul.saved {
      padding-left: 0;
      list-style-type: none;
    }
    ul.saved li {
      display: block;
      margin-bottom: 3px;
    }
    ul.saved li a {
      text-decoration: none;
    }
  </style>
<% end %>


<% content_for :caboose_js do %>
<%= javascript_include_tag "caboose/model/all" %>
<script type="text/javascript">

$(document).ready(function() {
  new ModelBinder({
    name: 'User',
    id: <%= @edituser.id %>,
    update_url: '/admin/users/<%= @edituser.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [
      { name: 'rets_agent_mls_id' , nice_name: 'Assigned Agent', type: 'select' , value: <%= raw Caboose.json(@edituser.rets_agent_mls_id) %>, width: 400, options_url: '/admin/agents/options' }
    ]    
  });  
});

</script>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
caboose-rets-0.1.183 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.182 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.181 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.180 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.179 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.178 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.177 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.176 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.175 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.174 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.173 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.172 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.171 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.170 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.169 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.168 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.167 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.166 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.165 app/views/caboose_rets/saved_properties/rets_info.html.erb
caboose-rets-0.1.164 app/views/caboose_rets/saved_properties/rets_info.html.erb