diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-03-30 20:37:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-30 20:37:11 -0400 |
| commit | 084c5555f21a6e927e4de98fdb66c4c408626f58 (patch) | |
| tree | 91e2da4493f4dcc5243114d3f73296b4a0166543 /print/templates/index.html | |
| parent | 1279b3ec47fa9c7eb6540e255b67389644fb0b38 (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/index.html')
| -rw-r--r-- | print/templates/index.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/print/templates/index.html b/print/templates/index.html new file mode 100644 index 00000000..21ca74ab --- /dev/null +++ b/print/templates/index.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> +<head> + <title>Ink/Stitch Print Preview</title> + <script src="resources/jquery-3.3.1.min.js"></script> + <script src="resources/inkstitch.js"></script> + <link rel="stylesheet" href="resources/style.css" /> +</head> +<body> + {% include 'ui.html' %} + +{# client overview #} + <div class="page client-overview" style="display: {{ 'block' if view.client_overview else 'none' }}">{% include 'print_overview.html' %}</div> + +{# client detailedview #} + {% set printview = 'detailedview' %} + {% for color_block in color_blocks %} + {% set outer_loop = loop %} + <div class="page client-detailedview" style="display: {{ 'block' if view.client_detailedview else 'none' }}">{% include 'print_detail.html' %}</div> + {% endfor %} + +{# operator overview #} + <div class="page operator-overview" style="display: {{ 'block' if view.operator_overview else 'none' }}">{% include 'operator_overview.html' %}</div> + +{# operator detailed view #} + {% for color_block_part in color_blocks | batch(13) %} + {% set outer_loop = loop %} + <div class="page operator-detailedview" style="display: {{ 'block' if view.operator_detailedview else 'none' }}">{% include 'operator_detailedview.html' %}</div> + {% endfor %} + +</body> +</html> |
