{% extends "cms/base.html" %} {% block title %}FAQ{% endblock %} {% block page_title %}FAQ{% endblock %} {% block extra_head %} {% endblock %} {% block cms_content %}

FAQ ({{ total_items }} question{{ total_items|pluralize }})

{% if cat_f %}{% endif %} {% if q %}✕{% endif %}
Add Category Add Question
{% if categories %}
Filter by Category
All {{ total_items }} {% for cat in categories %}
{% if cat.icon_class %}{% endif %} {{ cat.name }} {{ cat.item_count }} {% if not cat.is_active %}(off){% endif %}
{% csrf_token %}
{% endfor %}
{% endif %}
{% if all_items %} {% if q %}

{{ all_items.paginator.count }} result{{ all_items.paginator.count|pluralize }} for "{{ q }}"

{% endif %} {% for item in all_items %} {% endfor %}
Question Category Author Status Actions
{{ item.question|truncatechars:90 }} {{ item.category.name }} {% if item.added_by %}
{% firstof item.added_by.get_full_name item.added_by.username %}
{% else %} Not recorded {% endif %}
{% if item.is_active %}Active{% else %}Inactive{% endif %}
{% csrf_token %}
{% if all_items.has_other_pages %}
Page {{ all_items.number }} of {{ all_items.paginator.num_pages }} — {{ all_items.paginator.count }} question{{ all_items.paginator.count|pluralize }}
{% if all_items.has_previous %} {% endif %} {% for num in all_items.paginator.page_range %} {% if num == all_items.number %} {{ num }} {% elif num >= all_items.number|add:'-2' and num <= all_items.number|add:'2' %} {{ num }} {% endif %} {% endfor %} {% if all_items.has_next %} {% endif %}
{% endif %} {% else %}

{% if q %}No questions match "{{ q }}".{% else %}No FAQ questions yet. Add the first one.{% endif %}

{% endif %}
{% endblock %} {% block extra_js %} {% if not q and not cat_f %} {% endif %} {% endblock %}