From 8797381b6c215b9c5db304cf5d455a92012f109b Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 22 Jan 2014 08:38:55 -0500 Subject: [PATCH] Blocking buttons with Devise Authentication and cleaning up views --- app/assets/stylesheets/custom.css.scss | 13 ------------- app/controllers/schools_controller.rb | 3 ++- app/controllers/wrestlers_controller.rb | 3 ++- app/views/layouts/_header.html.erb | 5 ++--- app/views/schools/_form.html.erb | 2 +- app/views/schools/new.html.erb | 2 +- app/views/static_pages/index.html.erb | 4 +++- app/views/wrestlers/_form.html.erb | 2 +- app/views/wrestlers/new.html.erb | 2 +- 9 files changed, 13 insertions(+), 23 deletions(-) diff --git a/app/assets/stylesheets/custom.css.scss b/app/assets/stylesheets/custom.css.scss index 989267f..58aef00 100644 --- a/app/assets/stylesheets/custom.css.scss +++ b/app/assets/stylesheets/custom.css.scss @@ -123,19 +123,6 @@ footer { } -/* forms */ - -input, textarea, select, .uneditable-input { - border: 1px solid #bbb; - width: 100%; - margin-bottom: 15px; - @include box_sizing; -} - -input { - height: auto !important; -} - #error_explanation { color: #f00; ul { diff --git a/app/controllers/schools_controller.rb b/app/controllers/schools_controller.rb index db80dd3..59cce07 100644 --- a/app/controllers/schools_controller.rb +++ b/app/controllers/schools_controller.rb @@ -17,7 +17,8 @@ class SchoolsController < ApplicationController def new @school = School.new if params[:tournament] - @tournament = params[:tournament] + @tournament_field = params[:tournament] + @tournament = Tournament.find(params[:tournament]) end end diff --git a/app/controllers/wrestlers_controller.rb b/app/controllers/wrestlers_controller.rb index 1933d40..945b61e 100644 --- a/app/controllers/wrestlers_controller.rb +++ b/app/controllers/wrestlers_controller.rb @@ -16,7 +16,8 @@ class WrestlersController < ApplicationController def new @wrestler = Wrestler.new if params[:school] - @school = params[:school] + @school_field = params[:school] + @school = School.find(params[:school]) end end diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index e1e26ab..d591e25 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -6,11 +6,10 @@