add notes in operator detailed view

switch to 12 color blocks per page to give more room for detailed notes
pull/148/head
Lex Neva 2018-04-18 16:29:06 -04:00
rodzic 9148d54844
commit aea5919c63
3 zmienionych plików z 10 dodań i 7 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-04-16 21:03-0400\n"
"POT-Creation-Date: 2018-04-18 16:29-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -336,7 +336,7 @@ msgstr ""
msgid "Stops and Trims"
msgstr ""
msgid "Estimated Time"
msgid "Notes"
msgstr ""
msgid "Unique Colors"
@ -360,6 +360,9 @@ msgstr ""
msgid "Total nr trims"
msgstr ""
msgid "Enter operator notes..."
msgstr ""
msgid "Job estimated time"
msgstr ""

Wyświetl plik

@ -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 %}

Wyświetl plik

@ -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 %}