2014-01-29 17:26:58 +00:00
|
|
|
|
script(id='modals/login.html', type="text/ng-template")
|
|
|
|
|
|
.modal-header
|
2014-01-29 17:37:51 +00:00
|
|
|
|
button.close(type='button', ng-click='$close()') ×
|
2014-01-29 17:26:58 +00:00
|
|
|
|
h4.modal-title=env.t('loginAndReg')
|
|
|
|
|
|
.modal-body
|
|
|
|
|
|
a(href='/auth/facebook')
|
|
|
|
|
|
img(src='/bower_components/habitrpg-shared/img/facebook-login-register.jpeg', alt=env.t('loginFacebookAlt'))
|
|
|
|
|
|
//can we add in google auth? I like google auth
|
|
|
|
|
|
h3 Or
|
|
|
|
|
|
ul.nav.nav-tabs
|
|
|
|
|
|
li.active
|
|
|
|
|
|
a(data-toggle='tab',data-target='#login-tab')=env.t('login')
|
|
|
|
|
|
li
|
|
|
|
|
|
a(data-toggle='tab',data-target='#register-tab')=env.t('register')
|
2014-01-28 01:16:12 +00:00
|
|
|
|
|
2014-01-29 17:26:58 +00:00
|
|
|
|
.tab-content
|
|
|
|
|
|
.tab-pane.active#login-tab
|
|
|
|
|
|
form(ng-submit='auth()', method='POST')
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='text', ng-model='loginUsername', placeholder=env.t('username'), name='username')
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='password', ng-model='loginPassword', placeholder=env.t('password'), name='password')
|
|
|
|
|
|
//-.control-group
|
|
|
|
|
|
label.checkbox
|
|
|
|
|
|
input(type='checkbox', ng-click='useUUID = !useUUID')
|
|
|
|
|
|
=env.t('useUUID')
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input.btn.btn-primary(type='submit', value=env.t('login'))
|
2014-01-28 01:16:12 +00:00
|
|
|
|
|
2014-01-29 17:26:58 +00:00
|
|
|
|
small=env.t('passMan')
|
2014-01-28 01:16:12 +00:00
|
|
|
|
|
2014-01-29 17:26:58 +00:00
|
|
|
|
// good god accordions have html ceremony
|
|
|
|
|
|
#forgot-password-accordion.accordion
|
|
|
|
|
|
.accordion-group
|
|
|
|
|
|
.accordion-heading
|
|
|
|
|
|
a.accordion-toggle(data-toggle='collapse', data-parent='#forgot-password-accordion', href='#forgot-password-group')=env.t('forgotPass')
|
|
|
|
|
|
#forgot-password-group.accordion-body.collapse
|
|
|
|
|
|
.accordion-inner
|
|
|
|
|
|
form#derby-auth-password-reset(ng-submit='passwordReset(passwordResetEmail)')
|
|
|
|
|
|
h3=env.t('emailNewPass')
|
|
|
|
|
|
//.alert.alert-success {.success.passwordReset}
|
|
|
|
|
|
//.control-group.{#if..errors.passwordReset}error{/}
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='text', name='email', placeholder=env.t('email') , ng-model='passwordResetEmail')
|
|
|
|
|
|
//span.help-inline {.errors.passwordReset}
|
|
|
|
|
|
input.btn(type='submit', value=env.t('submit'))
|
2014-01-28 01:16:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-29 17:26:58 +00:00
|
|
|
|
.tab-pane#register-tab
|
|
|
|
|
|
form(ng-submit='register()', name='registrationForm')
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='text', ng-model='registerVals.username', placeholder=env.t('username'), required)
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='email', ng-model='registerVals.email', placeholder=env.t('email'), required)
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='password', ng-model='registerVals.password', placeholder=env.t('password'), required)
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
input(type='password', ng-model='registerVals.confirmPassword', placeholder=env.t('passConfirm'), required)
|
|
|
|
|
|
.control-group
|
|
|
|
|
|
small=env.t('accept1Terms')
|
|
|
|
|
|
a(href='/static/terms' target='_blank')=env.t('terms')
|
|
|
|
|
|
=env.t('accept2Terms')
|
|
|
|
|
|
a(href='/static/privacy' target='_blank')=env.t('privacy')
|
|
|
|
|
|
| .
|
|
|
|
|
|
input.btn.btn-primary(type='submit', value=env.t('register'))
|