mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
|
extends /templates/core/modal-base-flat
|
||
|
|
||
|
block modal-header-content
|
||
|
h1
|
||
|
span.spr(data-i18n="teacher.edit_2")
|
||
|
span=view.user.broadName()
|
||
|
|
||
|
block modal-body-content
|
||
|
.text-center
|
||
|
if view.user.get('emailVerified')
|
||
|
div.m-b-1
|
||
|
span(data-i18n="teacher.send_email_to")
|
||
|
div
|
||
|
= view.user.get('email')
|
||
|
div.small
|
||
|
span(data-i18n="teacher.verified_email_address")
|
||
|
if state.get('emailSent')
|
||
|
.send-recovery-email-btn.btn.btn-lg.btn-primary.uppercase.disabled
|
||
|
span(data-i18n="teacher.email_sent")
|
||
|
else
|
||
|
.send-recovery-email-btn.btn.btn-lg.btn-primary.uppercase
|
||
|
span(data-i18n="teacher.send_recovery_email")
|
||
|
else
|
||
|
div.m-b-1
|
||
|
span(data-i18n="teacher.change_password")
|
||
|
span :
|
||
|
div
|
||
|
input.new-password-input(placeholder="type a new password here" value=state.get('newPassword'))
|
||
|
if state.get('passwordChanged')
|
||
|
button.change-password-btn.btn.btn-lg.btn-primary.uppercase.disabled
|
||
|
span(data-i18n="teacher.changed")
|
||
|
else
|
||
|
button.change-password-btn.btn.btn-lg.btn-primary.uppercase
|
||
|
span(data-i18n="teacher.change_password")
|
||
|
|
||
|
|
||
|
block modal-footer-content
|
||
|
button.btn.btn-primary(type="button", data-dismiss="modal", aria-hidden="true")
|
||
|
if state.get('passwordChanged') || state.get('emailSent')
|
||
|
span(data-i18n="modal.close")
|
||
|
else
|
||
|
span(data-i18n="modal.cancel")
|