Sha256: 12b1a5806b7717699c5691901ba7030f16eb4cd52bcc4ca57b914419fb9d4059

Contents?: true

Size: 983 Bytes

Versions: 18

Compression:

Stored size: 983 Bytes

Contents

<h1>Import Property from Matrix</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='Matrix Unique ID #' 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 Matrix...</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

18 entries across 18 versions & 1 rubygems

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