Sha256: 0ebe6ade0d494bee747c8de2fbd71cfcacf2e9b564693a7fc3cf30136395c40f

Contents?: true

Size: 969 Bytes

Versions: 170

Compression:

Stored size: 969 Bytes

Contents

<h1>Import Property from MLS</h1>

<form action='/admin/rets/import' method='post' id='import_form' onsubmit="import_property(); return false;">
<input type='hidden' name='authenticity_token' value='<%= form_authenticity_token %>' />
<p><input type='text' name='mls' id='mls' placeholder='MLS Number' value="" style='width: 300px;' /></p>
<div id='message'></div>
<p><input type='submit' value='Import Property' /></p>
</form>

<% content_for :caboose_js do %>
<script type='text/javascript'>

function import_property()
{
  $('#message').html("<p class='loading'>Importing property from MLS...</p>");
  $.ajax({
    url: '/admin/rets/import',
    type: 'post',
    data: $('#import_form').serialize(),
    success: function(resp) {
      if (resp.error)   $('#message').html("<p class='note error'>"   + resp.error   + "</p>");
      if (resp.success) $('#message').html("<p class='note success'>" + resp.success + "</p>");          
    }
  });
}

</script>
<% end %>

Version data entries

170 entries across 170 versions & 1 rubygems

Version Path
caboose-rets-0.1.173 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.172 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.171 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.170 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.169 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.168 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.167 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.166 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.165 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.164 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.163 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.162 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.161 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.160 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.159 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.158 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.157 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.156 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.155 app/views/caboose_rets/rets/admin_import_form.html.erb
caboose-rets-0.1.154 app/views/caboose_rets/rets/admin_import_form.html.erb