From 96bb8750fc418e19945c989514ef41093d192e3f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 27 Sep 2024 14:17:51 +0200 Subject: ✨ Archaeological files - add operation name field: database, forms, search, sheet (refs #5795) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_files/forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'archaeological_files/forms.py') 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 ) -- cgit v1.2.3