fix: [UI Item submit] tags input: avoid browser and password managers autocomplete

This commit is contained in:
Terrtia 2021-07-15 15:49:04 +02:00
parent bf5c2deed2
commit f5332bbc5a
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
3 changed files with 7 additions and 6 deletions

View file

@ -119,7 +119,6 @@ class Tracker_Term(AbstractModule):
for term_uuid in uuid_list:
tracker_sources = Tracker.get_tracker_uuid_sources(term_uuid)
if not tracker_sources or item_source in tracker_sources:
print(not tracker_sources or item_source in tracker_sources)
Tracker.add_tracked_item(term_uuid, item_id)
tags_to_add = Term.get_term_tags(term_uuid)

View file

@ -273,7 +273,7 @@ def submit():
#paste_name = request.form['paste_name']
logger.debug('submit')
password = request.form['password']
password = request.form['archive_pass']
ltags = request.form['tags_taxonomies']
ltagsgalaxies = request.form['tags_galaxies']
paste_content = request.form['paste_content']

View file

@ -129,7 +129,7 @@
</div>
</div>
<label for="ltagsgalaxies">Optional Tags:</label>
<label for="ltags">Optional Tags:</label>
<div class="row mb-3">
<div class="col">
<div class="input-group">
@ -195,7 +195,7 @@
<!-- TODO reactivate while zipped format are enabled -->
<div class="form-group d-none">
<label for="paste_name">Archive Password</label>
<input type="password" class="form-control" id="password" name="password"
<input type="text" class="form-control" id="archive_pass" name="archive_pass"
placeholder="Optional">
</div>
</div>
@ -262,7 +262,8 @@
ltags = $('#ltags').tagSuggest({
data: data,
maxDropHeight: 200,
name: 'ltags'
name: 'ltags',
emptyText: 'Add Taxonomies Tags',
});
});
@ -272,7 +273,8 @@
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
data: data,
maxDropHeight: 200,
name: 'ltagsgalaxies'
name: 'ltagsgalaxies',
emptyText: 'Add Galaxies Tags',
});
});