Sha256: fabf29756dee3f809bdf09e11fdb1e38302942914a7ed73f63970321d2633ac1

Contents?: true

Size: 1.67 KB

Versions: 13

Compression:

Stored size: 1.67 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="controller.capture_funds();" />
  <input type='button' value='Void'          onclick="controller.void_order();" />
<% 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,
table.billing_address td {
  padding: 0 !important; 
  margin: 0 !important; 
  border: 0 !important; 
}

</style>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
caboose-cms-0.5.159 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.158 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.156 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.155 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.154 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.153 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.152 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.151 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.150 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.149 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.148 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.147 app/views/caboose/orders/admin_edit.html.erb
caboose-cms-0.5.146 app/views/caboose/orders/admin_edit.html.erb