add navbar link to curriculum and get rid of email fields on profile
parent
557cfa6952
commit
7b17b35399
|
@ -14,15 +14,6 @@ block content
|
||||||
label.col-sm-2.control-label(for='name') Name
|
label.col-sm-2.control-label(for='name') Name
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
|
input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
|
||||||
.form-group
|
|
||||||
label.col-sm-2.control-label(for='gender') Gender
|
|
||||||
.col-sm-4
|
|
||||||
label.radio
|
|
||||||
input(type='radio', checked=user.profile.gender=='male', name='gender', value='male', data-toggle='radio')
|
|
||||||
span Male
|
|
||||||
label.radio
|
|
||||||
input(type='radio', checked=user.profile.gender=='female', name='gender', value='female', data-toggle='radio')
|
|
||||||
span Female
|
|
||||||
.form-group
|
.form-group
|
||||||
label.col-sm-2.control-label(for='location') Location
|
label.col-sm-2.control-label(for='location') Location
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
|
@ -31,49 +22,15 @@ block content
|
||||||
label.col-sm-2.control-label(for='website') Website
|
label.col-sm-2.control-label(for='website') Website
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
input.form-control(type='text', name='website', id='website', value='#{user.profile.website}')
|
input.form-control(type='text', name='website', id='website', value='#{user.profile.website}')
|
||||||
.form-group
|
|
||||||
label.col-sm-2.control-label(for='gravatar') Gravatar
|
|
||||||
.col-sm-4
|
|
||||||
img(src="#{user.gravatar()}", class='profile', width='100', height='100')
|
|
||||||
.form-group
|
.form-group
|
||||||
.col-sm-offset-2.col-sm-4
|
.col-sm-offset-2.col-sm-4
|
||||||
button.btn.btn.btn-primary(type='submit')
|
button.btn.btn.btn-primary(type='submit')
|
||||||
span.ion-edit
|
span.ion-edit
|
||||||
| Update Profile
|
| Update Profile
|
||||||
|
|
||||||
.page-header
|
|
||||||
h3 Change Password
|
|
||||||
|
|
||||||
form.form-horizontal(action='/account/password', method='POST')
|
|
||||||
input(type='hidden', name='_csrf', value=_csrf)
|
|
||||||
.form-group
|
|
||||||
label.col-sm-3.control-label(for='password') New Password
|
|
||||||
.col-sm-4
|
|
||||||
input.form-control(type='password', name='password', id='password')
|
|
||||||
.form-group
|
|
||||||
label.col-sm-3.control-label(for='confirmPassword') Confirm Password
|
|
||||||
.col-sm-4
|
|
||||||
input.form-control(type='password', name='confirmPassword', id='confirmPassword')
|
|
||||||
.form-group
|
|
||||||
.col-sm-offset-3.col-sm-4
|
|
||||||
button.btn.btn.btn-primary(type='submit')
|
|
||||||
span.ion-locked
|
|
||||||
| Change Password
|
|
||||||
|
|
||||||
.page-header
|
|
||||||
h3 Delete Account
|
|
||||||
|
|
||||||
p You can delete your account, but keep in mind this action is irreversible.
|
p You can delete your account, but keep in mind this action is irreversible.
|
||||||
form(action='/account/delete', method='POST')
|
form(action='/account/delete', method='POST')
|
||||||
input(type='hidden', name='_csrf', value=_csrf)
|
input(type='hidden', name='_csrf', value=_csrf)
|
||||||
button.btn.btn-danger(type='submit')
|
button.btn.btn-danger(type='submit')
|
||||||
span.ion-trash-b
|
span.ion-trash-b
|
||||||
| Delete my account
|
| Delete my account
|
||||||
|
|
||||||
.page-header
|
|
||||||
h3 Linked Accounts
|
|
||||||
|
|
||||||
if user.twitter
|
|
||||||
p: a.text-danger(href='/account/unlink/twitter') Unlink your Twitter account
|
|
||||||
else
|
|
||||||
p: a(href='/auth/twitter') Link your Twitter account
|
|
||||||
|
|
|
@ -24,11 +24,14 @@
|
||||||
| #{user.profile.name || user.email || user.id}
|
| #{user.profile.name || user.email || user.id}
|
||||||
i.caret
|
i.caret
|
||||||
ul.dropdown-menu
|
ul.dropdown-menu
|
||||||
|
li
|
||||||
|
a(href='/curriculum')
|
||||||
|
span.ion-map
|
||||||
|
| My curriculum
|
||||||
li
|
li
|
||||||
a(href='/account')
|
a(href='/account')
|
||||||
span.ion-person
|
span.ion-person
|
||||||
| My Account
|
| My Account
|
||||||
li.divider
|
|
||||||
li
|
li
|
||||||
a(href='/logout')
|
a(href='/logout')
|
||||||
span.ion-log-out
|
span.ion-log-out
|
||||||
|
|
Loading…
Reference in New Issue