diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-27 14:17:51 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-27 14:22:43 +0200 |
commit | 96bb8750fc418e19945c989514ef41093d192e3f (patch) | |
tree | ec90214441c1e109d032cbbf8cead98c7c40abd0 /archaeological_files/forms.py | |
parent | a4cef6296c811f0ecf894611a2e66551059a9f15 (diff) | |
download | Ishtar-96bb8750fc418e19945c989514ef41093d192e3f.tar.bz2 Ishtar-96bb8750fc418e19945c989514ef41093d192e3f.zip |
✨ Archaeological files - add operation name field: database, forms, search, sheet (refs #5795)
Diffstat (limited to 'archaeological_files/forms.py')
-rw-r--r-- | archaeological_files/forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index 82383a71d..587cb2237 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -98,6 +98,7 @@ class FileSelect(DocumentItemSelect): label=_("Department"), choices=[] ) name = forms.CharField(label=_("File name"), max_length=200) + operation_name = forms.CharField(label=_("Operation name"), max_length=200) file_type = forms.ChoiceField(label=_("File type"), choices=[]) end_date = forms.NullBooleanField(label=_("Is active?")) development_type = forms.ChoiceField(label=_("Development type"), choices=[]) @@ -288,6 +289,8 @@ class FileFormPlanning(CustomForm, ManageOldType): HEADERS = {} HEADERS["town"] = FormHeader(_("Geographic localisation")) name = forms.CharField(label=_("Planning name"), required=False, max_length=1000) + operation_name = forms.CharField(label=_("Operation name"), required=False, max_length=1000, + help_text=_("This name is used on creation for the associated operation")) development_type = forms.ChoiceField(label=_("Development type"), choices=[], required=False) town = widgets.Select2MultipleField( @@ -337,6 +340,8 @@ class FileFormResearchAddress(CustomForm, forms.Form): base_models = ["town", "department"] associated_models = {"town": Town, "department": Department} name = forms.CharField(label=_("Project name"), required=False, max_length=100) + operation_name = forms.CharField(label=_("Operation name"), required=False, max_length=1000, + help_text=_("This name is used on creation for the associated operation")) town = widgets.Select2MultipleField( model=Town, label=_("Towns"), required=False, remote=True ) |