| 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/polymer/polymer.html"> |
| 7 |
| 8 <!-- |
| 9 Offline UI for the AD Domain joining and User authentication. |
| 10 |
| 11 Example: |
| 12 <ad-ui show-machine-input> </ad-ui> |
| 13 |
| 14 Attributes: |
| 15 'showMachineInput' - If the input of the machine name should be shown. |
| 16 Used for domain joining. |
| 17 'realm' - The AD realm the device is managed by. |
| 18 'userRealm' - autocomplete realm for the user input. |
| 19 |
| 20 Events: |
| 21 'authCompleted' - fired when user enters login and password. Fires with an |
| 22 argument |credentials| which contains. |
| 23 |credentials| = { 'machineName': <machine name input>, |
| 24 'username': <username> (UPN), |
| 25 'password': <typed password> } |
| 26 Methods: |
| 27 'focus' - focuses current input (user input or password input); |
| 28 'setUser' - accepts arguments |user| and |machineName| |
| 29 --> |
| 30 <dom-module name="ad-ui"> |
| 31 <link rel="stylesheet" href="offline_gaia.css"> |
| 32 <template> |
| 33 <gaia-card id="gaiaCard" class="fit"> |
| 34 <div class="header flex vertical layout end-justified start"> |
| 35 <h1 id="welcomeMsg" class="welcome-message">[[adWelcomeMessage]] |
| 36 </h1> |
| 37 </div> |
| 38 <div class="footer flex vertical layout justified"> |
| 39 <gaia-input-form on-submit="onSubmit_" |
| 40 disabled="[[disabled]]" |
| 41 i18n-values="button-text:offlineLoginNextBtn"> |
| 42 <gaia-input id="machineNameInput" required hidden="[[!showMachineI
nput]]" |
| 43 i18n-values="label:oauthEnrollADMachineNameInput"> |
| 44 </gaia-input> |
| 45 <gaia-input id="userInput" type="email" required |
| 46 domain="[[userRealm]]" |
| 47 i18n-values="error:offlineLoginInvalidEmail; |
| 48 label:ADLoginUser"> |
| 49 </gaia-input> |
| 50 <gaia-input id="passwordInput" type="password" required |
| 51 i18n-values="error:offlineLoginInvalidPassword; |
| 52 label:ADLoginPassword"> |
| 53 </gaia-input> |
| 54 </gaia-input-form> |
| 55 <img src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90" |
| 56 class="self-center" alt=""> |
| 57 </div> |
| 58 </gaia-card> |
| 59 </template> |
| 60 </dom-module> |
| 61 |
| OLD | NEW |