diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-04-18 16:29:06 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-04-18 16:29:09 -0400 |
| commit | aea5919c63796efd748d724752a86773b79b7c3b (patch) | |
| tree | c461e4708e18d642f11764c7f49d252e24224cf5 /print/templates | |
| parent | 9148d5484462e342ab716a7b4b0859c7c298702a (diff) | |
add notes in operator detailed view
switch to 12 color blocks per page to give more room for detailed notes
Diffstat (limited to 'print/templates')
| -rw-r--r-- | print/templates/index.html | 2 | ||||
| -rw-r--r-- | print/templates/operator_detailedview.html | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/print/templates/index.html b/print/templates/index.html index 21ca74ab..0c9cedfd 100644 --- a/print/templates/index.html +++ b/print/templates/index.html @@ -23,7 +23,7 @@ <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) %} + {% for color_block_part in color_blocks | batch(12) %} {% set outer_loop = loop %} <div class="page operator-detailedview" style="display: {{ 'block' if view.operator_detailedview else 'none' }}">{% include 'operator_detailedview.html' %}</div> {% endfor %} diff --git a/print/templates/operator_detailedview.html b/print/templates/operator_detailedview.html index 92c3445f..f78028d7 100644 --- a/print/templates/operator_detailedview.html +++ b/print/templates/operator_detailedview.html @@ -10,7 +10,7 @@ <p>{{ _('Color') }}</p> <p>{{ _('Thread Consumption') }}</p> <p>{{ _('Stops and Trims') }}</p> - <p>{{ _('Estimated Time') }}</p> + <p>{{ _('Notes') }}</p> </div> {% if outer_loop.index == 1 %} <div> @@ -34,7 +34,7 @@ <span>{{ _('Total nr trims') }}: {{ job.num_trims }}</span> </p> <p> - <span>{{ job.estimated_time }}</span> + <span></span> </p> </div> {% endif %} @@ -45,7 +45,7 @@ <svg xmlns="http://www.w3.org/2000/svg"> <rect fill="rgb{{ color_block.color.rgb }}" width="15mm" height="100%" /> <text fill="rgb{{ color_block.color.font_color }}"> - <tspan x="4mm" y="7.5mm" class="color-index">#{{ loop.index + outer_loop.index0 * 13 }}</tspan> + <tspan x="4mm" y="7.5mm" class="color-index">#{{ loop.index + outer_loop.index0 * 12 }}</tspan> </text> </svg> </p> @@ -65,7 +65,7 @@ <span>{{ _('# trims') }}: {{ color_block.num_trims }}</span> </p> <p> - <span>{{ color_block.estimatedtime }}</span> + <span class="notes" contenteditable="true" data-field-name="operator-notes-block{{ loop.index0 + outer_loop.index0 * 12 }}" data-placeholder="{{ _("Enter operator notes...") }}"></span> </p> </div> {% endfor %} |
