diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2019-04-07 09:16:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-07 09:16:02 +0200 |
| commit | 3d2aa93e8bcffc6eb599137d5067e8e0fd249ddb (patch) | |
| tree | aa27859858ebb029b99539713ecfee26c0a83150 /print/templates/ui_svg_action_buttons.html | |
| parent | 211561eabc1444135e0a000d8ec4ba822c2ebbd5 (diff) | |
fix realistic detailed view (#424)
Diffstat (limited to 'print/templates/ui_svg_action_buttons.html')
| -rw-r--r-- | print/templates/ui_svg_action_buttons.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/print/templates/ui_svg_action_buttons.html b/print/templates/ui_svg_action_buttons.html index c111d634..6b199383 100644 --- a/print/templates/ui_svg_action_buttons.html +++ b/print/templates/ui_svg_action_buttons.html @@ -4,7 +4,12 @@ <button class="svg-full">100%</button> <button class="svg-apply">{{ _('Apply to all') }}</button> <button class="svg-realistic"> - <input type="checkbox" id="realistic-operator-overview" data-field-name="overview" class="realistic" /> - <label for="realistic-operator-overview" class="realistic">{{ _('Realistic') }}</label> + {% if loop_index is defined %} + <input type="checkbox" id="realistic-color-block-{{ loop_index }}" data-field-name="block{{ loop_index }}" class="realistic" /> + <label for="realistic-color-block-{{ loop_index }}" class="realistic">{{ _('Realistic') }}</label> + {% else %} + <input type="checkbox" id="{{ realistic_id }}" data-field-name="overview" class="realistic" /> + <label for="{{ realistic_id }}" class="realistic">{{ _('Realistic') }}</label> + {% endif %} </button> </div> |
