codecombat/app/templates/teachers/edit-student-modal.jade
phoenixeliot 3d705e5d70 Fix bugquest bugs
Fix link to /teachers/classes (fixes bugquest#20)

Fix edit button color/icon (bugquest#23)

Fix bugquest#34

Fix password input width (bugquest#33)

Center new pasword text

Fix teacher password reset endpoint (bugquest#4)

Refactor+use NewHomeView logic for user page button (Fixes bugquest#2)

Refactor teacher-password-reset endpoint

This makes it much easier to prevent collisions with other logic when PUTing new User attributes.

Add regression test for converting to teacher account

Fix email verified links, require login (fix bugquest#16)

Fix me having stale emailVerified value (Fixes bugquest#40)

Don't show JoinClassModal to students

Add paragraph to JoinClassModal (fixes bugquest#14)

Update change-password label text (fixes bugquest#30)

Fix prompting for login on Account Settings page (bugquest #10)

Show validation errors for teacher password reset (bugquest#36)

Show yellow progress dot in My Classes if anyone has started (bugquest#55)

Remove confusing text (bugquest#100)
2016-05-24 14:10:17 -07:00

41 lines
1.5 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')
p
span(data-i18n="teacher.send_email_to")
p.m-b-3
= view.user.get('email')
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.enter_new_password_below")
div.m-b-2.form-group(class=(state.get('errorMessage') ? 'has-error' : ''))
input.new-password-input(placeholder="type a new password here" value=state.get('newPassword'))
div.help-block.error-help-block.m-t-1.small
span=state.get('errorMessage')
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")