app/overrides/spree/admin/users/edit.rb in spree_reffiliate-2.3.1 vs app/overrides/spree/admin/users/edit.rb in spree_reffiliate-2.4.1
- old
+ new
@@ -2,11 +2,11 @@
:virtual_path => "spree/admin/users/edit",
:name => "referral_fieldset",
:insert_after => "[data-hook='admin_user_api_key']"
) do
<<-CODE.chomp
-<fieldset>
+<fieldset data-hook="admin_user_referral_table">
<legend>Referral Information</legend>
<table>
<tr>
<th>Referred by</th>
<td>
@@ -26,10 +26,10 @@
<th>Referred orders</th>
<td>
<%= "No referred orders yet." if @user.referral.referred_orders.count == 0 %>
<ol style="margin-left: 20px;">
<% @user.referral.referred_orders.each do |order| %>
- <li><%= link_to order.number, edit_admin_order_path(order) %></li>
+ <li><%= link_to order.number, edit_admin_order_path(order) %> (<%= order.state %>)</li>
<% end %>
<ol>
</td>
<tr>
<tr>