| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> | 1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/polymer/layout.html"> | 2 <link rel="import" href="chrome://resources/polymer/polymer/layout.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/core-animated-pages/core-ani
mated-pages.html"> | 3 <link rel="import" href="chrome://resources/polymer/core-animated-pages/core-ani
mated-pages.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/core-animated-pages/transiti
ons/slide-from-right.html"> | 4 <link rel="import" href="chrome://resources/polymer/core-animated-pages/transiti
ons/slide-from-right.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/paper-button/paper-button.ht
ml"> | 5 <link rel="import" href="chrome://resources/polymer/paper-button/paper-button.ht
ml"> |
| 6 <link rel="import" href="chrome://resources/polymer/paper-dialog/paper-action-di
alog.html"> | 6 <link rel="import" href="chrome://resources/polymer/paper-dialog/paper-action-di
alog.html"> |
| 7 | 7 |
| 8 <!-- | 8 <!-- |
| 9 Offline UI for the New Gaia flow. | 9 Offline UI for the New Gaia flow. |
| 10 Contains two cards with a slide transition between them: | 10 Contains two cards with a slide transition between them: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 'focus' - focuses current screen (email input or password input); | 30 'focus' - focuses current screen (email input or password input); |
| 31 'setEmail' - accepts an argument |email|. If |email| is empty it sets | 31 'setEmail' - accepts an argument |email|. If |email| is empty it sets |
| 32 current screen to the email input, otherwise it sets current | 32 current screen to the email input, otherwise it sets current |
| 33 screen to password input and shows error that previously | 33 screen to password input and shows error that previously |
| 34 entered password is incorrect. | 34 entered password is incorrect. |
| 35 --> | 35 --> |
| 36 <polymer-element name="offline-gaia" vertical layout | 36 <polymer-element name="offline-gaia" vertical layout |
| 37 attributes="enterpriseInfo emailDomain"> | 37 attributes="enterpriseInfo emailDomain"> |
| 38 <template> | 38 <template> |
| 39 <link rel="stylesheet" href="offline_gaia.css"> | 39 <link rel="stylesheet" href="offline_gaia.css"> |
| 40 <gaia-core-icon-button id="backButton" icon="arrow-back" | |
| 41 on-tap="{{onBack}}"> | |
| 42 </gaia-core-icon-button> | |
| 43 <core-animated-pages id="animatedPages" transitions="slide-from-right" | 40 <core-animated-pages id="animatedPages" transitions="slide-from-right" |
| 44 valueattr="id" | 41 valueattr="id" |
| 45 on-core-animated-pages-transition-end="{{onTransitionEnd}}" flex> | 42 on-core-animated-pages-transition-end="{{onTransitionEnd}}" flex> |
| 46 <section flex id="emailSection"> | 43 <section flex id="emailSection"> |
| 47 <gaia-card> | 44 <gaia-card> |
| 48 <div class="header" flex vertical layout end-justified start> | 45 <div class="header" flex vertical layout end-justified start> |
| 49 <h1 class="welcome-message" i18n-content="offlineLoginWelcome"></h1> | 46 <h1 class="welcome-message" i18n-content="offlineLoginWelcome"></h1> |
| 50 <p class="enterprise-info" hidden?="{{!enterpriseInfo}}"> | 47 <p class="enterprise-info" hidden?="{{!enterpriseInfo}}"> |
| 51 {{enterpriseInfo}} | 48 {{enterpriseInfo}} |
| 52 </p> | 49 </p> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 80 backdrop on-keydown="{{onKeyDownOnDialog}}"> | 77 backdrop on-keydown="{{onKeyDownOnDialog}}"> |
| 81 <p i18n-content="offlineLoginForgotPasswordDlg"></p> | 78 <p i18n-content="offlineLoginForgotPasswordDlg"></p> |
| 82 <gaia-paper-button id="dialogCloseBtn" affirmative autofocus | 79 <gaia-paper-button id="dialogCloseBtn" affirmative autofocus |
| 83 i18n-content="offlineLoginCloseBtn"> | 80 i18n-content="offlineLoginCloseBtn"> |
| 84 </gaia-paper-button> | 81 </gaia-paper-button> |
| 85 </paper-action-dialog> | 82 </paper-action-dialog> |
| 86 </gaia-input-form> | 83 </gaia-input-form> |
| 87 </gaia-card> | 84 </gaia-card> |
| 88 </section> | 85 </section> |
| 89 </core-animated-pages> | 86 </core-animated-pages> |
| 87 <button id="backButton" is="gaia-icon-button" icon="arrow-back" |
| 88 i18n-values="aria-label:backButton" on-click="{{onBack}}"> |
| 89 </button> |
| 90 </template> | 90 </template> |
| 91 </polymer-element> | 91 </polymer-element> |
| OLD | NEW |