OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.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/cr_elements/cr_dialog/cr_dialog.html
"> | 3 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
4 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> |
6 <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-button/paper-butt
on.html"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
8 | 8 |
9 <dom-module id="bookmarks-edit-dialog"> | 9 <dom-module id="bookmarks-edit-dialog"> |
10 <template> | 10 <template> |
11 <style include="cr-shared-style"></style> | 11 <style include="cr-shared-style"></style> |
12 <dialog is="cr-dialog" id="dialog"> | 12 <dialog is="cr-dialog" id="dialog"> |
13 <div class="title">[[getDialogTitle_(isFolder_)]]</div> | 13 <div class="title">[[getDialogTitle_(isFolder_, isEdit_)]]</div> |
14 <div class="body"> | 14 <div class="body"> |
15 <paper-input always-float-label id="name" | 15 <paper-input always-float-label id="name" |
16 label="$i18n{editDialogNameInput}" | 16 label="$i18n{editDialogNameInput}" |
17 value="{{titleValue_}}" | 17 value="{{titleValue_}}" |
18 autofocus> | 18 autofocus> |
19 </paper-input> | 19 </paper-input> |
20 <paper-input always-float-label id="url" | 20 <paper-input always-float-label id="url" |
21 type="url" | 21 type="url" |
22 label="$i18n{editDialogUrlInput}" | 22 label="$i18n{editDialogUrlInput}" |
23 error-message="$i18n{editDialogInvalidUrl}" | 23 error-message="$i18n{editDialogInvalidUrl}" |
24 value="{{urlValue_}}" | 24 value="{{urlValue_}}" |
25 hidden$="[[isFolder_]]" | 25 hidden$="[[isFolder_]]" |
26 required> | 26 required> |
27 </paper-input> | 27 </paper-input> |
28 </div> | 28 </div> |
29 <div class="button-container"> | 29 <div class="button-container"> |
30 <paper-button class="cancel-button" on-tap="onCancelButtonTap_"> | 30 <paper-button class="cancel-button" on-tap="onCancelButtonTap_"> |
31 $i18n{cancelEdit} | 31 $i18n{cancelEdit} |
32 </paper-button> | 32 </paper-button> |
33 <paper-button id="saveButton" class="action-button" | 33 <paper-button id="saveButton" class="action-button" |
34 on-tap="onSaveButtonTap_"> | 34 on-tap="onSaveButtonTap_"> |
35 $i18n{saveEdit} | 35 $i18n{saveEdit} |
36 </paper-button> | 36 </paper-button> |
37 </div> | 37 </div> |
38 </dialog> | 38 </dialog> |
39 </template> | 39 </template> |
40 <script src="chrome://bookmarks/edit_dialog.js"></script> | 40 <script src="chrome://bookmarks/edit_dialog.js"></script> |
41 </dom-module> | 41 </dom-module> |
OLD | NEW |