Sha256: b18fc5e3255c7fb34ba54a6a2bb8424d345717e0831d2c676984962b6dd7c3dd

Contents?: true

Size: 1.62 KB

Versions: 18

Compression:

Stored size: 1.62 KB

Contents

<input type='hidden' name='order_id'    id='order_id'     value='<%= @order.id %>' />

<h1>Edit Order #<%= @order.id %></h1>

<div id='overview_table'></div>
<div id='order_table'></div>
<div id='message'></div>

<p>
<input type='button' value='< Back' onclick="window.location='/admin/orders';" />
<% if @order.financial_status == 'authorized' %>
  <input type='button' value='Capture Funds' onclick="capture_funds(<%= @order.id %>);" />
  <input type='button' value='Void' onclick="void_order(<%= @order.id %>);" />
<% end %>
<% if @order.financial_status == 'captured' %>
  <input type='button' value='Refund' onclick="refund_order(<%= @order.id %>);" />
<% end %>
<input type='button' value='Resend Confirmation' onclick="resend_confirmation(<%= @order.id %>)" />
<input type='button' value='Add Item' onclick="controller.add_variant();" />
<input type='button' value='Print Order' onclick="controller.print_order(<%= @order.id %>);" />

<% str = Caboose.plugin_hook('admin_edit_order_buttons', "", @order) %>
<% if str %><%= raw str %><% end %>
</p>

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

var controller = false;
$(document).ready(function() {
  controller = new OrderController({ 
    order_id: <%= raw Caboose.json(@order.id) %>,
    authenticity_token: <%= raw Caboose.json(form_authenticity_token) %>
  });
});

</script>
<% end %>

<% content_for :caboose_css do %>
<style type='text/css'>

table.shipping_address td { 
  padding: 0 !important; 
  margin: 0 !important; 
  border: 0 !important; 
}

</style>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
caboose-cms-0.5.86 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.85 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.84 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.83 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.82 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.81 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.80 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.79 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.78 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.77 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.76 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.75 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.74 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.73 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.72 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.71 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.70 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.69 app/views/caboose/orders/admin_edit.html.erb