diff --git a/compensation/forms/compensation.py b/compensation/forms/compensation.py index d4dd129..cc3fa57 100644 --- a/compensation/forms/compensation.py +++ b/compensation/forms/compensation.py @@ -30,11 +30,12 @@ class AbstractCompensationForm(BaseForm): label=_("Identifier"), label_suffix="", max_length=255, - help_text=_("Generated automatically"), + help_text=_("Generated automatically - not editable"), widget=GenerateInput( attrs={ "class": "form-control", "url": None, # Needs to be set in inheriting constructors + "readonly": True, } ) ) diff --git a/intervention/forms/intervention.py b/intervention/forms/intervention.py index 56d6b68..88bff07 100644 --- a/intervention/forms/intervention.py +++ b/intervention/forms/intervention.py @@ -29,11 +29,12 @@ class NewInterventionForm(BaseForm): label=_("Identifier"), label_suffix="", max_length=255, - help_text=_("Generated automatically"), + help_text=_("Generated automatically - not editable"), widget=GenerateInput( attrs={ "class": "form-control", "url": reverse_lazy("intervention:new-id"), + "readonly": True, } ) ) diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 0f9cea9..1eca329 100644 Binary files a/locale/de/LC_MESSAGES/django.mo and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 99a9b37..c225fa4 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -365,8 +365,8 @@ msgstr "Kennung" #: compensation/forms/compensation.py:33 intervention/forms/intervention.py:32 #: user/forms/user.py:77 -msgid "Generated automatically" -msgstr "Automatisch generiert" +msgid "Generated automatically - not editable" +msgstr "Automatisch generiert - nicht bearbeitbar" #: compensation/forms/compensation.py:42 compensation/tables/compensation.py:28 #: compensation/tables/eco_account.py:28 diff --git a/user/forms/user.py b/user/forms/user.py index 99afc37..e27dba9 100644 --- a/user/forms/user.py +++ b/user/forms/user.py @@ -74,7 +74,7 @@ class UserAPITokenForm(BaseForm): label_suffix="", max_length=255, required=True, - help_text=_("Generated automatically"), + help_text=_("Generated automatically - not editable"), widget=GenerateInput( attrs={ "class": "form-control",