Permalink
Browse files

Reports require CSS for printing

  • Loading branch information...
1 parent 502ba1f commit fb8bc177993a7b09248d9c86ebaa92937d1003f0 @garmoncheg garmoncheg committed Jan 19, 2012
@@ -7,6 +7,7 @@
{% compress css %}
<link href="{{ STATIC_URL }}tms/css/site_tabs.css" rel="stylesheet" type="text/css" />
<link href="{{ STATIC_URL }}uni_form/uni-form.css" rel="stylesheet" type="text/css" />
+ <link href="{{ STATIC_URL }}tms/css/reports_print.css" rel="stylesheet" type="text/css" media="print" />
{% endcompress %}
{% block extra_head %}{% endblock %}
{% endblock %}
@@ -64,9 +64,9 @@
<td>{{ obj.duration_minutes|floatformat }}</td>
<td>
{% if obj.is_billable %}
- <span class="checked">{% trans "Checked" %}</span>
+ <span class="checked">{% trans "Yes" %}</span>
{% else %}
- <span class="unchecked">{% trans "Unchecked" %}</span>
+ <span class="unchecked">{% trans "No" %}</span>
{% endif %}
</td>
<td>{{ obj.job.pk }}</td>
@@ -66,9 +66,9 @@
<td>{{ obj.payment_method }}</td>
<td>
{% if obj.is_receipted %}
- <span class="checked">{% trans "Checked" %}</span>
+ <span class="checked">{% trans "Yes" %}</span>
{% else %}
- <span class="unchecked">{% trans "Unchecked" %}</span>
+ <span class="unchecked">{% trans "No" %}</span>
{% endif %}
</td>
<td>{{ obj.currency }}</td>
@@ -65,9 +65,9 @@
<td>{{ obj.payment_method }}</td>
<td>
{% if obj.is_receipted %}
- <span class="checked">{% trans "Checked" %}</span>
+ <span class="checked">{% trans "Yes" %}</span>
{% else %}
- <span class="unchecked">{% trans "Unchecked" %}</span>
+ <span class="unchecked">{% trans "No" %}</span>
{% endif %}
</td>
<td>{{ obj.currency }}</td>
@@ -67,9 +67,9 @@
<td>{{ obj.duration_minutes|floatformat }}</td>
<td>
{% if obj.is_billable %}
- <span class="checked">{% trans "Checked" %}</span>
+ <span class="checked">{% trans "Yes" %}</span>
{% else %}
- <span class="unchecked">{% trans "Unchecked" %}</span>
+ <span class="unchecked">{% trans "No" %}</span>
{% endif %}
</td>
<td>{{ obj.comment }}</td>
@@ -0,0 +1,45 @@
+
+/* reset body styles */
+body {
+ margin: 0;
+ padding: 0;
+ line-height: 1.4em;
+ word-spacing: 1px;
+ letter-spacing: 0.2px;
+ font: 12px Arial, Helvetica,"Lucida Grande", serif;
+ color: #000;
+}
+
+/* Remove unneeded elements */
+#control-panel,
+#header,
+#footer {
+ display:none;
+}
+
+/* restyling report table */
+table {
+ border: 1px solid black;
+ width: 100%;
+}
+table tr
+{
+ border-bottom: 1px solid black;
+}
+
+/* restyling report total tables */
+table.report_job_totals,
+table.report_project_totals,
+table.report_customer_totals {
+ font: 16px Arial, Helvetica,"Lucida Grande", serif;
+ border: none;
+}
+
+/* restyling report headers */
+h3 {
+ font: 24px Arial, Helvetica,"Lucida Grande", serif;
+}
+
+h4 {
+ font: 24px Arial, Helvetica,"Lucida Grande", serif;
+}

0 comments on commit fb8bc17

Please sign in to comment.