Sha256: 430d095d46f5d68355fc89c0ed5eb6eb23dfa45651038292e52b8934fda2ce62

Contents?: true

Size: 1.63 KB

Versions: 3

Compression:

Stored size: 1.63 KB

Contents

<% content_for :page_actions do %>
  <li>
    <% if @legacy_return_authorization.can_receive? %>
      <%= button_link_to Spree.t(:receive), fire_admin_order_legacy_return_authorization_url(@order, @legacy_return_authorization, :e => 'receive'), :method => :put, :data => { :confirm => Spree.t(:are_you_sure) }, :icon => 'download-alt' %>
    <% end %>
  </li>
  <li>
    <% if @legacy_return_authorization.can_cancel? %>
      <%= button_link_to Spree.t('actions.cancel'), fire_admin_order_legacy_return_authorization_url(@order, @legacy_return_authorization, :e => 'cancel'), :method => :put, :data => { :confirm => Spree.t(:are_you_sure) }, :icon => 'remove' %>
    <% end %>
  </li>
<% end %>

<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Legacy Return Authorizations' } %>

<% content_for :page_title do %>
  <i class="fa fa-arrow-right"></i> <%= Spree.t(:legacy_return_authorization) %> <%= @legacy_return_authorization.number %> (<%= Spree.t(@legacy_return_authorization.state.downcase) %>)
<% end %>


<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @legacy_return_authorization } %>
<%= form_for [:admin, @order, @legacy_return_authorization] do |f| %>
  <fieldset class="no-border-top">
    <%= render :partial => 'form', :locals => { :f => f } %>

    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button Spree.t('actions.update'), 'repeat' %>
      <span class="or"><%= Spree.t(:or) %></span>
      <%= button_link_to Spree.t('actions.cancel'), admin_order_legacy_return_authorizations_url(@order), :icon => 'remove' %>
    </div>
  </fieldset>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_legacy_return_authorizations-1.0.2 app/views/spree/admin/legacy_return_authorizations/edit.html.erb
solidus_legacy_return_authorizations-1.0.1 app/views/spree/admin/legacy_return_authorizations/edit.html.erb
solidus_legacy_return_authorizations-1.0.0 app/views/spree/admin/legacy_return_authorizations/edit.html.erb