{% if cropsData|length %}
    <span>{{ "cs_assets.ckeditor_modal.crops.title"|transchoice(1) }}</span>
    <input id="original" type="hidden" data-original="{{ original.src }}" data-original-width="{{ original.width }}" data-original-height="{{ original.height }}">
    <ul>
        {% for data in cropsData %}
            <li>
                <strong>{{ data.crop.name }}</strong>
                <ul>
                    {% for asset in data.assets %}
                        {% set active = asset.resize == resizeId %}
                        <li {% if active %}class="active"{% endif %}
                            data-resize="{{ asset.resize }}"
                            data-id="{{ asset.id }}"
                            data-src="{{ asset.src }}"
                            data-width="{{ asset.width }}"
                            data-height="{{ asset.height }}"
                        >{{ asset.width }}X{{ asset.height }}</li>
                    {% endfor %}
                </ul>
            </li>
        {% endfor %}
    </ul>
{% else %}
    <span>{{ "cs_assets.ckeditor_modal.crops.title"|transchoice(2) }}</span>
{% endif %}