Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: new-options.html

Issue 29549891: Issue 5706 - Finish custom filter list dialog (Closed)
Patch Set: Created Sept. 19, 2017, 6:43 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « locale/en-US/new-options.json ('k') | new-options.js » ('j') | new-options.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: new-options.html
===================================================================
--- a/new-options.html
+++ b/new-options.html
@@ -254,7 +254,7 @@
</template>
</ul>
<div class="side-controls">
- <button class="i18n_options_filterList_add primary" data-action="open-dialog" data-dialog="custom"></button>
+ <button class="i18n_options_filterList_add primary" data-action="open-dialog" data-dialog="import"></button>
<button id="update" class="i18n_options_filterList_update secondary" data-action="update-all-subscriptions"></button>
</div>
</section>
@@ -278,7 +278,7 @@
<div class="side-controls">
<button id="custom-filters-edit" class="i18n_options_customFilter_edit secondary" data-action="edit-custom-filters">
</button>
- <div id="custom-filters-raw-controls">
+ <div class="side-controls nowrap" id="custom-filters-raw-controls">
<button class="i18n_options_customFilter_cancel secondary" data-action="cancel-custom-filters"></button>
<button class="i18n_options_customFilter_save primary" data-action="save-custom-filters"></button>
</div>
@@ -332,7 +332,7 @@
<header>
<span id="dialog-title">
<h3 id="dialog-title-about" class="i18n_options_dialog_about_title"></h3>
- <h3 id="dialog-title-custom" class="i18n_options_dialog_custom_title"></h3>
+ <h3 id="dialog-title-import" class="i18n_options_dialog_import_title"></h3>
<h3 id="dialog-title-language-add" class="i18n_options_dialog_language_title"></h3>
<h3 id="dialog-title-language-change" class="i18n_options_dialog_language_title"></h3>
<h3 id="dialog-title-predefined" class="i18n_options_dialog_predefined_title"></h3>
@@ -362,15 +362,26 @@
</template>
</ul>
</div>
- <!-- Add custom subscription -->
- <div id="dialog-content-custom" class="dialog-content">
- <div>
- <label for="blockingList-textbox" class="i18n_options_dialog_custom_subscription_title"></label>
- <input id="blockingList-textbox" type="text" class="default-focus" placeholder="https://website.com/filterlist.txt" />
- </div>
- <p>
- <button class="i18n_options_dialog_custom_import primary" data-action="import-subscription"></button>
- </p>
+ <!-- Add import subscription -->
+ <div id="dialog-content-import" class="dialog-content">
+ <form data-validation="custom" action="">
ire 2017/09/20 14:53:12 NIT: Why define the action if there's no action?
saroyanm 2017/09/21 19:07:54 Done.
+ <p class="floating-input">
+ <input placeholder=" " id="import-list-title" type="text" class="default-focus" required />
ire 2017/09/20 14:53:12 NIT: Why define a placeholder if it's just an empt
saroyanm 2017/09/21 19:07:53 So I could keep the label on top of the input when
ire 2017/09/22 08:28:53 Ah I see! Ack.
+ <label for="import-list-title" class="i18n_options_dialog_import_subscription_title"></label>
ire 2017/09/20 14:53:12 For some reason, this label doesn't move to the pl
saroyanm 2017/09/21 19:07:53 I can not reproduce this, can you please let me kn
ire 2017/09/22 08:28:53 I realised that I had removed the `placeholder` at
+ <span class="attention"></span>
+ <span class="i18n_options_dialog_import_subscription_title_error error-msg"></span>
+ </p>
+ <p class="floating-input">
+ <input placeholder=" " id="import-list-url" type="url" class="default-focus" required/>
+ <label for="import-list-url" class="i18n_options_dialog_import_subscription_location"></label>
+ <span class="attention"></span>
+ <span class="i18n_options_dialog_import_subscription_location_error error-msg"></span>
+ </p>
+ <p class="side-controls nowrap">
ire 2017/09/20 14:53:12 Suggestion/NIT: Perhaps the default should be `now
saroyanm 2017/09/21 19:07:54 Done.
+ <button class="i18n_options_customFilter_cancel secondary" type="reset" data-action="close-dialog"></button>
+ <button type="submit" class="i18n_options_dialog_import_title primary" data-action="validate-import-subscription"></button>
+ </p>
+ </form>
</div>
<!-- Add predefined subscription -->
<div id="dialog-content-predefined" class="dialog-content">
« no previous file with comments | « locale/en-US/new-options.json ('k') | new-options.js » ('j') | new-options.js » ('J')

Powered by Google App Engine
This is Rietveld