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

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

Issue 2959853003: Add UI components for license type selection in ChromeOS login UI. (Closed)
Patch Set: Created 3 years, 5 months 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 2017 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"
6 href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-l ayout.html">
7 <link rel="import"
8 href="chrome://resources/polymer/v1_0/paper-radio-button/paper-radio-butto n.html">
9 <link rel="import"
10 href="chrome://resources/polymer/v1_0/paper-radio-group/paper-radio-group. html">
11 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
12
13 <!--
14 UI for the Enrollment license type selection.
15
16 Example:
17 <enrollment-license-card> </enrollment-license-card>
18
19 Attributes:
20 'disabled' - Whether the UI disabled. Could be used to disable the UI
21 during blocking IO operations.
22 'selected' - Selected license type.
23 'buttonText' - Text on the confirmation button.
24
25 Events:
26 'buttonclick' - Fired when user confirms license type selection.
27 -->
28 <dom-module id="enrollment-license-card">
29 <template>
30 <link rel="stylesheet" href="gaia_input_form.css">
31 <link rel="stylesheet" href="enrollment_license_card.css">
32
33 <gaia-card id="license-selection-prompt-card" class="fit">
34 <div class="header flex vertical layout end-justified">
35 <h1 class="welcome-message" style="text-transform:capitalize"
36 i18n-content="licenseSelectionCardTitle"></h1>
37 </div>
38 <div class="footer flex vertical layout justified">
39 <div>
40 <p class="license-card-explanation"
41 i18n-content="licenseSelectionCardExplanation"></p>
42 <paper-radio-group selected="{{selected}}">
43 <template is="dom-repeat" items="[[licenses]]"
44 id="repeatTemplate">
45 <paper-radio-button class="gaia-radio-button"
46 disabled$="[[or_(item.disabled, disabled)]]"
47 hidden$="[[item.hidden]]" name="[[item.id]]">
48 [[formatTitle_(item)]]
49 </paper-radio-button>
50 </template>
51 </paper-radio-group>
52 </div>
53 <div class="horizontal-reverse justified layout center">
54 <gaia-button id="submitButton" class="self-end"
55 disabled="[[disabled]]"
56 on-tap="buttonClicked_">
57 <span>[[buttonText]]</span>
58 </gaia-button>
59 </div>
60 </div>
61 </gaia-card>
62 </template>
63 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698