| //- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| include /app/helpers/jade/mixins |
| |
| //- This doesn't seem to do anything 😵 |
| .main-content(ng-if='error') |
| .text-center |
| p {{::$ctrl.ui.error}} |
| h3.public-page__title(ng-if-start='$ctrl.ui.token && !$ctrl.ui.error') Reset Password |
| form.page-password-reset__grid(name='$ctrl.form' ng-init='reset_info.token = token' ng-if-end) |
| +form-field__email({ |
| label: 'E-mail:', |
| model: '$ctrl.ui.email', |
| disabled: true |
| }) |
| |
| +form-field__password({ |
| label: 'New password:', |
| model: '$ctrl.ui.password', |
| name: '"password"', |
| required: true, |
| placeholder: 'New password' |
| })( |
| ignite-auto-focus |
| ignite-on-enter-focus-move='passwordConfirmInput' |
| ) |
| +form-field__password({ |
| label: 'Confirm password:', |
| model: 'confirm', |
| name: '"passwordConfirm"', |
| required: true, |
| placeholder: 'Confirm new password' |
| })( |
| ignite-on-enter-focus-move='resetForm.$valid && resetPassword(user_info)' |
| ignite-match='$ctrl.ui.password' |
| ) |
| |
| footer.form-footer |
| a(ui-sref='default-state') Cancel |
| button.btn-ignite.btn-ignite--primary( |
| ng-disabled='$ctrl.form.$invalid' |
| ng-click='$ctrl.resetPassword()' |
| ) |
| svg.icon-left(ignite-icon='checkmark') |
| | Save Changes |
| |