<div class="row">
  <div class="col-xs-12">
    <div class="form-group">
      <%= render partial: "status_buttons", locals: { order: order } %>

      <% if order.pending? || order.shipped? %>
        <button class="btn btn-primary" style="margin-left: 5px;">Save</button>
      <% end %>

      <%= link_to "Cancel", orders_path, type: "button", class: "btn btn-default" %>
    </div>
  </div>
</div>

Create order buttons partial for consumtion on all order edit views
Create order buttons partial for consumtion on all order edit views
