Sha256: 25f87e94a839f54022327054be7656a6533097c69459b2c4ef3b59a77379c579

Contents?: true

Size: 1.5 KB

Versions: 13

Compression:

Stored size: 1.5 KB

Contents

<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Payments"} %>
<br/>
<h2><%= t("credit_card_payment")%></h2>
<br/>
<b><%= t("credit_card")%>: </b> &nbsp; #<%= @creditcard_payment.creditcard.display_number %><br/>
<b><%= t("type")%> : </b> &nbsp; <%= @creditcard_payment.creditcard.cc_type.titleize %><br/>
<br/>         
<%=error_messages_for :creditcard_payment %>
<% form_for(@creditcard_payment, :url => object_url, :html => { :method => :put}) do |payment_form| %>
	<h4><%= t("billing_address")%></h4>
	<% payment_form.fields_for :creditcard do |creditcard_form| %>
	  <%= render :partial => 'admin/shared/form_address', :locals => {:f => creditcard_form} %>
	<% end %>
	<br/>
	<table class="index">
	  <tr>
	    <th><%= t("transaction") %></th>
	    <th><%= t("amount") %></th>
	    <th><%= t("response_code") %></th>
	    <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
	  </tr>
	  <% @creditcard_payment.txns.each do |t| %>
	    <tr>
	      <td><%=CreditcardTxn::TxnType.from_value t.txn_type.to_i%></td>
	      <td><%=number_to_currency t.amount%></td>
	      <td><%=t.response_code%></td>
	      <td><%=t.created_at.to_s(:date_time24)%></td>
	    </tr>
	  <% end %>
	</table>

	<p class="form-buttons">
	  <%= button t('update') %>
	</p>	

<% end %>
<%= link_to t("capture").titleize, capture_admin_order_creditcard_payment_url(@order, @creditcard_payment), :confirm => t('are_you_sure_you_want_to_capture') if @creditcard_payment.can_capture?  %> &nbsp;
<%= link_to t("list"), collection_url %>

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 app/views/admin/creditcard_payments/edit.html.erb
spree-enriquez-0.9.4 app/views/admin/creditcard_payments/edit.html.erb
spree-0.9.4 app/views/admin/creditcard_payments/edit.html.erb
spree-0.9.3 app/views/admin/creditcard_payments/edit.html.erb
spree-0.9.2 app/views/admin/creditcard_payments/edit.html.erb
spree-0.9.1 app/views/admin/creditcard_payments/edit.html.erb
spree-0.9.0 app/views/admin/creditcard_payments/edit.html.erb
spree-0.8.4 app/views/admin/creditcard_payments/edit.html.erb
spree-0.8.5 app/views/admin/creditcard_payments/edit.html.erb
spree-0.8.0 app/views/admin/creditcard_payments/edit.html.erb
spree-0.8.1 app/views/admin/creditcard_payments/edit.html.erb
spree-0.8.2 app/views/admin/creditcard_payments/edit.html.erb
spree-0.8.3 app/views/admin/creditcard_payments/edit.html.erb