Purchase credits for @<%= @purchaser.username %>
<% if @organizations %>
<% @organizations.each do |org| %>
<% unless @purchaser.id == org.id %>
Switch to <%= org.name %>
<% end %>
<% end %>
<% end %>
<% unless @purchaser.is_a? User %>
Switch to personal purchase
<% end %>
<% if flash[:error].present? %>
<% end %>
Credits are used for <%= community_name %> listings as well as upcoming products and services.
Contact <%= email_link(additional_info: { subject: "Custom Bulk Pricing/Partnerships" }) %> for custom bulk pricing and partnerships.
How many credits does one listing cost?
All listings cost 1 credit , except:
products/tools: 5 credits
job listings: 25 credits
Buying more credits upfront makes listings more cost-effective.
25 credits purchased today costs $100. 25 credits purchased individually will cost $125, etc.
How many credits <%= params[:organization_id].present? ? "does #{@purchaser.name}" : "do I currently" %> have?
<%= params[:organization_id].present? ? "#{@purchaser.name} has" : "You have" %> <%= @purchaser.credits.where(spent: false).size %> credits.
How can I earn credits?
Members receive 5 credits for every profile badge you earn.
<%= form_for(@credit) do |f| %>
Amount to Purchase
<%= f.number_field :number_to_purchase,
id: "amount-input",
placeholder: "Enter any amount", autocomplete: "off",
min: "0",
max: "10000000",
required: true %>
<% if @purchaser.is_a? Organization %>
<% end %>
Complete Purchase
<% if @purchaser.is_a? Organization %>
*All org admins have access to credits owned by organization
<% end %>
<% end %>