<% content_for :page_title do %>
  <%= Spree.t(:editing_gift_card) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:back_to_gift_cards_list), spree.admin_gift_cards_path, :icon => 'icon-arrow-left' %>
  </li>
<% end %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @gift_card } %>

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

<h2><%= Spree.t(:transactions) %><h2>
<ul>
  <% @gift_card.transactions.each do |transaction| %>
  <li><%= link_to "#{transaction.order.number}:" , admin_order_path(transaction.order) %> <%= number_to_currency transaction.amount %></li>
  <% end %>
</ul>

<% content_for :page_title do %>
  <%= Spree.t(:editing_gift_card) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:back_to_gift_cards_list), spree.admin_gift_cards_path, :icon => 'icon-arrow-left' %>
  </li>
<% end %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @gift_card } %>

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

<h2><%= Spree.t(:transactions) %><h2>
<ul>
  <% @gift_card.transactions.each do |transaction| %>
  <li><%= link_to "#{transaction.order.number}:" , edit_admin_order_path(transaction.order) %> <%= number_to_currency transaction.amount %></li>
  <% end %>
</ul>

Use correct path helper to link to orders associated with card
Use correct path helper to link to orders associated with card
