{% extends "rules/base.html" %} {% load bootstrap3 %} {% block sidebar %}

{{ ruleset.name }}

Action

{% endblock %} {% block body %} {% endblock %} {% block content %} {% if not mode %}

Edit ruleset

Choose an operation in the actions below:

Rename ruleset

{% csrf_token %} {% bootstrap_form form %} {% buttons %} {% endbuttons %}
{% endif %} {% if mode == 'sources' %} {% load render_table from django_tables2 %}

Choose sources

Check sources to enable/disable them and validate form at bottom.

{% csrf_token %} {% render_table sources_list %}

{% endif %} {% if mode == 'categories' %} {% load render_table from django_tables2 %}
{% csrf_token %} {% for sourceatversion in sources %} {% if not sourceatversion.source.datatype == 'other' %}

Source: {{ sourceatversion }}

Check categories to enable/disable them and validate form at bottom

{% for key, value in categories_list.items %} {% if key == sourceatversion.source.name %} {% render_table value %} {% endif %} {% endfor %} {% endif %} {% endfor %}

{% endif %} {% if mode == 'rules' %}

Disabled rules

{% csrf_token %} {% render_table rules %}
{% endif %} {% endblock %}