2014-05-15 12:16:20 -04:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2014-06-09 05:25:38 -04:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
|
|
.card
|
|
|
|
.page-header
|
2014-07-31 09:01:37 -04:00
|
|
|
h1 #{translate("reset_your_password")}
|
2014-06-17 11:19:40 -04:00
|
|
|
form(
|
|
|
|
async-form="password-reset",
|
2014-06-18 10:23:00 -04:00
|
|
|
name="passwordResetForm",
|
2014-06-17 11:43:33 -04:00
|
|
|
action="/user/password/set",
|
2014-11-17 10:19:11 -05:00
|
|
|
method="POST",
|
2014-06-17 11:43:33 -04:00
|
|
|
ng-cloak
|
2014-06-17 11:19:40 -04:00
|
|
|
)
|
2014-06-09 05:25:38 -04:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2014-06-20 06:15:25 -04:00
|
|
|
form-messages(for="passwordResetForm")
|
|
|
|
.alert.alert-success(ng-show="passwordResetForm.response.success")
|
2014-09-05 08:12:23 -04:00
|
|
|
| #{translate("password_has_been_reset")}.
|
2014-07-31 09:01:37 -04:00
|
|
|
a(href='/login') #{translate("login_here")}
|
2014-06-17 11:19:40 -04:00
|
|
|
|
2014-06-09 05:25:38 -04:00
|
|
|
.form-group
|
2014-06-17 11:19:40 -04:00
|
|
|
input.form-control(
|
|
|
|
type='password',
|
|
|
|
name='password',
|
2014-06-18 10:23:00 -04:00
|
|
|
placeholder='new password',
|
|
|
|
required,
|
2014-07-23 06:18:42 -04:00
|
|
|
ng-model="password",
|
|
|
|
autofocus
|
2014-06-17 11:19:40 -04:00
|
|
|
)
|
2014-06-18 10:23:00 -04:00
|
|
|
span.small.text-primary(
|
|
|
|
ng-show="passwordResetForm.password.$invalid && passwordResetForm.password.$dirty"
|
2014-07-31 09:01:37 -04:00
|
|
|
) #{translate("required")}
|
2014-06-17 11:19:40 -04:00
|
|
|
input(
|
|
|
|
type="hidden",
|
|
|
|
name="passwordResetToken",
|
|
|
|
value=passwordResetToken
|
|
|
|
)
|
2014-06-09 05:25:38 -04:00
|
|
|
.actions
|
2014-06-18 10:23:00 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
type='submit',
|
|
|
|
ng-disabled="passwordResetForm.$invalid"
|
2014-11-17 10:19:11 -05:00
|
|
|
) #{translate("set_new_password")}
|