%= form_for @payment, :url => {:action => :create}, :html => {:class => 'form-horizontal'} do |f| %> <%= f.hidden_field :account_id %> <%= f.hidden_field :target_invoice_id %> <% if can? :external_payment, Kaui::Payment %>
Currency: <%= @invoice.present? ? @invoice.currency : @account.currency %>
Leave blank to use account's default