Trying to get dynamic helptext for selecting payment methods
This commit is contained in:
@@ -30,8 +30,7 @@
|
||||
<%= f.select :member_level, [[nil],["None",0],["Unable",1],["Volunteer",10],["Associate ($25)",25],["Basic ($50)",50],["Plus ($100)",100]] %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :payment_method %> <i>(after changing this, please update your payment method to match.)</i><br />
|
||||
<%= f.select :payment_method, [[nil],["PayPal"],["Dwolla"],["Bill Pay"],["Check"],["Cash"],["Other"]] %>
|
||||
<%= render :partial => "/users/payment_methods", :locals => { :g => f } %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :current_skills %><br />
|
||||
|
||||
@@ -1 +1,16 @@
|
||||
<p>Welcome to the HeatSync Labs Members App.</p>
|
||||
<h1>Welcome to the HeatSync Labs Members App.</h1>
|
||||
<p>You can sign up to become a member here, but you'll need to visit the lab to get full access.</p>
|
||||
<% if user_signed_in? && current_user.member.to_i < current_user.member_level.to_i then %>
|
||||
<p class="alert">Looks like we haven't acknowledged a recent payment for you yet. This could be because we're slow, or this app just got started, but if in doubt please see your profile for payment instructions, or consider updating your membership level to something accurate.<br/>Thanks for supporting HeatSync!</p>
|
||||
<% end %>
|
||||
<h2>Cool Stats:</h2>
|
||||
<dl>
|
||||
<dt># of People in this DB:</dt>
|
||||
<dd><%= @num_users %> (<%= @recent_users %> in the last 7 days)</dd>
|
||||
<dt># of People Certified:</dt>
|
||||
<dd><%= @num_certs %> (<%= @recent_certs %> in the last 7 days)</dd>
|
||||
<dt># of Accesses Granted:</dt>
|
||||
<dd><%= @num_door_opens %> (<%= @recent_door_opens %> in the last 7 days)</dd>
|
||||
<dt># of Accesses Denied:</dt>
|
||||
<dd><%= @num_door_denieds %> (<%= @recent_door_denieds %> in the last 7 days)</dd>
|
||||
</dl>
|
||||
|
||||
@@ -63,8 +63,7 @@
|
||||
<%= f.select :member_level, [[nil],["None",0],["Unable",1],["Volunteer",10],["Associate",25],["Basic",50],["Plus",100]] %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :payment_method %><br />
|
||||
<%= f.select :payment_method, [[nil],["PayPal"],["Dwolla"],["Bill Pay"],["Check"],["Cash"],["Other"]] %>
|
||||
<%= render :partial => "/users/payment_methods", :locals => { :g => f } %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :phone %><br />
|
||||
|
||||
9
app/views/users/_payment_methods.html.erb
Normal file
9
app/views/users/_payment_methods.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<% @payment_methods = [[nil],["PayPal"],["Dwolla"],["Bill Pay"],["Check"],["Cash"],["Other"]]
|
||||
@payment_instructions = {nil => nil, :PayPal => "Set up a monthly recurring payment to hslfinances@gmail.com", :Dwolla => "Set up a monthly recurring payment to hslfinances@gmail.com", "Bill Pay" => "Have your bank send a monthly check to HeatSync Labs Treasurer, 140 W Main St, Mesa AZ 85201", :Check => "Mail to HeatSync Labs Treasurer, 140 W Main St, Mesa AZ 85201 OR put in the drop safe at the Lab with a deposit slip firmly attached each month.", :Cash => "Put in the drop safe at the Lab with a deposit slip firmly attached each month.", :Other => "Hmm... talk to a Treasurer!"} %>
|
||||
|
||||
<%= g.label :payment_method %> <i>(after changing this, please update your payment method to match.)</i><br />
|
||||
<%= g.select :payment_method, @payment_methods %>
|
||||
<% @payment_instructions.each_pair do |key, value| %>
|
||||
<span class="payment_instructions" id="pmt_<%= key %>"><%= value %></span>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user