wikijs-fork/server/views/pages/admin/profile.pug

54 lines
2.1 KiB
Plaintext
Raw Normal View History

2016-11-21 01:09:50 +00:00
extends ./_layout.pug
block adminContent
2017-02-10 02:35:37 +00:00
#page-type-admin-profile
.hero
h1.title#title My Profile
h2.subtitle Profile and authentication info
.form-sections
.columns.is-gapless
.column.is-two-thirds
section
label.label Email
p.control.is-fullwidth
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
label.label Display Name
p.control.is-fullwidth
input.input(type='text', placeholder='John Smith', v-model='name')
section
button.button.is-green(v-on:click='saveUser')
i.icon-check
span Save Changes
.column
2017-02-26 23:06:20 +00:00
.panel-aside
2017-02-10 02:35:37 +00:00
label.label Provider
p.control.account-profile-provider
case user.provider
when 'local': i.icon-server
when 'windowslive': i.icon-windows2.is-blue
when 'azure': i.icon-windows2.is-blue
2017-02-10 02:35:37 +00:00
when 'google': i.icon-google.is-blue
when 'facebook': i.icon-facebook.is-indigo
when 'github': i.icon-github.is-grey
when 'slack': i.icon-slack.is-purple
2017-03-12 04:38:47 +00:00
when 'ldap': i.icon-arrow-repeat-outline
2017-02-10 02:35:37 +00:00
default: i.icon-warning
= t('auth:providers.' + user.provider)
label.label Member since
p.control= userMoment(user.createdAt).format('LL')
label.label Last Profile Update
p.control= userMoment(user.updatedAt).format('LL')
2017-02-10 02:35:37 +00:00
script(type='text/javascript').
var usrDataName = "!{user.name}";