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