2024-03-18 23:04:48 +01:00
|
|
|
{% extends "base.html" %}
|
2024-03-20 20:49:22 +01:00
|
|
|
{% block title %}Rules{% endblock title %}
|
2024-03-18 23:04:48 +01:00
|
|
|
{% block body %}
|
2024-04-24 23:20:37 +02:00
|
|
|
<div class="mb-8">
|
|
|
|
|
<div>
|
|
|
|
|
<a href="/classifiers/new_category">New</a>
|
|
|
|
|
</div>
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th width="10%" span="col">Id</th>
|
|
|
|
|
<th width="30%" span="col">Name</th>
|
|
|
|
|
<th span="col">Description</th>
|
|
|
|
|
<tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for category in categories %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{category.category_id}}</td>
|
|
|
|
|
<td>{{category.name}}</td>
|
|
|
|
|
<td>{{category.description}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div
|
2024-03-20 20:49:22 +01:00
|
|
|
|
2024-04-24 23:20:37 +02:00
|
|
|
<div>
|
2024-03-20 20:49:22 +01:00
|
|
|
<div>
|
|
|
|
|
<a href="/classifiers/new_rule">New</a>
|
|
|
|
|
</div>
|
2024-04-24 23:20:37 +02:00
|
|
|
<table width="100%">
|
2024-03-20 20:49:22 +01:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2024-05-16 22:45:02 +02:00
|
|
|
<th width="30%">Category</th>
|
|
|
|
|
<th>Rule</th>
|
2024-03-20 20:49:22 +01:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for rule in rules %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{rule.category}}</td>
|
|
|
|
|
<td>{{rule.regex}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2024-04-24 23:20:37 +02:00
|
|
|
</div>
|
2024-03-18 23:04:48 +01:00
|
|
|
{% endblock body %}
|