diff options
| author | Hunternif <hunternif@gmail.com> | 2019-04-10 21:25:15 +0700 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2019-04-10 22:15:30 +0700 |
| commit | 8904d6c9d83af79c67f4dc8da56bba844298782f (patch) | |
| tree | 430936387b740ce6dfa3c852b8a30b10530450ac /client/html | |
| parent | 9c1db76434312c3dcfcb8b075cd79fd8a7e5fd12 (diff) | |
client/upload: add checkboxes to copy common tags to existing posts
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_upload.tpl | 10 | ||||
| -rw-r--r-- | client/html/post_upload_row.tpl | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/client/html/post_upload.tpl b/client/html/post_upload.tpl index 6790b21..f1d9a2e 100644 --- a/client/html/post_upload.tpl +++ b/client/html/post_upload.tpl @@ -5,7 +5,7 @@ <div class='control-strip'> <input type='submit' value='Upload all' class='submit'/> - <span class='skip-duplicates'> + <span class='skip-duplicates control-checkbox'> <%= ctx.makeCheckbox({ text: 'Skip duplicates', name: 'skip-duplicates', @@ -13,6 +13,14 @@ }) %> </span> + <span class='copy-tags-to-originals control-checkbox'> + <%= ctx.makeCheckbox({ + text: 'Copy tags to originals', + name: 'copy-tags-to-originals', + checked: false, + }) %> + </span> + <%= ctx.makeTextInput({placeholder: 'Common tags', id: 'common-tags', name: 'common-tags', style: 'margin-top:1em;'}) %> <input type='button' value='Cancel' class='cancel'/> diff --git a/client/html/post_upload_row.tpl b/client/html/post_upload_row.tpl index a1ea46b..3d695b3 100644 --- a/client/html/post_upload_row.tpl +++ b/client/html/post_upload_row.tpl @@ -92,9 +92,13 @@ <%- Math.round((1-lookalike.distance) * 100) %>% match </div> <div class='controls'> - <%= ctx.makeCheckbox({text: 'Copy tags', name: 'copy-tags'}) %> - <br/> - <%= ctx.makeCheckbox({text: 'Add relation', name: 'add-relation'}) %> + <% if (lookalike.distance > 0) { %> + <%= ctx.makeCheckbox({text: 'Copy tags', name: 'copy-tags'}) %> + <br/> + <%= ctx.makeCheckbox({text: 'Add relation', name: 'add-relation'}) %> + <% } else { %> + <%= ctx.makeCheckbox({text: 'Copy tags', name: 'copy-tags'}) %> + <% } %> </div> </li> <% } %> |