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

Side by Side Diff: chrome/browser/resources/md_bookmarks/edit_dialog.html

Issue 2769863002: MD Bookmarks: Validate URL input when editing a bookmark (Closed)
Patch Set: Created 3 years, 9 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
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_)]]</div> 12 <div class="title">[[getDialogTitle_(isFolder_)]]</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 label="$i18n{editDialogUrlInput}" 21 label="$i18n{editDialogUrlInput}"
22 error-message="$i18n{editDialogInvalidUrl}"
21 value="{{urlValue_}}" 23 value="{{urlValue_}}"
22 hidden$="[[isFolder_]]"> 24 hidden$="[[isFolder_]]"
25 required>
23 </paper-input> 26 </paper-input>
24 </div> 27 </div>
25 <div class="button-container"> 28 <div class="button-container">
26 <paper-button class="cancel-button" on-tap="onCancelButtonTap_"> 29 <paper-button class="cancel-button" on-tap="onCancelButtonTap_">
27 $i18n{cancelEdit} 30 $i18n{cancelEdit}
28 </paper-button> 31 </paper-button>
29 <paper-button id="saveButton" class="action-button" 32 <paper-button id="saveButton" class="action-button"
30 on-tap="onSaveButtonTap_"> 33 on-tap="onSaveButtonTap_">
31 $i18n{saveEdit} 34 $i18n{saveEdit}
32 </paper-button> 35 </paper-button>
33 </div> 36 </div>
34 </dialog> 37 </dialog>
35 </template> 38 </template>
36 <script src="chrome://bookmarks/edit_dialog.js"></script> 39 <script src="chrome://bookmarks/edit_dialog.js"></script>
37 </dom-module> 40 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698