diff --git a/app/views/payments/_form.html.erb b/app/views/payments/_form.html.erb index def2b42..036e7a6 100644 --- a/app/views/payments/_form.html.erb +++ b/app/views/payments/_form.html.erb @@ -33,7 +33,7 @@ <%= f.text_area :paypalcode, :class=>"input-xxlarge", :placeholder=>"PayPal-supplied code" %>
+ +<% if @payments %> -<% @payments.each do |payment| %> - -<% if payment.promoactive or (@current_user && @current_user.admin) %> -
<%= payment.description %>
-- <% if @current_user && @current_user.admin %> - <%= link_to 'Show', payment %> - <%= link_to 'Edit', edit_payment_path(payment) %> - <%= link_to 'Destroy', payment, method: :delete, data: { confirm: 'Are you sure?' } %> - <% end %> -
+ <% @payments.each do |payment| %> + + <% if payment.promoactive or (@current_user && @current_user.admin) %> +<%= payment.description %>
++ <% if @current_user && @current_user.admin %> + <%= link_to 'Show', payment %> + <%= link_to 'Edit', edit_payment_path(payment) %> + <%= link_to 'Destroy', payment, method: :delete, data: { confirm: 'Are you sure?' } %> + <% end %> +
+<%= raw(payment.paypalcode) %>
+<%= raw(payment.paypalcode) %>
-