fix realistic detailed view (#424)

pull/409/head^2
Kaalleen 2019-04-07 09:16:02 +02:00 zatwierdzone przez GitHub
rodzic 211561eabc
commit 3d2aa93e8b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 19 dodań i 5 usunięć

Wyświetl plik

@ -27,7 +27,10 @@
<main> <main>
<figure class="inksimulation operator" data-field-name="operator-overview-transform" title="{{ _('Ctrl + Scroll to Zoom') }}"> <figure class="inksimulation operator" data-field-name="operator-overview-transform" title="{{ _('Ctrl + Scroll to Zoom') }}">
{{ svg_overview|replace("<li>", "")|replace("</li>", "")|safe }} {{ svg_overview|replace("<li>", "")|replace("</li>", "")|safe }}
{% include 'ui_svg_action_buttons.html' %} {% with %}
{% set realistic_id='realistic-operator-overview' %}
{% include 'ui_svg_action_buttons.html' with context %}
{% endwith %}
</figure> </figure>
</main> </main>
{% include 'footer.html' %} {% include 'footer.html' %}

Wyświetl plik

@ -17,7 +17,10 @@
<main> <main>
<figure class="inksimulation" data-field-name="client-detail-transform-block{{ loop.index0 }}" title="{{ _('Ctrl + Scroll to Zoom') }}"> <figure class="inksimulation" data-field-name="client-detail-transform-block{{ loop.index0 }}" title="{{ _('Ctrl + Scroll to Zoom') }}">
{{color_block.svg_preview|replace("<li>", "")|replace("</li>", "")|safe}} {{color_block.svg_preview|replace("<li>", "")|replace("</li>", "")|safe}}
{% include 'ui_svg_action_buttons.html' %} {% with %}
{% set loop_index=loop.index0 %}
{% include 'ui_svg_action_buttons.html' with context %}
{% endwith %}
</figure> </figure>
<div class="color-palette detailed"> <div class="color-palette detailed">
{% include 'color_swatch.html' %} {% include 'color_swatch.html' %}

Wyświetl plik

@ -27,7 +27,10 @@
<main class="client-overview-main"> <main class="client-overview-main">
<figure class="inksimulation" data-field-name="client-overview-transform" title="{{ _('Ctrl + Scroll to Zoom') }}"> <figure class="inksimulation" data-field-name="client-overview-transform" title="{{ _('Ctrl + Scroll to Zoom') }}">
{{ svg_overview|replace("<li>", "")|replace("</li>", "")|safe }} {{ svg_overview|replace("<li>", "")|replace("</li>", "")|safe }}
{% include 'ui_svg_action_buttons.html' %} {% with %}
{% set realistic_id='realistic-client-overview' %}
{% include 'ui_svg_action_buttons.html' with context %}
{% endwith %}
</figure> </figure>
<div class="color-palette"> <div class="color-palette">

Wyświetl plik

@ -4,7 +4,12 @@
<button class="svg-full">100%</button> <button class="svg-full">100%</button>
<button class="svg-apply">{{ _('Apply to all') }}</button> <button class="svg-apply">{{ _('Apply to all') }}</button>
<button class="svg-realistic"> <button class="svg-realistic">
<input type="checkbox" id="realistic-operator-overview" data-field-name="overview" class="realistic" /> {% if loop_index is defined %}
<label for="realistic-operator-overview" class="realistic">{{ _('Realistic') }}</label> <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> </button>
</div> </div>