From 98612eeae37ac5dee611f4607244da7c613c08e9 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 31 Oct 2018 01:06:31 +0100 Subject: Print Estimated Time (#341) --- print/templates/color_swatch.html | 6 ++--- print/templates/headline.html | 2 +- print/templates/operator_detailedview.html | 23 ++++++++++-------- print/templates/operator_overview.html | 6 ++--- print/templates/print_detail.html | 6 ++--- print/templates/print_overview.html | 4 ++-- print/templates/ui.html | 38 ++++++++++++++++++++++++++++-- 7 files changed, 61 insertions(+), 24 deletions(-) (limited to 'print/templates') diff --git a/print/templates/color_swatch.html b/print/templates/color_swatch.html index 71022f6f..fe64c855 100644 --- a/print/templates/color_swatch.html +++ b/print/templates/color_swatch.html @@ -37,11 +37,11 @@
-

{{ _('Color') }}:{{ color_block.color.name }}

+

{{ _('Color') }}:{{ color_block.color.name }}

{{ _('rgb') }}:{{ color_block.color.rgb }}

{{ _('thread') }}:{{ color_block.color.manufacturer }} {{ "#" + color_block.color.number if color_block.color.number }}

-

{{ _('# stitches') }}:{{ color_block.num_stitches }}

-

{{ _('# trims') }}:{{ color_block.num_trims }}

+

{{ _('# stitches') }}:{{ color_block.num_stitches }}

+

{{ _('# trims') }}:{{ color_block.num_trims }}

{{ _('stop after?') }}:{{ _("yes") if color_block.stop_after else _("no") }}

diff --git a/print/templates/headline.html b/print/templates/headline.html index 369c370e..bf112dea 100644 --- a/print/templates/headline.html +++ b/print/templates/headline.html @@ -12,5 +12,5 @@

-
{{ date|datetimeformat(_('%Y.%m.%d')) }}
+
{{ date|datetimeformat(_('%m/%d/%Y')) }}
diff --git a/print/templates/operator_detailedview.html b/print/templates/operator_detailedview.html index ae578d9d..608b3661 100644 --- a/print/templates/operator_detailedview.html +++ b/print/templates/operator_detailedview.html @@ -22,16 +22,17 @@

{{ _('Unique Colors') }}: {{ job.num_colors }} - {{ _('Color Blocks') }}: {{ job.num_color_blocks }} + {{ _('Color Blocks') }}: {{ job.num_color_blocks }}

{{ _('Design box size') }}: {{ "%0.1fmm X %0.1fmm" | format(*job.dimensions) }} - {{ _('Total thread used') }}: {{job.estimated_thread }} - {{ _('Total stitch count') }}: {{job.num_stitches }} + + {{ _('Total stitch count') }}: {{job.num_stitches }} + {{ ('Estimated time') }}:

- {{ _('Total stops') }}: {{ job.num_stops }} - {{ _('Total trims') }}: {{ job.num_trims }} + {{ _('Total stops') }}: {{ job.num_stops }} + {{ _('Total trims') }}: {{ job.num_trims }}

@@ -53,20 +54,22 @@ {{ color_block.svg_preview|safe }}

- {{ color_block.color.name }} + {{ color_block.color.name }} {{ color_block.color.rgb }} {{ color_block.color.manufacturer }} {{ "#" + color_block.color.number if color_block.color.number }}

- {{ _('thread used') }}: - {{ _('# stitches') }}: {{ color_block.num_stitches }} + + {{ _('# stitches') }}: {{ color_block.num_stitches }} + {{ _('estimated time') }}:

- {{ _('trims') }}: {{ color_block.num_trims }} + {{ _('trims') }}: {{ color_block.num_trims }} {{ _('stop after?') }}: {{ _("yes") if color_block.stop_after else _("no") }} +

- +

{% endfor %} diff --git a/print/templates/operator_overview.html b/print/templates/operator_overview.html index 048fd58e..359d4f50 100644 --- a/print/templates/operator_overview.html +++ b/print/templates/operator_overview.html @@ -13,13 +13,13 @@

{{ _('Design box size') }}:{{ "%0.1fmm X %0.1fmm" | format(*job.dimensions) }}

{{ _('Total stitch count') }}:{{job.num_stitches }}

-

{{ _('Total thread used') }}:{{job.estimated_thread }}

+

{{ _('Total thread used') }}:{{job.total_thread_used }}

-
+

{{ _('Job estimated time') }}:

-

{{ job.estimated_time }}

+

diff --git a/print/templates/print_detail.html b/print/templates/print_detail.html index 241ac88b..0c6bbefe 100644 --- a/print/templates/print_detail.html +++ b/print/templates/print_detail.html @@ -3,13 +3,13 @@
-

{{ _('COLOR') }}:{{ color_block.color.thread_name }}

+

{{ _('COLOR') }}:{{ color_block.color.thread_name }}

-
+

{{ _('Estimated time') }}:

-

{{ color_block.estimatedtime }}

+

diff --git a/print/templates/print_overview.html b/print/templates/print_overview.html index cfbb81d1..a2548070 100644 --- a/print/templates/print_overview.html +++ b/print/templates/print_overview.html @@ -17,9 +17,9 @@
-
+

{{ _('Job estimated time') }}:

-

{{ job.estimated_time }}

+

diff --git a/print/templates/ui.html b/print/templates/ui.html index bc6c57b9..5d565aba 100644 --- a/print/templates/ui.html +++ b/print/templates/ui.html @@ -16,6 +16,7 @@
+
@@ -40,10 +41,43 @@

{{ _('Thumbnail size') }}: 15mm

- +
-
+
+ {{ _('Estimated Time') }} +
+ {{ _('Machine Settings') }} +

+ + +

+
+
+ {{ _('Time Factors') }} +

+ + +

+

+ +

+

+ +

+
+
+ {{ _('Display Time On') }} +

+

+

+

+

+

+
+ +
+
{{ _('Design') }}