|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
extends ./_layout.pug
|
|
|
|
|
|
|
|
|
|
block adminContent
|
|
|
|
|
#page-type-admin-profile
|
|
|
|
|
.hero
|
|
|
|
|
h1.title#title My Profile
|
|
|
|
|
h2.subtitle Profile and authentication info
|
|
|
|
@ -10,22 +11,22 @@ block adminContent
|
|
|
|
|
section
|
|
|
|
|
label.label Email
|
|
|
|
|
p.control.is-fullwidth
|
|
|
|
|
input.input(type='text', placeholder='Email', value=user.email, disabled=(user.provider !== 'local'))
|
|
|
|
|
input.input(type='text', placeholder='Email', value=user.email, disabled)
|
|
|
|
|
if user.provider == 'local'
|
|
|
|
|
section
|
|
|
|
|
label.label Password
|
|
|
|
|
p.control.is-fullwidth
|
|
|
|
|
input.input(type='password', placeholder='Password', value='********')
|
|
|
|
|
input.input(type='password', placeholder='Password', value='********', v-model='password')
|
|
|
|
|
section
|
|
|
|
|
label.label Verify Password
|
|
|
|
|
p.control.is-fullwidth
|
|
|
|
|
input.input(type='password', placeholder='Password', value='********')
|
|
|
|
|
input.input(type='password', placeholder='Password', value='********', v-model='passwordVerify')
|
|
|
|
|
section
|
|
|
|
|
label.label Display Name
|
|
|
|
|
p.control.is-fullwidth
|
|
|
|
|
input.input(type='text', placeholder='John Smith', value=user.name)
|
|
|
|
|
input.input(type='text', placeholder='John Smith', v-model='name')
|
|
|
|
|
section
|
|
|
|
|
button.button.is-green
|
|
|
|
|
button.button.is-green(v-on:click='saveUser')
|
|
|
|
|
i.icon-check
|
|
|
|
|
span Save Changes
|
|
|
|
|
.column
|
|
|
|
@ -43,3 +44,6 @@ block adminContent
|
|
|
|
|
p.control= userMoment(user.createdAt).format('LL')
|
|
|
|
|
label.label Last Profile Update
|
|
|
|
|
p.control= userMoment(user.updatedAt).format('LL')
|
|
|
|
|
|
|
|
|
|
script(type='text/javascript').
|
|
|
|
|
var usrDataName = "!{user.name}";
|