<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -52,9 +52,11 @@ def send_rating_mails(request):
                 to = shop.get_notification_emails()
                 bcc = []
             else:
-                to = [&quot;usenet@diefenba.ch&quot;]
-                # to = [order.customer.customer_email]
-                bcc = shop.get_notification_emails()
+                to = [order.customer.customer_email]
+                if request.POST.get(&quot;bcc&quot;):
+                    bcc = shop.get_notification_emails()
+                else:
+                    bcc = []
                 OrderRatingMail.objects.create(order=order)
 
             # text
@@ -77,10 +79,7 @@ def send_rating_mails(request):
             mail.attach_alternative(html, &quot;text/html&quot;)
             # mail.send()
 
-        response = render_to_response(&quot;manage/marketing/rating_mails.html&quot;, RequestContext(request, {
+        return render_to_response(&quot;manage/marketing/rating_mails.html&quot;, RequestContext(request, {
             &quot;display_orders_sent&quot; : True,
             &quot;orders_sent&quot; : orders_sent
-        }))
-        
-        return lfs.core.utils.set_message_to(response, _(u&quot;Rating mails has been sent.&quot;))
-
+        }))
\ No newline at end of file</diff>
      <filename>manage/views/marketing/rating_mails.py</filename>
    </modified>
    <modified>
      <diff>@@ -82,6 +82,14 @@ table.lfs-manage-table th {
     background-color: #ede9e8;
 }
 
+.padding-top {
+    margin-top: 10px;
+}
+
+.padding-top-large {
+    margin-top: 20px;    
+}
+
 .middle {
     margin-top: 10px;
 }</diff>
      <filename>static/css/lfs.manage.css</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@
 {% load lfs_manage_tags %}
 {% load lfs_tags %}
 
+{% block section %}send-rating-mails{% endblock %}
 {% block left-slot-wrapper %}{% endblock %}
 {% block content %}
 
@@ -10,17 +11,24 @@
 
     &lt;form action=&quot;{% url lfs_send_rating_mails %}&quot;
           method=&quot;post&quot;&gt;
-        &lt;input type=&quot;checkbox&quot;
-               name=&quot;test&quot;
-               checked = &quot;checked&quot;&gt;&lt;label&gt;{% trans &quot;Test&quot; %} ({% trans &quot;The mails will get to the shop notification email adresses&quot; %})&lt;/label&gt;
         &lt;div&gt;
+            &lt;input type=&quot;checkbox&quot;
+                   name=&quot;test&quot;
+                   checked = &quot;checked&quot;&gt;&lt;label&gt;{% trans &quot;Test&quot; %} - {% trans &quot;The mails will get to the shop notification email adresses&quot; %}&lt;/label&gt;
+        &lt;/div&gt;       
+        &lt;div&gt;
+            &lt;input type=&quot;checkbox&quot;
+                   name=&quot;bcc&quot;
+                   checked = &quot;checked&quot;&gt;&lt;label&gt;{% trans &quot;Send copy&quot; %} - {% trans &quot;The mails will also send to the shop notification email adresses (if not in test mode)&quot; %}&lt;/label&gt;
+        &lt;/div&gt;           
+        &lt;div class=&quot;padding-top&quot;&gt;
             &lt;input type=&quot;submit&quot;
                    value='{% trans &quot;Send rating mails&quot; %}' /&gt;
         &lt;/div&gt;
     &lt;/form&gt;
 
     {% if display_orders_sent %}
-        &lt;h2 class=&quot;middle&quot;&gt;{% trans &quot;Rating mails sent&quot; %}&lt;/h2&gt;
+        &lt;h2 class=&quot;padding-top-large&quot;&gt;{% trans &quot;Rating mails sent&quot; %}&lt;/h2&gt;
         {% if orders_sent %}
             &lt;table class=&quot;lfs-manage-table&quot;&gt;
                 &lt;tr&gt;
@@ -78,7 +86,7 @@
             {% endfor %}
             &lt;/table&gt;
         {% else %}
-           {% trans &quot;No orders have been sent&quot; %}
+           {% trans &quot;No e-mails have been sent&quot; %}
         {% endif %}
     {% endif %}
 </diff>
      <filename>templates/manage/marketing/rating_mails.html</filename>
    </modified>
    <modified>
      <diff>@@ -139,7 +139,7 @@
             {% trans 'State' %}:
         &lt;/td&gt;
         &lt;td&gt;
-            {{current_order.get_state_display}} ({{ current_order.state_modified|date:_(&quot;DATETIME_FORMAT&quot;) }})
+            {{current_order.get_state_display}} {% if current_order.state_modified %}({{ current_order.state_modified|date:_(&quot;DATETIME_FORMAT&quot;) }}){% endif %}
         &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;</diff>
      <filename>templates/manage/order/order_inline.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>efa7f51131eacf5446490d28ba7d9a013340b1ae</id>
    </parent>
  </parents>
  <author>
    <name>kai.diefenbach@gmail.com</name>
    <email>kai.diefenbach@gmail.com@70813176-cce2-11dd-87b6-9d1a99559f42</email>
  </author>
  <url>http://github.com/django-lfs/lfs/commit/685533a20b1ddaed134bca18ea6bc277901e43d7</url>
  <id>685533a20b1ddaed134bca18ea6bc277901e43d7</id>
  <committed-date>2009-10-04T00:16:51-07:00</committed-date>
  <authored-date>2009-10-04T00:16:51-07:00</authored-date>
  <message>Several clean ups for rating mails.

git-svn-id: http://django-lfs.googlecode.com/svn/lfs/trunk@883 70813176-cce2-11dd-87b6-9d1a99559f42</message>
  <tree>8daf3f186a33e071555ee6c5f6ae8fb5e7d7bf61</tree>
  <committer>
    <name>kai.diefenbach@gmail.com</name>
    <email>kai.diefenbach@gmail.com@70813176-cce2-11dd-87b6-9d1a99559f42</email>
  </committer>
</commit>
