From 4758357bc8adafe06108c8e965780563a515e63c Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 4 Apr 2020 20:27:22 -0500 Subject: [PATCH] simplified signup --- web/app/assets/stylesheets/web/main.scss | 14 +-- web/app/controllers/users_controller.rb | 4 + web/app/views/users/new.html.erb | 104 +++-------------------- 3 files changed, 25 insertions(+), 97 deletions(-) diff --git a/web/app/assets/stylesheets/web/main.scss b/web/app/assets/stylesheets/web/main.scss index cfdae525c..7cc20672b 100644 --- a/web/app/assets/stylesheets/web/main.scss +++ b/web/app/assets/stylesheets/web/main.scss @@ -330,8 +330,12 @@ body.web { // all custom CSS for the register page goes here .register-page { + display:inline-block; + .register-container { padding:0 10px 10px; + margin-left: 45px; + margin-top: 20px; } input.register-musician { @@ -364,6 +368,7 @@ body.web { div.register-as { margin-left:45px; + display:none; } input.register-fan { @@ -401,18 +406,15 @@ body.web { } - .register-left { - select { width:104%; } div.field { - margin-top:31px; - width:43%; - float:left; + margin-top: 18px; + width: 100%; } - } + .register-right { diff --git a/web/app/controllers/users_controller.rb b/web/app/controllers/users_controller.rb index c9b48d6af..e439281da 100644 --- a/web/app/controllers/users_controller.rb +++ b/web/app/controllers/users_controller.rb @@ -452,6 +452,10 @@ JS end end end + if instruments.length == 0 + # default to guitar when non-specified + instruments << {:instrument_id => "acoustic guitar", :proficiency_level => 3, :priority => 1} + end return instruments end diff --git a/web/app/views/users/new.html.erb b/web/app/views/users/new.html.erb index 8c2f46163..16a52d554 100644 --- a/web/app/views/users/new.html.erb +++ b/web/app/views/users/new.html.erb @@ -7,7 +7,6 @@ <%= form_for(@user, :url => @signup_postback, :method => :post) do |f| %> -
Register as a: @@ -23,99 +22,28 @@ <%= f.text_field :first_name %>
-
+
<%= f.text_field :last_name %>
-
-
- <%= f.label :country, "Country:" %> - -
- -
- -
- <%= f.label :state, "State/Province:" %> - -
- -
- <%= f.label :state, "City:" %> - -
- -
<%= f.label :password, "Choose a Password:" %> <%= f.password_field :password %>
-
+
<%= f.label :password_confirmation, "Verify Password:" %> <%= f.password_field :password_confirmation %>
-
-
- -
- - -

- -
- - -
- - <% Instrument.standard_list.each do |instrument| %> - - - - - <% end %> -
- _checkbox" name="jam_ruby_user[instruments][<%= instrument.id %>][selected]" type="checkbox"/><%= instrument.description %> - -
-
-
@@ -125,28 +53,22 @@
-
- <% if Rails.application.config.recaptcha_enable %> -
-
- <% end %> -
+
+ <% if Rails.application.config.recaptcha_enable %> +
+
+ <% end %> +
- +
+ <%= f.submit "CREATE ACCOUNT", class: "button-orange disabled", id:"create-account-submit"%> + <%= link_to "CANCEL", root_path, :class=>'button-grey' %> +
-
- <%= f.submit "CREATE ACCOUNT", class: "button-orange disabled", id:"create-account-submit"%> - <%= link_to "CANCEL", root_path, :class=>'button-grey' %> +
-

-
-
- <% end %>