| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
| 2 <link rel="import" href="chrome://resources/html/assert.html"> | 2 <link rel="import" href="chrome://resources/html/assert.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 7 <link rel="import" href="../settings_shared_css.html"> | 6 <link rel="import" href="../settings_shared_css.html"> |
| 8 | 7 |
| 9 <dom-module id="settings-users-add-user-dialog"> | 8 <dom-module id="settings-users-add-user-dialog"> |
| 10 <template> | 9 <template> |
| 11 <style include="settings-shared"> | 10 <style include="settings-shared"> |
| 12 paper-input { | 11 paper-input { |
| 13 width: var(--paper-input-max-width); | 12 width: var(--paper-input-max-width); |
| 14 --paper-input-container-focus-color: var(--google-blue-500); | 13 --paper-input-container-focus-color: var(--google-blue-500); |
| 15 --paper-input-container-input: { | 14 --paper-input-container-input: { |
| 16 font-size: inherit; | 15 font-size: inherit; |
| 17 }; | 16 }; |
| 18 } | 17 } |
| 19 </style> | 18 </style> |
| 20 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> | 19 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> |
| 21 <div class="title">$i18n{addUsers}</div> | 20 <div class="title">$i18n{addUsers}</div> |
| 22 <div class="body"> | 21 <div class="body"> |
| 23 <paper-input id="addUserInput" label="$i18n{addUsersEmail}" autofocus | 22 <paper-input id="addUserInput" label="$i18n{addUsersEmail}" autofocus |
| 24 on-input="validate_"> | 23 on-input="validate_"> |
| 25 <iron-a11y-keys id="keys" keys="enter" on-keys-pressed="addUser_"> | |
| 26 </iron-a11y-keys> | |
| 27 </paper-input> | 24 </paper-input> |
| 28 </div> | 25 </div> |
| 29 <div class="button-container"> | 26 <div class="button-container"> |
| 30 <paper-button class="cancel-button" on-tap="onCancelTap_" | 27 <paper-button class="cancel-button" on-tap="onCancelTap_" |
| 31 id="cancel">$i18n{cancel}</paper-button> | 28 id="cancel">$i18n{cancel}</paper-button> |
| 32 <paper-button id="add" on-tap="addUser_" class="action-button" disabled> | 29 <paper-button id="add" on-tap="addUser_" class="action-button" disabled> |
| 33 $i18n{add} | 30 $i18n{add} |
| 34 </paper-button> | 31 </paper-button> |
| 35 </div> | 32 </div> |
| 36 </dialog> | 33 </dialog> |
| 37 </template> | 34 </template> |
| 38 <script src="users_add_user_dialog.js"></script> | 35 <script src="users_add_user_dialog.js"></script> |
| 39 </dom-module> | 36 </dom-module> |
| OLD | NEW |