Sha256: 2184f33a5711d789e2c55e8b143e60441c2a232d039b1442d70d6fc770c618ac
Contents?: true
Size: 739 Bytes
Versions: 291
Compression:
Stored size: 739 Bytes
Contents
<h1>New Manual Order</h1> <p>This will create a new order that you can populate and then send to the customer for payment.</p> <p> <input type='button' value='< Back' onclick="window.location='/admin/orders';" /> <input type='button' value='Create Order' onclick='create_order();' /> </p> <% content_for :caboose_js do %> <script type='text/javascript'> function create_order() { $('#message').empty().append("<p class='loading'>Creating order...</p>"); $.ajax({ url: '/admin/orders', type: 'post', success: function(resp) { if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>"); if (resp.redirect) window.location = resp.redirect; } }); } </script> <% end %>
Version data entries
291 entries across 291 versions & 1 rubygems