<% if current_user -%> <%= f.label :email %> <%= f.text_field :email, { :readonly => true, :class => "readonly" } %> <% if false -%> or <%= link_to 'LOGOUT', destroy_user_session_path, :method => :delete, :class => "last" %> <% end -%> <% else -%> <%= f.label :email %> <%= f.text_field :email %> <% if false -%> or <%= link_to 'LOG IN', new_user_session_path %> <% end -%> <% end -%>
<%= f.label :phone %> <%= f.text_field :phone %>
<%= shipment.label :shipping_method_id %> <%= shipment.select :shipping_method_id, [] %>
<% end -%><%= payment.label :number %> <% if @order.errors.keys.include?("payments.number".to_sym) %> <%= payment.text_field :number %> <% else -%> <%= payment.text_field :number %> <% end -%>
<%= payment.label :verification_value %> <% if @order.errors.keys.include?("payments.verification_value".to_sym) %> <%= payment.text_field :verification_value %> <% else -%> <%= payment.text_field :verification_value %> <% end -%>
<%= payment.label :month %> <% if @order.errors.keys.include?("payments.verification_value".to_sym) %> <%= payment.select :month, 1.upto(12) %> / <%= payment.select :year, Time.now.year.upto(Time.now.year + 10) %> <% else -%> <%= payment.select :month, 1.upto(12) %> / <%= payment.select :year, Time.now.year.upto(Time.now.year + 10) %> <% end -%>
<% end -%>