mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.9 KiB
63 lines
2.9 KiB
8 years ago
|
extends ./_layout.pug
|
||
|
|
||
|
block adminContent
|
||
8 years ago
|
.hero
|
||
|
h1.title#title= t('nav.myprofile')
|
||
|
h2.subtitle= t('admin:profile.subtitle')
|
||
8 years ago
|
i.pageicon.nc-icon-outline.business_business-contact-86
|
||
8 years ago
|
.form-sections
|
||
|
.columns.is-gapless
|
||
|
.column.is-two-thirds
|
||
|
admin-profile(inline-template, email=user.email, name=user.name, provider=user.provider)
|
||
|
div
|
||
8 years ago
|
section
|
||
8 years ago
|
label.label= t('admin:profile.email')
|
||
8 years ago
|
p.control.is-fullwidth
|
||
8 years ago
|
input.input(type='text', placeholder=t('admin:profile.email'), value=user.email, disabled)
|
||
|
if user.provider === 'local'
|
||
|
section
|
||
|
label.label= t('admin:profile.password')
|
||
|
p.control.is-fullwidth
|
||
|
input.input(type='password', placeholder=t('admin:profile.password'), value='********', v-model='password')
|
||
|
section
|
||
|
label.label= t('admin:profile.passwordverify')
|
||
|
p.control.is-fullwidth
|
||
|
input.input(type='password', placeholder=t('admin:profile.password'), value='********', v-model='passwordVerify')
|
||
8 years ago
|
section
|
||
8 years ago
|
label.label= t('admin:profile.displayname')
|
||
8 years ago
|
p.control.is-fullwidth
|
||
8 years ago
|
input.input(type='text', placeholder=t('admin:profile.displaynameexample'), v-model='name')
|
||
8 years ago
|
//-section
|
||
8 years ago
|
label.label #{t('admin:profile.tfa')}: #[strong.is-red(v-cloak) {{ tfaStatus }}]
|
||
|
button.button.is-blue(@click='$store.dispatch("modalProfile2fa/open")', :disabled='tfaIsActive')
|
||
8 years ago
|
i.nc-icon-outline.ui-1_circle-add
|
||
8 years ago
|
span= t('admin:profile.tfaenable')
|
||
|
button.button.is-blue(@click='saveUser', :disabled='!tfaIsActive')
|
||
8 years ago
|
i.nc-icon-outline.ui-1_circle-delete
|
||
8 years ago
|
span= t('admin:profile.tfadisable')
|
||
|
section
|
||
|
button.button.is-green(@click='saveUser')
|
||
8 years ago
|
i.nc-icon-outline.ui-1_check
|
||
8 years ago
|
span= t('admin:profile.savechanges')
|
||
|
.column
|
||
|
.panel-aside
|
||
|
label.label= t('admin:profile.provider')
|
||
|
p.control.account-profile-provider
|
||
|
case user.provider
|
||
8 years ago
|
when 'local': i.nc-icon-outline.ui-1_database
|
||
8 years ago
|
when 'windowslive': i.icon-windows2.is-blue
|
||
|
when 'azure': i.icon-windows2.is-blue
|
||
|
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
|
||
|
when 'ldap': i.icon-arrow-repeat-outline
|
||
|
default: i.icon-warning
|
||
|
= t('auth:providers.' + user.provider)
|
||
|
label.label= t('admin:profile.membersince')
|
||
|
p.control= moment(user.createdAt).format('LL')
|
||
|
label.label= t('admin:profile.lastprofileupdate')
|
||
|
p.control= moment(user.updatedAt).format('LL')
|
||
8 years ago
|
|
||
8 years ago
|
//-modal-profile-2fa
|