<% lists = PaymentSetupList.all.asc(:created_at).map{|v| v} %>
<%= t('payment_settup.need_script') %>
<%= t('payment_settup.pay_options') %> :
<%= select_tag "pay_options", options_for_select(lists.map{|v| t("payment_settup.#{v.payment_type}")}), :class => "pay_options" %>
<% lists.each_with_index do |list,index1| %>
<%= t('payment_settup.amount') %> :
<%= payment_pay.amount %>
<% list.get_pay_array.each do |child| %>
<% if (!child[2].blank? && child[1]=='select') || child[1]!='select'%>
<%= t("#{list.payment_type}.#{child[0]}") %> :
<% end %> <% if child[1]=='select' %> <% if !child[2].blank? %>
<% class_par = " #{child[4]}" if !child[4].nil? %> <%= select_tag("#{child[0]}",options_for_select(child[2],:selected => [child[3]]),:class => "payment_setup#{class_par}") %>
<% end %> <% end %>
<% end %>
<% end %>