overloading cell placeholder in order to apply styles

This commit is contained in:
Serghei Mihai 2015-04-02 00:27:49 +02:00
parent 0054222008
commit 60b83917f7
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{% load combo %}
{% for cell in cells %}
<div class="block cell {{ cell.css_class_name }} {% if cell.slug %}{{cell.slug}}{% endif %}"
{% if cell.ajax_refresh %}
data-ajax-cell-url="{% url 'combo-public-ajax-page-cell' page_pk=page.id cell_reference=cell.get_reference %}"
data-ajax-cell-refresh="{{ cell.ajax_refresh }}"
{% endif %}><div>{% render_cell cell %}</div></div>
{% endfor %}