aboutsummaryrefslogtreecommitdiff
path: root/views/tag_input.tpl
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-08-04 20:02:00 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-08-04 20:03:29 +0000
commitb42091406ba4f4abe8591a793e2334d38613aaf5 (patch)
tree6b1e30d7a42cb41cff2ef50887b6010516152329 /views/tag_input.tpl
parent8f5488436b90d85969abb8bdcbb0ecf14d8936bd (diff)
downloadtagrss-b42091406ba4f4abe8591a793e2334d38613aaf5.tar
tagrss-b42091406ba4f4abe8591a793e2334d38613aaf5.tar.gz
tagrss-b42091406ba4f4abe8591a793e2334d38613aaf5.zip
Make tag input nicer with JS (if enabled)HEADmain
Diffstat (limited to 'views/tag_input.tpl')
-rw-r--r--views/tag_input.tpl12
1 files changed, 8 insertions, 4 deletions
diff --git a/views/tag_input.tpl b/views/tag_input.tpl
index 409360f..7005eeb 100644
--- a/views/tag_input.tpl
+++ b/views/tag_input.tpl
@@ -1,5 +1,9 @@
-<div class="side-by-side-help-container">
- <label for="tag-input">{{get("label", "Tags:")}}</label>
- <input type="text" name="{{input_name}}" value="{{get('input_value', '')}}" id="tag-input">
- % include("hover_help.tpl", text="Space-separated. Backslashes escape spaces.")
+<div class="side-by-side-help-container tag-input-container">
+ <label for="tags-input">{{get("label", "Tags:")}}</label>
+ <noscript>
+ <input type="text" name="{{input_name}}" value="{{get('input_value', '')}}" id="tags-input">
+ % include("hover_help.tpl", text="Space-separated. Backslashes escape spaces.")
+ </noscript>
+ <span style="display: none;" id="tags-input-name-span">{{input_name}}</span>
+ <span style="display: none;" id="tags-input-initial-value-span">{{get("input_value", "")}}</span>
</div>