Commit 6381abce authored by Vincent Le gallic's avatar Vincent Le gallic

autocomplete="off" sur certains champs

parent 6170e927
......@@ -373,8 +373,8 @@ class CreditRetraitForm(forms.Form):
class TransfertForm(forms.Form):
"""Formulaire pour effectuer un transfert d'argent."""
montant = FrenchFloatField(label="Montant")
motif = forms.CharField(label="Motif", required=False)
montant = FrenchFloatField(label="Montant", widget=forms.TextInput(attrs={"autocomplete" : "off"}))
motif = forms.CharField(label="Motif", required=False, widget=forms.TextInput(attrs={"autocomplete" : "off"}))
def clean(self):
"""Les centimes"""
out = forms.Form.clean(self)
......
......@@ -13,7 +13,7 @@
</p>
<p class="search">
Rechercher : <input type="text" name="Recherche" id="id_search_field" value="" onKeyUp="javascript:search_field_moved();return(false);"/></br>
Rechercher : <input type="text" name="Recherche" id="id_search_field" autocomplete="off" value="" onKeyUp="javascript:search_field_moved();return(false);"/></br>
</p>
<div class="liste_comptes">
......
......@@ -98,7 +98,7 @@ function put_note(itself, affiche, idbde, _, __, ___) {
</div>
{% if isadmin %}
{# L'admin doit en plus spécifier le responsable #}
Responsable : <input type="text" name="recherche" id="id_search_field" value="" onKeyUp="javascript:search_field_moved();return(false);"/></br>
Responsable : <input type="text" name="recherche" id="id_search_field" autocomplete="off" value="" onKeyUp="javascript:search_field_moved();return(false);"/></br>
{% endif %}
{# On ajoute à la main le champ caché idrespo #}
<input type="hidden" name="idrespo" id="id_output_idbde" value="{{ whoami.idbde }}"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment