OLD | NEW |
(Empty) | |
| 1 <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> |
| 4 |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-in-animation.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/fade-out-animation.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
mated-pages.html"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
| 11 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 12 |
| 13 <!-- |
| 14 Offline UI for the Active Directory password change. |
| 15 |
| 16 Attributes: |
| 17 'username' - User principal name. |
| 18 Methods: |
| 19 'reset' - resets to the initial state. |
| 20 Events: |
| 21 'authCompleted' - Fired when user enters old password and confirms new one. |
| 22 Fires with an argument which contains: |
| 23 { 'username': <username>, |
| 24 'oldPassword': <typed old password>, |
| 25 'newPassword': <typed new password>, |
| 26 } |
| 27 --> |
| 28 <dom-module id="active-directory-password-change"> |
| 29 <link rel="stylesheet" href="gaia_password_changed.css"> |
| 30 <template> |
| 31 <neon-animated-pages id="animatedPages" class="fit" |
| 32 entry-animation="fade-in-animation" exit-animation="fade-out-animation" |
| 33 selected="0"> |
| 34 <neon-animatable class="fit"> |
| 35 <gaia-card id="gaiaCard" class="fit"> |
| 36 <div class="header flex vertical layout end-justified start"> |
| 37 <h1 id="welcomeMessage" class="welcome-message"> |
| 38 [[computeWelcomeMessage_(username)]] |
| 39 </h1> |
| 40 </div> |
| 41 <div class="footer flex vertical layout justified"> |
| 42 <gaia-input-form on-submit="onSubmit_" |
| 43 i18n-values="button-text:offlineLoginNextBtn"> |
| 44 <gaia-input id="oldPassword" type="password" required |
| 45 i18n-values="error:adOldPasswordError; |
| 46 label:adEnterOldPasswordHint"> |
| 47 </gaia-input> |
| 48 <gaia-input id="newPassword1" type="password" required |
| 49 i18n-values="label:adEnterNewPasswordHint"> |
| 50 </gaia-input> |
| 51 <gaia-input id="newPassword2" type="password" required |
| 52 i18n-values="error:adNewPasswordError; |
| 53 label:adRepeatNewPasswordHint"> |
| 54 </gaia-input> |
| 55 </gaia-input-form> |
| 56 </div> |
| 57 </gaia-card> |
| 58 </neon-animatable> |
| 59 <neon-animatable class="fit"> |
| 60 <throbber-notice class="fit" i18n-values="text:gaiaLoading"> |
| 61 </throbber-notice> |
| 62 </neon-animatable> |
| 63 </neon-animated-pages> |
| 64 <navigation-bar id="navigation" close-visible on-close="onClose_"> |
| 65 </navigation-bar> |
| 66 </template> |
| 67 </dom-module> |
OLD | NEW |