2014-02-12 05:23:40 -05:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2014-06-09 05:56:26 -04:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
|
2014-06-20 06:15:25 -04:00
|
|
|
.card.account-settings
|
2014-06-09 05:56:26 -04:00
|
|
|
.page-header
|
|
|
|
h1 Account Settings
|
2014-06-20 06:15:25 -04:00
|
|
|
form-messages(ng-cloak, for="settingsForm")
|
|
|
|
.alert.alert-success(ng-show="settingsForm.response.success")
|
|
|
|
| Thanks, your settings have been updated.
|
|
|
|
form-messages(ng-cloak, for="changePasswordForm")
|
2014-06-09 05:56:26 -04:00
|
|
|
.container-fluid
|
2014-06-20 06:15:25 -04:00
|
|
|
.row(ng-cloak)
|
2014-06-09 05:56:26 -04:00
|
|
|
.col-md-5
|
|
|
|
h3 Update Account Info
|
2014-06-20 06:15:25 -04:00
|
|
|
form(async-form="settings", name="settingsForm", action="/user/settings", novalidate)
|
2014-06-09 05:56:26 -04:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
|
|
|
.form-group
|
|
|
|
label(for='email') Email
|
2014-06-20 06:15:25 -04:00
|
|
|
input.form-control(
|
|
|
|
type='email',
|
|
|
|
name='email',
|
|
|
|
placeholder="email@example.com"
|
|
|
|
required,
|
|
|
|
ng-model="email",
|
|
|
|
ng-init="email = #{JSON.stringify(user.email)}"
|
|
|
|
)
|
|
|
|
span.small.text-primary(ng-show="settingsForm.email.$invalid && settingsForm.email.$dirty")
|
|
|
|
| Must be an email address
|
2014-06-09 05:56:26 -04:00
|
|
|
.form-group
|
|
|
|
label(for='firstName').control-label First Name
|
2014-06-20 06:15:25 -04:00
|
|
|
input.form-control(
|
|
|
|
type='text',
|
|
|
|
name='first_name',
|
|
|
|
value=user.first_name
|
|
|
|
)
|
2014-06-09 05:56:26 -04:00
|
|
|
.form-group
|
|
|
|
label(for='lastName').control-label Last Name
|
2014-06-20 06:15:25 -04:00
|
|
|
input.form-control(
|
|
|
|
type='text',
|
|
|
|
name='last_name',
|
|
|
|
value=user.last_name
|
|
|
|
)
|
2014-06-09 05:56:26 -04:00
|
|
|
.actions
|
2014-06-20 06:15:25 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
type='submit',
|
|
|
|
ng-disabled="settingsForm.$invalid"
|
|
|
|
) Update
|
2014-02-12 05:23:40 -05:00
|
|
|
|
2014-06-09 05:56:26 -04:00
|
|
|
.col-md-5.col-md-offset-1
|
|
|
|
h3 Change Password
|
2014-06-20 06:15:25 -04:00
|
|
|
form(async-form="changepassword", name="changePasswordForm", action="/user/password/update", novalidate)
|
2014-06-09 05:56:26 -04:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
|
|
|
.form-group
|
|
|
|
label(for='currentPassword') Current Password
|
2014-06-20 06:15:25 -04:00
|
|
|
input.form-control(
|
|
|
|
type='password',
|
|
|
|
name='currentPassword',
|
|
|
|
placeholder='*********',
|
|
|
|
ng-model="currentPassword",
|
|
|
|
required
|
|
|
|
)
|
|
|
|
span.small.text-primary(ng-show="changePasswordForm.currentPassword.$invalid && changePasswordForm.currentPassword.$dirty")
|
|
|
|
| Required
|
2014-06-09 05:56:26 -04:00
|
|
|
.form-group
|
|
|
|
label(for='newPassword1') New Password
|
2014-06-20 06:15:25 -04:00
|
|
|
input.form-control(
|
|
|
|
type='password',
|
|
|
|
name='newPassword1',
|
|
|
|
placeholder='*********',
|
|
|
|
ng-model="newPassword1",
|
|
|
|
required
|
|
|
|
)
|
|
|
|
span.small.text-primary(ng-show="changePasswordForm.newPassword1.$invalid && changePasswordForm.newPassword1.$dirty")
|
|
|
|
| Required
|
2014-06-09 05:56:26 -04:00
|
|
|
.form-group
|
|
|
|
label(for='newPassword2') Confirm New Password
|
2014-06-20 06:15:25 -04:00
|
|
|
input.form-control(
|
|
|
|
type='password',
|
|
|
|
name='newPassword2',
|
|
|
|
placeholder='*********',
|
|
|
|
ng-model="newPassword2",
|
|
|
|
equals="{{newPassword1}}"
|
|
|
|
)
|
|
|
|
span.small.text-primary(ng-show="changePasswordForm.newPassword2.$invalid && changePasswordForm.newPassword2.$dirty")
|
|
|
|
| Doesn't match
|
2014-06-09 05:56:26 -04:00
|
|
|
.actions
|
2014-06-20 06:15:25 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
type='submit',
|
|
|
|
ng-disabled="changePasswordForm.$invalid"
|
|
|
|
) Change
|
2014-02-12 05:23:40 -05:00
|
|
|
|
2014-06-09 05:56:26 -04:00
|
|
|
hr.soften
|
|
|
|
|
|
|
|
h3 Dropbox Integration
|
|
|
|
span.small
|
|
|
|
a(href='/help/kb/dropbox-2') (Learn more)
|
|
|
|
- if(!userHasDropboxFeature)
|
2014-02-12 05:23:40 -05:00
|
|
|
.alert.alert-info Dropbox sync is a premium feature
|
|
|
|
a.btn.btn-info(href='/user/subscription/plans') Upgrade
|
|
|
|
- else if(userIsRegisteredWithDropbox)
|
|
|
|
.alert.alert-success Account is linked!
|
|
|
|
row
|
|
|
|
a(href='/dropbox/unlink').btn Unlink Dropbox
|
|
|
|
- else
|
|
|
|
a.btn.btn-info(href='/dropbox/beginAuth') Link to dropbox
|
|
|
|
|
2014-06-09 05:56:26 -04:00
|
|
|
hr.soften
|
2014-02-12 05:23:40 -05:00
|
|
|
|
2014-06-09 05:56:26 -04:00
|
|
|
p
|
|
|
|
small
|
|
|
|
| Every few months we send a news letter out summarizing the new features available.<br>
|
|
|
|
| If you would prefer to not receive this email then you are free to unsubscribe below at any time.
|
|
|
|
a#unsubscribeFromNewsletter(data-csrf=csrfToken) Click here to Unsubscribe
|
2014-02-22 06:26:36 -05:00
|
|
|
|
2014-06-09 05:56:26 -04:00
|
|
|
p Need to leave?
|
|
|
|
a#deleteUserAccount(data-csrf=csrfToken) Delete your account
|