summaryrefslogtreecommitdiff
path: root/print/templates/print_overview.html
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-03-30 20:37:11 -0400
committerGitHub <noreply@github.com>2018-03-30 20:37:11 -0400
commit084c5555f21a6e927e4de98fdb66c4c408626f58 (patch)
tree91e2da4493f4dcc5243114d3f73296b4a0166543 /print/templates/print_overview.html
parent1279b3ec47fa9c7eb6540e255b67389644fb0b38 (diff)
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
Diffstat (limited to 'print/templates/print_overview.html')
-rw-r--r--print/templates/print_overview.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/print/templates/print_overview.html b/print/templates/print_overview.html
new file mode 100644
index 00000000..f5632ceb
--- /dev/null
+++ b/print/templates/print_overview.html
@@ -0,0 +1,42 @@
+ <header>
+ {% include 'headline.html' %}
+ <div class="job-details">
+ <div>
+ <div class="table">
+ <p><span>{{ _('Unique Colors') }}:</span><span>{{ job.num_colors }}</span></p>
+ <p><span>{{ _('Color Blocks') }}:</span><span>{{ job.num_color_blocks }}</span></p>
+ <p><span>{{ _('Total nr stops') }}:</span><span>{{ job.num_stops }}</span></p>
+ <p><span>{{ _('Total nr trims') }}:</span><span>{{ job.num_trims }}</span></p>
+ </div>
+ </div>
+ <div>
+ <div class="table">
+ <p><span>{{ _('Design box size') }}:</span><span>{{ job.dimensions }}</span></p>
+ <p><span>{{ _('Total stitch count') }}:</span><span>{{job.num_stitches }}</span></p>
+ <p><span>{{ _('Total thread used') }}:</span><span>{{job.estimated_thread }}</span></p>
+ </div>
+ </div>
+ <div>
+ <div class="table">
+ <p><span>{{ _('Job estimated time') }}:</span></p>
+ <p><span>{{ job.estimated_time }}</span></p>
+ </div>
+ </div>
+ </div>
+ </header>
+ <main class="client-overview-main">
+ <figure class="inksimulation">
+ {{ svg_overview|safe }}
+ <figcaption>{{ _('Scale') }} <span>{{ svg_scale }}</span></figcaption>
+ </figure>
+
+ <div class="color-palette">
+ {% for color_block in color_blocks %}
+ {% include 'color_swatch.html' %}
+ {% endfor %}
+
+ </div>
+ <div class="signature">{{ _('Client Signature') }}</div>
+ </main>
+
+ {% include 'footer.html' %}