* working on signup on welcome page

This commit is contained in:
Seth Call 2014-02-02 15:06:41 -06:00
parent 513fb2b8d4
commit 05e5a8cc11
4 changed files with 74 additions and 1 deletions

View File

@ -0,0 +1,37 @@
(function(context,$) {
"use strict";
context.JK = context.JK || {};
context.JK.SignupDialog = function(app) {
var logger = context.JK.logger;
var rest = context.JK.Rest();
var dialogId = '#signup-dialog';
function events() {
}
function beforeShow() {
}
function afterHide() {
}
function initialize(){
var dialogBindings = {
'beforeShow' : beforeShow,
'afterHide': afterHide
};
app.bindDialog('inviteUsers', dialogBindings);
}
this.initialize = initialize;
}
})(window, jQuery);

View File

@ -70,6 +70,9 @@
var userDropdown = new JK.UserDropdown(JK.app);
userDropdown.initialize(invitationDialog);
var signupDialog = new JK.SignupDialog(JK.app);
signupDialog.initialize();
}
})
</script>

View File

@ -0,0 +1,33 @@
<div class="dialog overlay-small" layout-id="signup" id="signup-dialog">
<!-- ftue header -->
<div class="content-head">
<h1>sign up for jamkazam</h1>
</div>
<!-- inner wrapper -->
<div class="overlay-inner">
<%= image_tag "content/button_facebook_signup.png", {:width => 249, :height => 46 } %>
<br>
<br><br>
<div class="center"><strong class="white">Or</strong></div>
<br>
<br>
<div class="center"><%= link_to "SIGN UP WITH YOUR EMAIL", signup_path, class: "button-orange block" %>
<br>
<div class="center">
<small>Already have an account? <a href="#" class='signin'>Sign In</a><br>
<br>
<a href="#" layout-action="close">Cancel</a></small>
</div>
</div>
<!-- end inner -->
<br clear="all">
</div>
<!-- end overlay content -->
</div>

View File

@ -3,7 +3,7 @@
<% end %>
<div class="clearall"></div>
<div class="login-wrapper">
<%= link_to image_tag("/assets/web/cta_button.png", :alt => "Sign up now for your free account!"), signup_path, class: "signup", id: "signup" %>
<%= link_to image_tag("/assets/web/cta_button.png", :alt => "Sign up now for your free account!"), signup_path, class: "signup", id: "signup", :'layout-link' => 'signup-dialog' %>
<div class="clearall"></div>
<%= link_to "Already have an account?", signin_path, class: "signin", id: "signin" %>
</div>