mirror of https://github.com/requarks/wiki
parent
2d354d61d6
commit
f2dd84a0e4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,45 +1,49 @@
|
|||||||
extends ./_layout.pug
|
extends ./_layout.pug
|
||||||
|
|
||||||
block adminContent
|
block adminContent
|
||||||
.hero
|
#page-type-admin-profile
|
||||||
h1.title#title My Profile
|
.hero
|
||||||
h2.subtitle Profile and authentication info
|
h1.title#title My Profile
|
||||||
.form-sections
|
h2.subtitle Profile and authentication info
|
||||||
.columns.is-gapless
|
.form-sections
|
||||||
.column.is-two-thirds
|
.columns.is-gapless
|
||||||
section
|
.column.is-two-thirds
|
||||||
label.label Email
|
|
||||||
p.control.is-fullwidth
|
|
||||||
input.input(type='text', placeholder='Email', value=user.email, disabled=(user.provider !== 'local'))
|
|
||||||
if user.provider == 'local'
|
|
||||||
section
|
section
|
||||||
label.label Password
|
label.label Email
|
||||||
p.control.is-fullwidth
|
p.control.is-fullwidth
|
||||||
input.input(type='password', placeholder='Password', value='********')
|
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='********', v-model='password')
|
||||||
|
section
|
||||||
|
label.label Verify Password
|
||||||
|
p.control.is-fullwidth
|
||||||
|
input.input(type='password', placeholder='Password', value='********', v-model='passwordVerify')
|
||||||
section
|
section
|
||||||
label.label Verify Password
|
label.label Display Name
|
||||||
p.control.is-fullwidth
|
p.control.is-fullwidth
|
||||||
input.input(type='password', placeholder='Password', value='********')
|
input.input(type='text', placeholder='John Smith', v-model='name')
|
||||||
section
|
section
|
||||||
label.label Display Name
|
button.button.is-green(v-on:click='saveUser')
|
||||||
p.control.is-fullwidth
|
i.icon-check
|
||||||
input.input(type='text', placeholder='John Smith', value=user.name)
|
span Save Changes
|
||||||
section
|
.column
|
||||||
button.button.is-green
|
.panel
|
||||||
i.icon-check
|
label.label Provider
|
||||||
span Save Changes
|
p.control.account-profile-provider
|
||||||
.column
|
case user.provider
|
||||||
.panel
|
when 'local': i.icon-server
|
||||||
label.label Provider
|
when 'windowslive': i.icon-windows2.is-blue
|
||||||
p.control.account-profile-provider
|
when 'google': i.icon-google.is-blue
|
||||||
case user.provider
|
when 'facebook': i.icon-facebook.is-purple
|
||||||
when 'local': i.icon-server
|
default: i.icon-warning
|
||||||
when 'windowslive': i.icon-windows2.is-blue
|
= t('auth:providers.' + user.provider)
|
||||||
when 'google': i.icon-google.is-blue
|
label.label Member since
|
||||||
when 'facebook': i.icon-facebook.is-purple
|
p.control= userMoment(user.createdAt).format('LL')
|
||||||
default: i.icon-warning
|
label.label Last Profile Update
|
||||||
= t('auth:providers.' + user.provider)
|
p.control= userMoment(user.updatedAt).format('LL')
|
||||||
label.label Member since
|
|
||||||
p.control= userMoment(user.createdAt).format('LL')
|
script(type='text/javascript').
|
||||||
label.label Last Profile Update
|
var usrDataName = "!{user.name}";
|
||||||
p.control= userMoment(user.updatedAt).format('LL')
|
|
Loading…
Reference in new issue