Chromium Code Reviews| Index: chrome/browser/resources/chromeos/login/offline_ad_login.html |
| diff --git a/chrome/browser/resources/chromeos/login/offline_ad_login.html b/chrome/browser/resources/chromeos/login/offline_ad_login.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aa5d0a59435a7b8082e1810591d4e49f67656ef9 |
| --- /dev/null |
| +++ b/chrome/browser/resources/chromeos/login/offline_ad_login.html |
| @@ -0,0 +1,63 @@ |
| +<!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| + Use of this source code is governed by a BSD-style license that can be |
| + found in the LICENSE file. --> |
| + |
| +<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| + |
| +<!-- |
| + Offline UI for the AD Domain joining and User authentication. |
| + |
| + Example: |
| + <offline-ad-login show-machine-input> </offline-ad-login> |
| + |
| + Attributes: |
| + 'showMachineInput' - Whether the input of the machine name should be shown. |
| + Used for domain joining. |
| + 'realm' - The AD realm the device is managed by. |
| + 'userRealm' - Autocomplete realm for the user input. |
|
michaelpg
2016/11/02 23:08:53
should we list disabled and adWelcomeMessage?
Roman Sorokin (ftl)
2016/11/03 14:03:46
Done.
|
| + |
| + Events: |
| + 'authCompleted' - Fired when user enters login and password. Fires with an |
| + argument |credentials| which contains. |
|
michaelpg
2016/11/02 23:08:53
nit: period => colon
"which contains:"
Roman Sorokin (ftl)
2016/11/03 14:03:46
Done.
|
| + |credentials| = { 'machineName': <machine name input>, |
| + 'username': <username> (UPN), |
| + 'password': <typed password> } |
| + Methods: |
| + 'focus' - Focuses current input (user input or password input). |
| + 'setUserMachine' - Accepts arguments |user| and |machineName|. Both are |
| + optional. If user passed, the password input would be |
| + invalidated. |
| +--> |
| +<dom-module id="offline-ad-login"> |
| + <link rel="stylesheet" href="offline_gaia.css"> |
| + <template> |
| + <gaia-card id="gaiaCard" class="fit"> |
| + <div class="header flex vertical layout end-justified start"> |
| + <h1 id="welcomeMsg" class="welcome-message">[[adWelcomeMessage]] |
|
michaelpg
2016/11/02 23:08:53
Looks like adWelcomeMessage isn't actually used, a
Roman Sorokin (ftl)
2016/11/03 14:03:46
Done.
|
| + </h1> |
| + </div> |
| + <div class="footer flex vertical layout justified"> |
| + <gaia-input-form on-submit="onSubmit_" |
| + disabled="[[disabled]]" |
| + i18n-values="button-text:offlineLoginNextBtn"> |
| + <gaia-input id="machineNameInput" required |
| + hidden="[[!showMachineInput]]" |
| + i18n-values="label:oauthEnrollADMachineNameInput"> |
| + </gaia-input> |
| + <gaia-input id="userInput" type="email" required |
| + domain="[[userRealm]]" |
| + i18n-values="error:offlineLoginInvalidEmail; |
| + label:adLoginUser"> |
| + </gaia-input> |
| + <gaia-input id="passwordInput" type="password" required |
| + i18n-values="error:offlineLoginInvalidPassword; |
| + label:adLoginPassword"> |
| + </gaia-input> |
| + </gaia-input-form> |
| + <img src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90" |
| + class="self-center" alt=""> |
| + </div> |
| + </gaia-card> |
| + </template> |
| +</dom-module> |