diff --git a/preferences/forms.py b/preferences/forms.py index fc214f52..6d6414c3 100644 --- a/preferences/forms.py +++ b/preferences/forms.py @@ -51,6 +51,7 @@ class EditOptionalUserForm(ModelForm): self.fields['max_solde'].label = 'Solde maximum' self.fields['min_online_payment'].label = 'Montant de rechargement minimum en ligne' self.fields['self_adhesion'].label = 'Auto inscription' + self.fields['max_recharge'].label = 'Rechargement max' class EditOptionalMachineForm(ModelForm): diff --git a/preferences/models.py b/preferences/models.py index d4ef9645..d49a074f 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -52,6 +52,10 @@ class OptionalUser(models.Model): max_digits=5, decimal_places=2, default=10 + max_recharge = models.DecimalField( + max_digits=5, + decimal_places=2, + default=100 ) gpg_fingerprint = models.BooleanField(default=True) all_can_create = models.BooleanField( diff --git a/preferences/templates/preferences/display_preferences.html b/preferences/templates/preferences/display_preferences.html index e46564a3..9f958d72 100644 --- a/preferences/templates/preferences/display_preferences.html +++ b/preferences/templates/preferences/display_preferences.html @@ -56,6 +56,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Aucune machine
{% endif %}