From 084c5555f21a6e927e4de98fdb66c4c408626f58 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 30 Mar 2018 20:37:11 -0400 Subject: print through web browser (#127) * spawn a web server and open a printable view of the design in the user's web browser * configurable inclusion of client and operator views * editable fields for color names, client, title, and purchase order number * groundwork laid to save these parameters back into the SVG * major refactor of codebase to support printing * code is organized logically into modules * added inkstitch logo and branding guidelines * l10n text extraction now handled by babel * removed legacy embroider_update extension * partial fix for #125 --- print/templates/operator_detailedview.html | 77 ++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 print/templates/operator_detailedview.html (limited to 'print/templates/operator_detailedview.html') diff --git a/print/templates/operator_detailedview.html b/print/templates/operator_detailedview.html new file mode 100644 index 00000000..633b9286 --- /dev/null +++ b/print/templates/operator_detailedview.html @@ -0,0 +1,77 @@ +
+ {% include 'headline.html' %} +
+ +
+
+
+

{# svg color #}

+

{# svg preview #}

+

{{ _('Color') }}

+

{{ _('Thread Consumption') }}

+

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

+

{{ _('Estimated Time') }}

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

+ ## +

+

+ {{ svg_overview|safe }} +

+

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

+

+ {{ _('Design box size') }}: {{ 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 }} +

+

+ {{ job.estimated_time }} +

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

+ + + + #{{ loop.index + outer_loop.index0 * 13 }} + + +

+

+ {{ color_block.svg_preview|safe }} +

+

+ {{ color_block.color.thread_name }} + {{ color_block.color.rgb }} +

+

+ {{ _('thread used') }}: {{ color_block.color.thread_description }} + {{ _('# stitches') }}: {{ color_block.num_stitches }} +

+

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

+

+ {{ color_block.estimatedtime }} +

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