From d4c4f2c7cc947eea71d99ef6030ecb4401508835 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 12 Jul 2018 21:16:22 +0200 Subject: operator detailedview dynamic thumbnail size (#221) --- print/templates/operator_detailedview.html | 138 ++++++++++++++--------------- 1 file changed, 69 insertions(+), 69 deletions(-) (limited to 'print/templates/operator_detailedview.html') diff --git a/print/templates/operator_detailedview.html b/print/templates/operator_detailedview.html index 0b948cb0..e1899db4 100644 --- a/print/templates/operator_detailedview.html +++ b/print/templates/operator_detailedview.html @@ -1,76 +1,76 @@ + + +
+

+ ## +

+

+ {{ svg_overview|safe }} +

+

+ {{ _('Unique Colors') }}: {{ job.num_colors }} + {{ _('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 nr stops') }}: {{ job.num_stops }} + {{ _('Total nr trims') }}: {{ job.num_trims }} +

+

+ +

+
+ + + {% for color_block in color_blocks %} -
-
-
-

{# svg color #}

-

{# svg preview #}

-

{{ _('Color') }}

-

{{ _('Thread Consumption') }}

-

{{ _('Stops and Trims') }}

-

{{ _('Notes') }}

-
- {% if outer_loop.index == 1 %} -
-

- ## -

-

- {{ svg_overview|safe }} -

-

- {{ _('Unique Colors') }}: {{ job.num_colors }} - {{ _('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 nr stops') }}: {{ job.num_stops }} - {{ _('Total nr trims') }}: {{ job.num_trims }} -

-

- -

-
- {% endif %} - {% for color_block in color_block_part %} -
-

- - - - #{{ loop.index + outer_loop.index0 * 12 }} - - -

-

- {{ color_block.svg_preview|safe }} -

-

- {{ 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 }} -

-

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

-

- -

-
- {% endfor %} +
+

+ + + + #{{ loop.index }} + + +

+

+ {{ color_block.svg_preview|safe }} +

+

+ {{ 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 }} +

+

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

+

+ +

-
+ {% endfor %} + - {% include 'footer.html' %} -- cgit v1.3.1