Sha256: 0877cc8ea58080829651ab25df01407e80020f0dfa6260169527f7a80874743f
Contents?: true
Size: 965 Bytes
Versions: 7
Compression:
Stored size: 965 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 #' 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
7 entries across 7 versions & 1 rubygems