From: Yasin Date: Fri, 17 Jan 2014 13:57:27 +0000 (+0100) Subject: ContactForm: updated X-Git-Tag: myslice-0.3-0~30^2~1 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=eb1e290439ad9dd7947766462d2138073d84c759 ContactForm: updated --- diff --git a/portal/contactview.py b/portal/contactview.py index 918385f5..f1422fff 100644 --- a/portal/contactview.py +++ b/portal/contactview.py @@ -20,7 +20,7 @@ class ContactView (FreeAccessView): last_name = form.cleaned_data['last_name'] authority = form.cleaned_data['authority'] subject = form.cleaned_data['subject'] - message = form.cleaned_data['message'] + description = form.cleaned_data['description'] email = form.cleaned_data['email'] # email of the sender cc_myself = form.cleaned_data['cc_myself'] diff --git a/portal/forms.py b/portal/forms.py index c7cb7f06..fc8d8c3f 100644 --- a/portal/forms.py +++ b/portal/forms.py @@ -59,7 +59,7 @@ class ContactForm(forms.Form): authority = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'})) email = forms.EmailField(widget=forms.TextInput(attrs={'class':'form-control'})) subject = forms.CharField(max_length=100,widget=forms.TextInput(attrs={'class':'form-control'})) - message = forms.CharField(widget=forms.Textarea(attrs={'class':'form-control'})) + description = forms.CharField(widget=forms.Textarea(attrs={'class':'form-control'})) cc_myself = forms.BooleanField(required=False,widget=forms.CheckboxInput(attrs={'class':'form-control'})) class PassResetForm(forms.Form): diff --git a/portal/templates/contact-support-email.txt b/portal/templates/contact-support-email.txt index a27c7916..9eb576d6 100644 --- a/portal/templates/contact-support-email.txt +++ b/portal/templates/contact-support-email.txt @@ -1,12 +1,12 @@ User details: First name : {{first_name}} -Last name : {{last_name}} +Last name : {{last_name}} email : {{email}} -Authority : {{authority}} +Authority : {{authority}} Query Details: Subject : {{subject}} -message : {{message}} +Description : {{description}}