From 01a58adab827c0d20e3b705d5530cedda5dc8c56 Mon Sep 17 00:00:00 2001 From: Peter Odeny Date: Sat, 23 Nov 2019 17:03:49 +0300 Subject: [PATCH] add stakeholder select to contact details page --- templates/workflow/contact_form.html | 13 +++++++++++++ workflow/forms.py | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/templates/workflow/contact_form.html b/templates/workflow/contact_form.html index bea3327d..e1645696 100644 --- a/templates/workflow/contact_form.html +++ b/templates/workflow/contact_form.html @@ -34,5 +34,18 @@

{% crispy form %} + {% endblock content %} \ No newline at end of file diff --git a/workflow/forms.py b/workflow/forms.py index 6b7403a3..ad6f902a 100755 --- a/workflow/forms.py +++ b/workflow/forms.py @@ -1546,9 +1546,10 @@ def __init__(self, *args, **kwargs): self.helper.help_text_inline = True self.helper.html5_required = True self.helper.layout = Layout( + 'name', Row( Column('title', css_class='form-group col-md-6 mb-0'), - Column('name', css_class='form-group col-md-6 mb-0'), + Column('stakeholder', css_class='form-group col-md-6 mb-0'), css_class='form-row' ), Row( @@ -1561,6 +1562,7 @@ def __init__(self, *args, **kwargs): Column('country', css_class='form-group col-md-6 mb-0'), css_class='form-row' ), + 'address', Reset('reset', 'Close', css_class='btn btn-md btn-close'), Submit('submit', 'Save Changes',