Contact: html format updated
authorYasin <mohammed-yasin.rahman@lip6.fr>
Mon, 28 Apr 2014 15:38:16 +0000 (17:38 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Mon, 28 Apr 2014 15:38:16 +0000 (17:38 +0200)
portal/contactview.py
portal/templates/contact_support_email.html

index 99b8b7f..ac3b9dd 100644 (file)
@@ -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)
         
index 9eb576d..dbccb4b 100644 (file)
@@ -1,12 +1,13 @@
-User details: 
-
-First name      : {{first_name}}
-Last name      : {{last_name}}
-email           : {{email}}
-Authority      : {{authority}}
-
-Query Details:
-
-Subject         : {{subject}}
-Description     : {{description}}
-
+<img src="https://onelab.eu/templates/onelab2/images/logo.png">
+<br>
+<h1>User details</h1>
+<br>
+<b>First name   :</b> {{first_name}}
+<b>Last name    :</b> {{last_name}}
+<b>Authority   :</b> {{authority}}
+<b>Email        :</b> {{email}}
+
+<h1>Query details</h1>
+
+<b>Subject             :</b> {{subject}}
+<b>Query               :</b> {{description}}