ContactForm: updated
authorYasin <mohammed-yasin.rahman@lip6.fr>
Fri, 17 Jan 2014 13:57:27 +0000 (14:57 +0100)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Fri, 17 Jan 2014 13:57:27 +0000 (14:57 +0100)
portal/contactview.py
portal/forms.py
portal/templates/contact-support-email.txt

index 918385f..f1422ff 100644 (file)
@@ -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']
 
index c7cb7f0..fc8d8c3 100644 (file)
@@ -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):
index a27c791..9eb576d 100644 (file)
@@ -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}}