From c0a2d5f8aff74c8acc9306cac7573c1464d7f658 Mon Sep 17 00:00:00 2001 From: Yasin Date: Mon, 28 Apr 2014 17:38:16 +0200 Subject: [PATCH] Contact: html format updated --- portal/contactview.py | 5 +++-- portal/templates/contact_support_email.html | 25 +++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) 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}} -- 2.43.0