1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Disable browser autocomplete for forms, as it interferes

This commit is contained in:
2018-03-25 16:23:56 +02:00
parent 330523ba3f
commit 3653b5e424
2 changed files with 8 additions and 8 deletions

View File

@@ -33,9 +33,9 @@
{% endif %} {% endif %}
<div class="row"> <div class="row">
<form action="{{ url_for('bookmarks_page', userkey=userkey) }}" name="filterForm" method="POST"> <form action="{{ url_for('bookmarks_page', userkey=userkey) }}" name="filterForm" method="POST" autocomplete="off">
<div class="input-field col l10 m10 s8"> <div class="input-field col l10 m10 s8">
<input placeholder="search text" type="text" name="filter_text" id="filter_text" class="autocomplete" value="{{ filter_text }}" /> <input placeholder="search text" type="text" name="filter_text" id="filter_text" class="autocomplete" value="{{ filter_text }}" autocomplete="false" />
</div> </div>
<div class="input-field col l2 m2 s4"> <div class="input-field col l2 m2 s4">

View File

@@ -38,22 +38,22 @@
{% endif %} {% endif %}
{% if formaction and formaction == 'edit' %} {% if formaction and formaction == 'edit' %}
<form class="digimark" id="digimark" action="{{ url_for('editingbookmark', userkey=userkey, urlhash=bookmark.url_hash) }}" method="POST" onsubmit="return onSubmitForm();"> <form class="digimark" id="digimark" action="{{ url_for('editingbookmark', userkey=userkey, urlhash=bookmark.url_hash) }}" method="POST" onsubmit="return onSubmitForm();" autocomplete="off">
{% else %} {% else %}
<form class="digimark" id="digimark" action="{{ url_for('addingbookmark', userkey=userkey) }}" method="POST" onsubmit="return onSubmitForm();"> <form class="digimark" id="digimark" action="{{ url_for('addingbookmark', userkey=userkey) }}" method="POST" onsubmit="return onSubmitForm();" autocomplete="off">
{% endif %} {% endif %}
<div class="row"> <div class="row">
<div class="input-field col s12"> <div class="input-field col s12">
<i class="material-icons prefix">description</i> <i class="material-icons prefix">description</i>
<input placeholder="title (leave empty for autofetch)" type="text" name="title" id="title" value="{{ bookmark.title }}" /> <input placeholder="title (leave empty for autofetch)" type="text" name="title" id="title" value="{{ bookmark.title }}" autocomplete="false" />
<label for="title">Title</label> <label for="title">Title</label>
{# <span class="helper-text">Leave title empty for autofetching from the page</span>#} {# <span class="helper-text">Leave title empty for autofetching from the page</span>#}
</div> </div>
<div class="input-field col s12"> <div class="input-field col s12">
<i class="material-icons prefix">turned_in</i> <i class="material-icons prefix">turned_in</i>
<input placeholder="url" type="text" name="url" id="url" value="{{ bookmark.url }}" /> <input placeholder="url" type="text" name="url" id="url" value="{{ bookmark.url }}" autocomplete="false" />
<label for="url">URL</label> <label for="url">URL</label>
{% if bookmark.get_redirect_uri() %} {% if bookmark.get_redirect_uri() %}
<div> <div>
@@ -72,13 +72,13 @@
<div class="input-field col s12"> <div class="input-field col s12">
<i class="material-icons prefix">comment</i> <i class="material-icons prefix">comment</i>
<input placeholder="note" type="text" name="note" id="note" value="{{ bookmark.note }}" /> <input placeholder="note" type="text" name="note" id="note" value="{{ bookmark.note }}" autocomplete="false" />
<label for="note">Note</label> <label for="note">Note</label>
</div> </div>
<div class="input-field col s12"> <div class="input-field col s12">
<i class="material-icons prefix">label</i> <i class="material-icons prefix">label</i>
<input placeholder="tags, divided by comma's" type="text" name="tags" id="tags" value="{{ bookmark.tags }}" /> <input placeholder="tags, divided by comma's" type="text" name="tags" id="tags" value="{{ bookmark.tags }}" autocomplete="false" />
<label for="tags">Tags</label> <label for="tags">Tags</label>
</div> </div>
</div> </div>