accounters/templates/classifiers.html

50 lines
1.1 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2024-03-20 20:49:22 +01:00
{% block title %}Rules{% endblock title %}
{% block body %}
<div class="mb-8">
<div>
2024-05-22 23:24:13 +02:00
<a class="ars-button" 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
<div>
2024-03-20 20:49:22 +01:00
<div>
2024-05-22 23:24:13 +02:00
<a class="ars-button" href="/classifiers/new_rule">New</a>
2024-03-20 20:49:22 +01:00
</div>
<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>
</div>
{% endblock body %}