{% extends 'dashboard/dashboard_base.html' %} {% load paginate %} {% block stage %}
{% paginate 10 categories_list %} {% show_pageitems %}
Per Page
{% csrf_token %}
{% if categories_list %}
{% for category in categories_list %} {% for sub_category in category.forumcategory_set.all %} {% endfor %} {% endfor %}
Id Title Color Created By Is Votable Is Active Actions
{{ forloop.counter }} {%if category.parent%}       {%endif%}{{ category.title }} {{ category.created_by }} {% if category.is_votable %}True{% else %}False{% endif %} {% if category.is_active %}True{% else %}False{% endif %}
{%if sub_category.parent%}       {%endif%}{{ sub_category.title }} {{ sub_category.created_by }} {% if sub_category.is_votable %}True{% else %}False{% endif %} {% if sub_category.is_active %}True{% else %}False{% endif %}
{% show_pages %}
{% else %} No Categories Available in database {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}