<%= form_for(@refund, :url => { :action => :create }, :html => { :class => "form-horizontal" }) do |f| %> <%= hidden_field_tag :account_id, @account_id %> <%= hidden_field_tag :payment_id, @payment_id %>
<%= f.label :adjusted, "Adjust Invoice?", :class => "control-label" %>
<%= f.label :amount, "Refund amount", :class => "control-label" %>
<%= f.text_field :amount, :value => @payment.amount, :class => 'input-small' %>

<%= @account.currency %>

<%= label_tag :reason, "Reason", :class => "control-label" %>
<%= select_tag :reason, options_for_select(Kaui::Refund::SAMPLE_REASON_CODES) %>
<%= label_tag :comment, "Comment", :class => "control-label" %>
<%= text_area_tag :comment, "", :rows => 3, :class => 'input-xlarge' %>
<%= button_tag "Create refund", :class =>"btn btn-primary" %> <%= link_to 'Back', :back, :class => 'btn' %>
<% end %>