summaryrefslogtreecommitdiff
path: root/print/templates/operator_detailedview.html
blob: ae578d9d118a0c912fea07cb19da67eb04bf6f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
    <div id="opd-info" style="display: none; height: 220mm; width: 175mm;">
        <header>
          {% include 'headline.html' %}
        </header>
        {% include 'footer.html' %}
        <div class="job-headline">
          <p class="operator-svg operator-colorswatch">{# svg color #}</p>
          <p>{# svg preview #}</p>
          <p>{{ _('Color') }}</p>
          <p>{{ _('Thread Consumption') }}</p>
          <p>{{ _('Stops and Trims') }}</p>
          <p>{{ _('Notes') }}</p>
        </div>
    </div>

        <div class="opd-summary opd-color-block">
          <p class="operator-svg operator-colorswatch">
            <span>##</span>
          </p>
          <p class="operator-svg operator-preview">
            {{ svg_overview|safe }}
          </p>
          <p>
            <span>{{ _('Unique Colors') }}: {{ job.num_colors }}</span>
            <span>{{ _('Color Blocks') }}: {{ job.num_color_blocks }}</span>
          </p>
          <p>
            <span>{{ _('Design box size') }}: {{ "%0.1fmm X %0.1fmm" | format(*job.dimensions) }}</span>
            <span>{{ _('Total thread used') }}: {{job.estimated_thread }}</span>
            <span>{{ _('Total stitch count') }}: {{job.num_stitches }}</span>
          </p>
          <p>
            <span>{{ _('Total stops') }}: {{ job.num_stops }}</span>
            <span>{{ _('Total trims') }}: {{ job.num_trims }}</span>
          </p>
          <p>
            <span></span>
          </p>
        </div>

        {% for color_block in color_blocks %}

          <div class="opd-color-block">
            <p class="operator-svg operator-colorswatch">
              <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="2mm" y="5mm" class="color-index">#{{ loop.index }}</tspan>
                </text>
              </svg>
            </p>
            <p class="operator-svg operator-preview">
                {{ color_block.svg_preview|safe }}
            </p>
            <p>
              <span data-field-name="color-{{ color_block.color.hex_digits }}" contenteditable="true" data-placeholder="{{ _("Enter thread name...") }}">{{ color_block.color.name }}</span>
              <span>{{ color_block.color.rgb }}</span>
              <span data-field-name="thread-{{ color_block.color.hex_digits }}" contenteditable="true">{{ color_block.color.manufacturer }} {{ "#" + color_block.color.number if color_block.color.number }}</span>
            </p>
            <p>
              <span>{{ _('thread used') }}:</span>
              <span>{{ _('# stitches') }}: {{ color_block.num_stitches }}</span>
            </p>
            <p>
              <span>{{ _('trims') }}: {{ color_block.num_trims }}</span>
              <span>{{ _('stop after?') }}: {{ _("yes") if color_block.stop_after else _("no") }}</span>
            </p>
            <p>
              <span class="notes" contenteditable="true" data-field-name="operator-notes-block{{ loop.index }}" data-placeholder="{{ _("Enter operator notes...") }}"></span>
            </p>
          </div>
        {% endfor %}