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") }}
{{ _('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 }}
+
{{ _('COLOR') }}:{{ color_block.color.thread_name }}
+{{ _('COLOR') }}:{{ color_block.color.thread_name }}
{{ _('Estimated time') }}:
-{{ color_block.estimatedtime }}
+
{{ _('Job estimated time') }}:
-{{ job.estimated_time }}
+
{{ _('Thumbnail size') }}: 15mm
- +