Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Side by Side Diff: chrome/browser/resources/chromeos/login/offline_ad_login.html

Issue 2433363004: Chromad: added AD Join ui, authpolicy_client (Closed)
Patch Set: nit Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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.
19 'disabled' - Whether the UI disabled. Could be used to disable the UI
20 during blocking IO operations.
21 'adWelcomeMessage' - Welcome message on top of the UI.
22
23 Events:
24 'authCompleted' - Fired when user enters login and password. Fires with an
25 argument |credentials| which contains:
26 |credentials| = { 'machineName': <machine name input>,
27 'username': <username> (UPN),
28 'password': <typed password> }
29 Methods:
30 'focus' - Focuses current input (user input or password input).
31 'setUserMachine' - Accepts arguments |user| and |machineName|. Both are
32 optional. If user passed, the password input would be
33 invalidated.
34 -->
35 <dom-module id="offline-ad-login">
36 <link rel="stylesheet" href="offline_gaia.css">
37 <template>
38 <gaia-card id="gaiaCard" class="fit">
39 <div class="header flex vertical layout end-justified start">
40 <h1 id="welcomeMsg" class="welcome-message">[[adWelcomeMessage]]
41 </h1>
42 </div>
43 <div class="footer flex vertical layout justified">
44 <gaia-input-form on-submit="onSubmit_"
45 disabled="[[disabled]]"
46 i18n-values="button-text:offlineLoginNextBtn">
47 <gaia-input id="machineNameInput" required
48 hidden="[[!showMachineInput]]"
49 i18n-values="label:oauthEnrollAdMachineNameInput">
50 </gaia-input>
51 <gaia-input id="userInput" type="email" required
52 domain="[[userRealm]]"
53 i18n-values="error:offlineLoginInvalidEmail;
54 label:adLoginUser">
55 </gaia-input>
56 <gaia-input id="passwordInput" type="password" required
57 i18n-values="error:offlineLoginInvalidPassword;
58 label:adLoginPassword">
59 </gaia-input>
60 </gaia-input-form>
61 <img src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90"
62 class="self-center" alt="">
63 </div>
64 </gaia-card>
65 </template>
66 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698