* VRFS-1429 - instruments stay selected, and tos stays selected
This commit is contained in:
parent
726122041d
commit
ba57c00dec
|
|
@ -776,6 +776,7 @@ module JamRuby
|
|||
signup_confirm_url = options[:signup_confirm_url]
|
||||
affiliate_referral_id = options[:affiliate_referral_id]
|
||||
|
||||
puts "terms of service: #{terms_of_service}"
|
||||
user = User.new
|
||||
|
||||
UserManager.active_record_transaction do |user_manager|
|
||||
|
|
|
|||
|
|
@ -394,6 +394,10 @@ body.web {
|
|||
width:100%;
|
||||
}
|
||||
}
|
||||
|
||||
.field.terms_of_service .field_with_errors {
|
||||
display:inline;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class UsersController < ApplicationController
|
|||
|
||||
birth_date = fixup_birthday(params[:jam_ruby_user]["birth_date(2i)"], params[:jam_ruby_user]["birth_date(3i)"], params[:jam_ruby_user]["birth_date(1i)"])
|
||||
location = { :country => params[:jam_ruby_user][:country], :state => params[:jam_ruby_user][:state], :city => params[:jam_ruby_user][:city]}
|
||||
terms_of_service = params[:jam_ruby_user][:terms_of_service].nil? ? false : true
|
||||
terms_of_service = params[:jam_ruby_user][:terms_of_service].nil? || params[:jam_ruby_user][:terms_of_service] == "0"? false : true
|
||||
musician = params[:jam_ruby_user][:musician]
|
||||
|
||||
@user = UserManager.new.signup(remote_ip: request.remote_ip,
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
<div class="field terms_of_service">
|
||||
<small>
|
||||
<input id="jam_ruby_user_terms_of_service" name="jam_ruby_user[terms_of_service]" type="checkbox"/>
|
||||
<%= f.check_box :terms_of_service %>
|
||||
<span>I have read and agree to the JamKazam <%= link_to "terms of service", corp_terms_path, :rel => "external" %>
|
||||
.</span>
|
||||
</small>
|
||||
|
|
|
|||
Loading…
Reference in New Issue