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

Unified 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 side-by-side diff with in-line comments
Download patch
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..347fd346a5551a8623bae706460c3d7efe53ce64
--- /dev/null
+++ b/chrome/browser/resources/chromeos/login/offline_ad_login.html
@@ -0,0 +1,66 @@
+<!-- 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.
+ 'disabled' - Whether the UI disabled. Could be used to disable the UI
+ during blocking IO operations.
+ 'adWelcomeMessage' - Welcome message on top of the UI.
+
+ Events:
+ 'authCompleted' - Fired when user enters login and password. Fires with an
+ argument |credentials| which contains:
+ |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]]
+ </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>

Powered by Google App Engine
This is Rietveld 408576698