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