Chromium Code Reviews| 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 <offline-ad-login show-machine-input> </offline-ad-login> | |
| 13 | |
| 14 Attributes: | |
| 15 'showMachineInput' - Whether 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. | |
|
michaelpg
2016/11/02 23:08:53
should we list disabled and adWelcomeMessage?
Roman Sorokin (ftl)
2016/11/03 14:03:46
Done.
| |
| 19 | |
| 20 Events: | |
| 21 'authCompleted' - Fired when user enters login and password. Fires with an | |
| 22 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.
| |
| 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 'setUserMachine' - Accepts arguments |user| and |machineName|. Both are | |
| 29 optional. If user passed, the password input would be | |
| 30 invalidated. | |
| 31 --> | |
| 32 <dom-module id="offline-ad-login"> | |
| 33 <link rel="stylesheet" href="offline_gaia.css"> | |
| 34 <template> | |
| 35 <gaia-card id="gaiaCard" class="fit"> | |
| 36 <div class="header flex vertical layout end-justified start"> | |
| 37 <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.
| |
| 38 </h1> | |
| 39 </div> | |
| 40 <div class="footer flex vertical layout justified"> | |
| 41 <gaia-input-form on-submit="onSubmit_" | |
| 42 disabled="[[disabled]]" | |
| 43 i18n-values="button-text:offlineLoginNextBtn"> | |
| 44 <gaia-input id="machineNameInput" required | |
| 45 hidden="[[!showMachineInput]]" | |
| 46 i18n-values="label:oauthEnrollADMachineNameInput"> | |
| 47 </gaia-input> | |
| 48 <gaia-input id="userInput" type="email" required | |
| 49 domain="[[userRealm]]" | |
| 50 i18n-values="error:offlineLoginInvalidEmail; | |
| 51 label:adLoginUser"> | |
| 52 </gaia-input> | |
| 53 <gaia-input id="passwordInput" type="password" required | |
| 54 i18n-values="error:offlineLoginInvalidPassword; | |
| 55 label:adLoginPassword"> | |
| 56 </gaia-input> | |
| 57 </gaia-input-form> | |
| 58 <img src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90" | |
| 59 class="self-center" alt=""> | |
| 60 </div> | |
| 61 </gaia-card> | |
| 62 </template> | |
| 63 </dom-module> | |
| OLD | NEW |