OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> | |
2 <link rel="import" href="chrome://resources/html/polymer.html"> | |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l"> | |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> | |
6 <link rel="import" href="/languages_page/languages.html"> | |
7 <link rel="import" href="/settings_shared_css.html"> | |
8 | |
9 <dom-module id="settings-add-languages-dialog"> | |
michaelpg
2016/08/22 20:33:17
Largely a copy of manage_languages_page.html, if y
| |
10 <template> | |
11 <style include="settings-shared"> | |
12 dialog { | |
13 display: flex; | |
14 flex-direction: column; | |
15 } | |
16 | |
17 .body { | |
18 display: flex; | |
19 flex-direction: column; | |
20 max-height: 250px; | |
21 overflow: auto; | |
22 } | |
23 | |
24 .ripple-padding { | |
25 /* Create a little extra space for checkbox ink ripple to flow into. */ | |
26 padding-left: 20px; | |
27 } | |
28 </style> | |
29 <dialog is="cr-dialog" id="dialog"> | |
30 <div class="title">$i18n{addLanguagesDialogTitle}</div> | |
31 <div class="body"> | |
32 <!-- TODO(michaelpg): Dynamic language search/filtering. --> | |
33 <iron-list class="ripple-padding" scroll-target="[[$$('.body')]]" | |
34 items="[[getAvailableLanguages_( | |
35 languages.supported, languages.enabled.*)]]"> | |
36 <template> | |
37 <paper-checkbox class="list-item" checked="[[willAdd_(item.code)]]" | |
38 title$="[[item.nativeDisplayName]]" | |
39 on-change="onLanguageCheckboxChange_"> | |
40 [[item.displayName]] | |
41 </paper-checkbox> | |
42 </template> | |
43 </iron-list> | |
44 </div> | |
45 <div class="button-container"> | |
46 <div class="action-buttons"> | |
47 <paper-button class="cancel-button" on-tap="onCancelButtonTap_"> | |
48 $i18n{cancel} | |
49 </paper-button> | |
50 <paper-button class="action-button" on-tap="onActionButtonTap_" | |
51 disabled="[[disableActionButton_]]"> | |
52 $i18n{add} | |
53 </paper-button> | |
54 </div> | |
55 </div> | |
56 </dialog> | |
57 </template> | |
58 <script src="add_languages_dialog.js"></script> | |
59 </dom-module> | |
OLD | NEW |