Skip to content

Commit

Permalink
Add settings_checkout_tabs sub section partial
Browse files Browse the repository at this point in the history
This partial will be related for settings related to actions related to
checking out including refund reasons, reimbursement types, return
reasons, and adjustment reasons.
  • Loading branch information
Murph33 committed Mar 14, 2016
1 parent c6f603f commit f04b9ef
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<% content_for :tabs do %>
<nav>
<ul class="tabs" data-hook="admin_settings_checkout_tabs">
<% if can?(:display, Spree::RefundReason) %>
<%= settings_tab_item Spree::RefundReason.model_name.human(count: :other), admin_refund_reasons_path %>
<% end %>
<% if can?(:display, Spree::ReimbursementType) %>
<%= settings_tab_item Spree::ReimbursementType.model_name.human(count: :other), admin_reimbursement_types_path %>
<% end %>
<% if can?(:display, Spree::ReturnReason) %>
<%= settings_tab_item Spree::ReturnReason.model_name.human(count: :other), admin_return_reasons_path %>
<% end %>
<% if can?(:display, Spree::AdjustmentReason) %>
<%= settings_tab_item Spree::AdjustmentReason.model_name.human(count: :other), admin_adjustment_reasons_path %>
<% end %>
</ul>
</nav>
<% end %>

0 comments on commit f04b9ef

Please sign in to comment.