{% import "utils.html" as utils %}

{% extends "layout.html" %}
{% set components = [] %}

{% block title %}Rules{%endblock%}

{% block body %}
  {{ utils.regex_filter_box('filter', '.searchable tr', "Rules...") }}

  <section id="rules" />
  {# List all rules which are loaded into the system. #}
  <h3>Rules</h3>
  <table class="table table-striped table-hover table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody class="searchable">
      {% for name, desc in rules.items() %}
      <tr>
        <td>{{ name }}</td>
        <td>{{ desc }}</td>

      </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
