From: Yasin Date: Mon, 28 Apr 2014 15:38:16 +0000 (+0200) Subject: Contact: html format updated X-Git-Tag: myslice-1.1~125 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c0a2d5f8aff74c8acc9306cac7573c1464d7f658;p=unfold.git Contact: html format updated --- diff --git a/portal/contactview.py b/portal/contactview.py index 99b8b7fe..ac3b9dd9 100644 --- a/portal/contactview.py +++ b/portal/contactview.py @@ -31,9 +31,10 @@ class ContactView (FreeAccessView, ThemeView): #theme.template_name = 'email_support.txt' #recipients = render_to_string(theme.template, form.cleaned_data) #recipients = subject.replace('\n', '') - #if cc_myself: - # recipients.append(email) recipients = ['support@myslice.info'] + if cc_myself: + recipients.append(email) + #recipients = ['support@myslice.info'] theme.template_name = 'contact_support_email.html' html_content = render_to_string(theme.template, form.cleaned_data) diff --git a/portal/templates/contact_support_email.html b/portal/templates/contact_support_email.html index 9eb576d6..dbccb4b6 100644 --- a/portal/templates/contact_support_email.html +++ b/portal/templates/contact_support_email.html @@ -1,12 +1,13 @@ -User details: - -First name : {{first_name}} -Last name : {{last_name}} -email : {{email}} -Authority : {{authority}} - -Query Details: - -Subject : {{subject}} -Description : {{description}} - + +
+

User details

+
+First name : {{first_name}} +Last name : {{last_name}} +Authority : {{authority}} +Email : {{email}} + +

Query details

+ +Subject : {{subject}} +Query : {{description}}