- {% for module in dashboard.children %}
- {% if module.column == 1 %}
- {% grp_render_dashboard_module module forloop.counter %}
+ {% with ''|ljust:dashboard.columns as range %}
+ {% with '0' as outer_counter %}
+ {% for _ in range %}
+ {% with outer_counter|add:'1' as outer_counter %}
+
-
- {% for module in dashboard.children %}
- {% if module.column == 2 %}
- {% grp_render_dashboard_module module forloop.counter %}
- {% endif %}
- {% endfor %}
-
-
- {% for module in dashboard.children %}
- {% if module.column == 3 %}
- {% grp_render_dashboard_module module forloop.counter %}
- {% endif %}
- {% endfor %}
-
-
+ id="column_{{outer_counter}}"
+ >
+ {% for module in dashboard.children %}
+ {% if module.column == outer_counter %}
+ {% grp_render_dashboard_module module forloop.counter %}
+ {% endif %}
+ {% endfor %}
+
+ {% endwith %}
+ {% endfor %}
+ {% endwith %}
+ {% endwith %}
+