From d9b9fb1f6da39f45eee62ec13b806847fd23cfb9 Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Sun, 2 Mar 2014 18:14:40 -0500 Subject: the users helper wasnt being push --- app/views/sessions/new.html.erb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/views/sessions/new.html.erb (limited to 'app/views') diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb new file mode 100644 index 0000000..f942cf6 --- /dev/null +++ b/app/views/sessions/new.html.erb @@ -0,0 +1,18 @@ +

Sign in

+ +
+
+ <%= form_for(:session, url: sessions_path) do |f| %> + + <%= f.label :email %> + <%= f.text_field :email %> + + <%= f.label :password %> + <%= f.password_field :password %> + + <%= f.submit "Sign in", class: "btn btn-large btn-primary" %> + <% end %> + +

New user? <%= link_to "Sign up now!", signup_path %>

+
+
-- cgit v1.2.3-2-g168b From 931c352e516adfac175eec5eafee9ea8e3311556 Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sun, 2 Mar 2014 18:38:11 -0500 Subject: Made the button on the homepage redirect to the signup page. --- app/views/static/homepage.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/static/homepage.html.erb b/app/views/static/homepage.html.erb index 760e087..4d52e5b 100644 --- a/app/views/static/homepage.html.erb +++ b/app/views/static/homepage.html.erb @@ -4,7 +4,7 @@

Welcome to Leaguer

This is a tournment management system designed to be used for any team sport. Our peer review system ensures that the best players move on to the next round! Try creating a new tournament and having people sign up for it.

-

<%= link_to 'Log In / Sign Up', "#", :class => "btn btn-warning btn-lg", :role => "button" %> <%= link_to 'See Ongoing Tournaments', tournaments_path, :class => "btn btn-warning btn-lg", :role => "button" %>

+

<%= link_to 'Log In / Sign Up', "signup", :class => "btn btn-warning btn-lg", :role => "button" %> <%= link_to 'See Ongoing Tournaments', tournaments_path, :class => "btn btn-warning btn-lg", :role => "button" %>

- \ No newline at end of file + -- cgit v1.2.3-2-g168b From e6b2993ad072d0cad2e52997c7957aae0a03415c Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Sun, 2 Mar 2014 20:06:40 -0500 Subject: I changed the user controller --- app/views/users/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 418f2e2..331abd4 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -19,7 +19,7 @@

<%= f.label :password_confirm %>
- <%= f.text_field :password_confirm %> + <%= f.text_field :password_confirmation %>

<%= f.submit %> -- cgit v1.2.3-2-g168b From 3e01db11def43419dd42727485e4005f78687c08 Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sun, 2 Mar 2014 22:12:09 -0500 Subject: Since I don't know how to do stuff with forms, I edited the actual HTML to fix where the form submits to. Tomer should help correct it. --- app/views/users/new.html.erb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'app/views') diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 331abd4..715d40e 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -1,5 +1,6 @@

Sign Up

+<% if false %> <%= form_for :user do |f| %>

<%= f.label :name %>
@@ -25,3 +26,32 @@ <%= f.submit %>

<% end %> + + +<% end %> + +
+

+
+ +

+

+
+ +

+

+
+ +

+

+
+ +

+

+
+ +

+

+ +

+
\ No newline at end of file -- cgit v1.2.3-2-g168b From d220b5f8e86d1c8b4503948c09f2497d11710d98 Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Mon, 3 Mar 2014 11:40:05 -0500 Subject: Some of the stuff I forgot to commit last night. Updated and cleaned up some pages as well as getting the gameType listing to work. --- app/views/layouts/application.html.erb | 1 + app/views/tournaments/index.html.erb | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'app/views') diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8a81c0a..3910cf6 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,6 +5,7 @@ <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> + <%= yield :head %>