{% load staticfiles %}
<div class="fabricWrap">
    <ul>
        {% if main_fabric_list %}
            {% for main_fabric in main_fabric_list %}
                    <li data-fabric-index="{{ main_fabric.id  }}" onclick="sc.fabricClickEvent({{ main_fabric.id }}, this);"><div class="fabricImg"><img src="{{ main_fabric.image.url }}"></div><p class="fabricTitle">{{ main_fabric }}</p></li>
            {% endfor %}
        {% endif %}
    </ul>
</div>