Sha256: c8fa325a346f996c863dc84c7822a8c199e99d3686a03359812f0de999e8607f

Contents?: true

Size: 1.45 KB

Versions: 23

Compression:

Stored size: 1.45 KB

Contents

<div id="payment">
	<h3>Payment</h3>
	<%= f.fields_for :line_items, @order.line_items.detect { |li| li.line_item_type == "payment" } do |line_item_f| %>
		<%= line_item_f.hidden_field :line_item_type, { :value => "payment" } %>
		<%= line_item_f.fields_for :payment do |payment| %>
			<div class="item">
			<%= payment.label :number %>
			<% if @order.errors.keys.include?("payments.number".to_sym) %>
			<span class="field_with_errors">
			<%= payment.text_field :number, :class => "required" %>
			</span>
			<% else -%>
			<%= payment.text_field :number, :class => "required" %>
			<% end -%>
			</div>
	
			<div class="item">
			<%= payment.label :verification_value %>
			<% if @order.errors.keys.include?("payments.verification_value".to_sym) %>
			<span class="field_with_errors">
			<%= payment.text_field :verification_value, :class => "required" %>
			</span>
			<% else -%>
			<%= payment.text_field :verification_value, :class => "required" %>
			<% end -%>
			</div>
	
			<div class="item">
			<%= payment.label :month %>
			<% if @order.errors.keys.include?("payments.verification_value".to_sym) %>
			<span class="field_with_errors">
			<%= payment.select :month, 1.upto(12).to_a %> /
			<%= payment.select :year, Time.now.year.upto(Time.now.year + 10).to_a %>
			</span>
			<% else -%>
			<%= payment.select :month, 1.upto(12).to_a %> /
			<%= payment.select :year, Time.now.year.upto(Time.now.year + 10).to_a %>
			<% end -%>
			</div>
		<% end -%>
	<% end -%>
</div>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
piggybak-0.7.7 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.6 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.5 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.34 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.4 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.3 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.2 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.1 app/views/piggybak/orders/_payment.html.erb
piggybak-0.7.0 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.33 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.32 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.31 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.30 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.29 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.28 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.27 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.26 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.25 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.24 app/views/piggybak/orders/_payment.html.erb
piggybak-0.6.23 app/views/piggybak/orders/_payment.html.erb