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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 backdrop on-keydown="{{onKeyDownOnDialog}}"> | 81 backdrop on-keydown="{{onKeyDownOnDialog}}"> |
85 <p i18n-content="offlineLoginForgotPasswordDlg"></p> | 82 <p i18n-content="offlineLoginForgotPasswordDlg"></p> |
86 <gaia-paper-button id="dialogCloseBtn" affirmative autofocus | 83 <gaia-paper-button id="dialogCloseBtn" affirmative autofocus |
87 i18n-content="offlineLoginCloseBtn"> | 84 i18n-content="offlineLoginCloseBtn"> |
88 </gaia-paper-button> | 85 </gaia-paper-button> |
89 </paper-action-dialog> | 86 </paper-action-dialog> |
90 </gaia-input-form> | 87 </gaia-input-form> |
91 </gaia-card> | 88 </gaia-card> |
92 </section> | 89 </section> |
93 </core-animated-pages> | 90 </core-animated-pages> |
| 91 <button id="backButton" is="gaia-icon-button" icon="arrow-back" |
| 92 i18n-values="aria-label:backButton" on-click="{{onBack}}"> |
| 93 </button> |
94 </template> | 94 </template> |
95 </polymer-element> | 95 </polymer-element> |
OLD | NEW |