Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 4b2016e

Browse files
committed
enabled registration from events page
1 parent df63c97 commit 4b2016e

File tree

2 files changed

+64
-4
lines changed

2 files changed

+64
-4
lines changed

app/views/events/show.html.erb

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,66 @@
2020

2121
<%= render partial: "shared/recently_shared" %>
2222

23-
<%= render partial: "shared/happening_now" %>
23+
<%= render partial: "shared/happening_now" %>
24+
25+
<!-- Modal -->
26+
<div id="register-modal" class="modal hide fade" tabindex="-1" role="dialog">
27+
<div class="modal-header"></div>
28+
<div class="modal-body">
29+
<div class="title"><h1>REGISTER USING AN EXISTING ACCOUNT</h1></div>
30+
<div class="content">
31+
<p>Using an existing account is quick and easy. Select the account you would like to use and we'll do the rest for you.</p>
32+
<ul class="unstyled inline">
33+
<li><a href="/auth/github" class="circle-orange"><span class="github">github</span></a></li>
34+
<li><a href="/auth/facebook" class="circle-orange"><span class="facebook">facebook</span></a></li>
35+
<li><a href="/auth/twitter" class="circle-orange"><span class="twitter">twitter</span></a></li>
36+
<li><a href="/auth/google_oauth2" class="circle-orange"><span class="googleplus">google+</span></a></li>
37+
</ul>
38+
</div>
39+
40+
<form class="form-horizontal jqTransform jqtransformdone">
41+
<div class="title"><h1>REGISTER USING YOUR EMAIL</h1></div>
42+
<div class="control-group">
43+
<label class="control-label" for="input-name">Username</label>
44+
<div class="controls" id="input-username-container">
45+
<input type="text" id="input-name">
46+
</div>
47+
</div>
48+
<div class="control-group">
49+
<label class="control-label" for="input-email">Email</label>
50+
<div class="controls" id="input-email-container">
51+
<input type="text" id="input-email">
52+
</div>
53+
</div>
54+
<div class="control-group">
55+
<label class="control-label" for="input-pwd">Password</label>
56+
<div class="controls" id="input-password-container">
57+
<input type="password" id="input-pwd">
58+
</div>
59+
<div class="help-block">8 characters with letters & numbers</div>
60+
</div>
61+
<div class="control-group">
62+
<label class="control-label" for="input-pwd-again">Password confirmation</label>
63+
<div class="controls" id="input-password-again-container">
64+
<input type="password" id="input-pwd-again">
65+
</div>
66+
</div>
67+
<div class="control-group">
68+
<div class="controls">
69+
<label class="checkbox">
70+
<input type="checkbox"> I agree to the <a href="/terms-of-service" target="_blank">terms of service</a>.*
71+
</label>
72+
</div>
73+
</div>
74+
<div class="control-group">
75+
<div class="controls">
76+
<div class="btn"><input id="sign-up-btn" type="submit" value="SIGN UP"></div>
77+
</div>
78+
</div>
79+
</form>
80+
</div>
81+
<div class="modal-footer"></div>
82+
<button type="button" class="close" data-dismiss="modal"></button>
83+
</div>
2484

2585
<% end %>

config/routes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
registrations: 'users/registrations',
1313
confirmations: 'users/confirmations',
1414
} do
15-
match '/users/registrations/new_third_party' => redirect("http://beta.topcoder.com")
16-
match '/signup/:id' => redirect("http://beta.topcoder.com")
17-
match "/signup" => redirect("http://beta.topcoder.com")
15+
match '/users/registrations/new_third_party', to: 'users/registrations#new_third_party', :as => 'new_third_party_user_registration'
16+
match '/signup/:id' => redirect("http://www.topcoder.com")
17+
match "/signup" => redirect("http://www.topcoder.com")
1818
get "users/unlock/new", :to => "users/passwords#unlock"
1919
end
2020

0 commit comments

Comments
 (0)