Skip to content

Instantly share code, notes, and snippets.

@edoloughlin
Created December 16, 2010 17:01
Show Gist options
  • Save edoloughlin/743651 to your computer and use it in GitHub Desktop.
Save edoloughlin/743651 to your computer and use it in GitHub Desktop.
#####################################
#
# Register
beta_registration_complete_dialog = ->
div id:'registration-complete', ->
p class: 'msg-title', -> 'Your registration is complete'
div class: 'msg-body', ->
p 'Thank you!'
p 'You have successfully registered for our beta.'
p 'You are now logged in and can continue to your account.'
p 'We have sent a confirmation email to ', ->
span class: 'email', -> '@email'
'Please click on the link in this email to confirm your email address.'
p id: 'continue-button', class: 'button', ->
a href: '/account', -> 'Continue'
#####################################
#
# Login
error_para = ->
p class: 'error', id: @error_id -> @error_text
login_form = ->
div id: @div_id, ->
div id: 'error-message'
form id: 'login_form', ->
if @is_embedded
p 'Email ', -> input id:'email', name:'email'
p 'Password ', -> input id:'password', name:'password', type:'password'
input id:'submit', type:'submit', value:'Log in'
else
p 'Email: ', -> input id:'email', name:'email'
p 'Password: ', -> input id:'password', name:'password', type:'password'
input id:'submit', type:'submit', value:'Log in'
a href:'', id:'forgot_password', -> 'Forgot your password?'
logged_in = ->
div id:'logged_in', ->
p 'Logged in as #{@email}'
a href:"/logout", -> 'Logout'
login_error = ->
div id:'login_error', ->
p class:'error_message', -> '@error_message'
p 'Email: ', -> input id:'email', name:'email'
p 'Password: ', -> input id:'password', name:'password', type:'password'
input id:"submit", type:"submit"
hr width:'100%'
a href:"/lost_password", -> 'Reset password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment