Compare commits

..

No commits in common. "7585551beb5a413ece40e84d0deff55bd8bd9ab6" and "e6be063e9ecd3a98d54f394cfb0f7ef13d63af89" have entirely different histories.

5 changed files with 5 additions and 7 deletions

View File

@ -30,12 +30,11 @@ class AbstractCompensationForm(BaseForm):
label=_("Identifier"), label=_("Identifier"),
label_suffix="", label_suffix="",
max_length=255, max_length=255,
help_text=_("Generated automatically - not editable"), help_text=_("Generated automatically"),
widget=GenerateInput( widget=GenerateInput(
attrs={ attrs={
"class": "form-control", "class": "form-control",
"url": None, # Needs to be set in inheriting constructors "url": None, # Needs to be set in inheriting constructors
"readonly": True,
} }
) )
) )

View File

@ -29,12 +29,11 @@ class NewInterventionForm(BaseForm):
label=_("Identifier"), label=_("Identifier"),
label_suffix="", label_suffix="",
max_length=255, max_length=255,
help_text=_("Generated automatically - not editable"), help_text=_("Generated automatically"),
widget=GenerateInput( widget=GenerateInput(
attrs={ attrs={
"class": "form-control", "class": "form-control",
"url": reverse_lazy("intervention:new-id"), "url": reverse_lazy("intervention:new-id"),
"readonly": True,
} }
) )
) )

Binary file not shown.

View File

@ -365,8 +365,8 @@ msgstr "Kennung"
#: compensation/forms/compensation.py:33 intervention/forms/intervention.py:32 #: compensation/forms/compensation.py:33 intervention/forms/intervention.py:32
#: user/forms/user.py:77 #: user/forms/user.py:77
msgid "Generated automatically - not editable" msgid "Generated automatically"
msgstr "Automatisch generiert - nicht bearbeitbar" msgstr "Automatisch generiert"
#: compensation/forms/compensation.py:42 compensation/tables/compensation.py:28 #: compensation/forms/compensation.py:42 compensation/tables/compensation.py:28
#: compensation/tables/eco_account.py:28 #: compensation/tables/eco_account.py:28

View File

@ -74,7 +74,7 @@ class UserAPITokenForm(BaseForm):
label_suffix="", label_suffix="",
max_length=255, max_length=255,
required=True, required=True,
help_text=_("Generated automatically - not editable"), help_text=_("Generated automatically"),
widget=GenerateInput( widget=GenerateInput(
attrs={ attrs={
"class": "form-control", "class": "form-control",