* VRFS-1429 - instruments stay selected, and tos stays selected

This commit is contained in:
Seth Call 2014-07-01 13:19:33 -05:00
parent 726122041d
commit ba57c00dec
4 changed files with 7 additions and 2 deletions

View File

@ -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|

View File

@ -394,6 +394,10 @@ body.web {
width:100%;
}
}
.field.terms_of_service .field_with_errors {
display:inline;
}
}
ul {

View File

@ -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,

View File

@ -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>